This tool will let you upload Jenkins artifacts into dropbox remote folder and update the url inside github status check, follow the steps below to deploy it:
- Place the dropbox_uploader.rb file inside AutoHCK folder.
- Add a new freestyle project to jenkins.
- Mark 'This project is parameterized' checkbox and add a string value by name 'ghprbActualCommit'
- Mark 'Restrict where this project can run' checkbox and add 'linux_host'.
- Add build step: 'Copy artifacts from another project'
- Set Project name: 'VirtIO', Which build: 'Upstream build that triggered this job', artifacts to copy: build_log.txt, diff.txt, sign_log.txt
- Add build step: 'Execute shell'
- Set in the command to run,
cd <path_AutoHCK_path>; ruby dropbox_uploader.rb <github_ripo> ${ghprbActualCommit} ${WORKSPACE}
for example : 'cd /Prometheus/AutoHCK/; ruby dropbox_uploader.rb daynix/kvm-guest-drivers-windows ${ghprbActualCommit} ${WORKSPACE}' - Save changes
- In 'VirtIO' project configuration add 'Trigger parameterized build on other projects' in Post-build action
- In 'Projects to build' add the new project we made.
- Set Trigger when build is 'Complete (always trigger)'
- Click 'Add Parameters' and select 'Current bulid parameters'
- Save changes