diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2014-06-16 10:55:54 +0300 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-06-16 11:00:11 +0300 |
commit | 27b063be76a1d41023f1d4d3304cfa0fc6a510ae (patch) | |
tree | 95d365f8089e775dbd55731b8cb0dbd45e7aea80 | |
parent | 9f60b8b66ff4be18b603acc39b60384534933892 (diff) |
Fix the copy-to-master case
Copy to master case has been broken due to adding an cd:
https://ci.linaro.org/job/post-build-repo/491/console.
Fix it by allways calling tools by full path
-rwxr-xr-x | jenkins-dput | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/jenkins-dput b/jenkins-dput index 3e11451..fe1487c 100755 --- a/jenkins-dput +++ b/jenkins-dput @@ -4,6 +4,9 @@ cp -a .ssh/ .dput.cf ~ sed -i -e 's/scp/sftp/' ~/.dput.cf chmod og-rwx ~/.ssh/ ~/.ssh/* +rm -rf *deb *changes *upload + +TOOLS=${PWD}/ubuntu-packaging-tools echo "Package job name: ${pkg_job_name}" echo "Debsign key ID: ${key_id}" @@ -14,7 +17,7 @@ echo "Source URL: ${pkg_url}" if [ "x${pkg_url}" != "x" ] then wget --no-check-certificate --progress=dot -e dotbytes=1M ${pkg_url}/${pkg_changes} - for file in `ubuntu-packaging-tools/dcmd ${pkg_changes}` + for file in `${TOOLS}/dcmd ${pkg_changes}` do wget --no-check-certificate --progress=dot -e dotbytes=1M ${pkg_url}/${file} done @@ -23,11 +26,11 @@ else fi ls -la . -ubuntu-packaging-tools/debsign -k${key_id} ${pkg_changes} +${TOOLS}/debsign -k${key_id} ${pkg_changes} dput ${host_ppa} ${pkg_changes} -for file in `ubuntu-packaging-tools/dcmd ${pkg_changes}` +for file in `${TOOLS}/dcmd ${pkg_changes}` do rm -f $file done |