z3ndrag0n / forensicator-fate

Bringing DevOps to Forensics
Apache License 2.0
34 stars 6 forks source link

update-jenkins.sh issue - mv: cannot stat 'jenkins.war': no such file or directory #44

Open z3ndrag0n opened 10 years ago

z3ndrag0n commented 10 years ago

update-jenkins.sh will display this message when the last run moved the jenkins war out of the way but the download failed, leaving the user with a non-working Jenkins. If you have a working Jenkins, that war file should be there…

So: download the new war first (to a new name), and then only do the moves if the download succeeded (and only if the war has changed - otherwise there is no point shutting down Jenkins and making the user wait for a restart).