Capturelogchange

Upgrade support in Jenkins.

https://albino.pistoncloud.com/job/Upgrade_Tests/325/console

Disregard everything after:
# Done.
exit

script-wise as it's not run and will be removed once changes are merged to master.

this ssh and the next one are virtually identical, perhaps just set variables inside the if/upgrade check, put the check above the env call (so we can see the output there, too) and then only call ssh once?