Skip to content

Instantly share code, notes, and snippets.

@iliaaw
Forked from nmiroshnichenko/gist:59b2377d9c3d9acfe965
Last active December 3, 2015 13:20
Show Gist options
  • Save iliaaw/f0e2addc8d77a05443cb to your computer and use it in GitHub Desktop.
Save iliaaw/f0e2addc8d77a05443cb to your computer and use it in GitHub Desktop.
updatejobs.sh
#!/bin/bash
JENKINS_USER=
JENKINS_TOKEN=
echo "Updating jobs for stands: $@"
for s in $@; do
echo "$s:"
time JENKINS_USER="$JENKINS_USER" JENKINS_TOKEN="$JENKINS_TOKEN" ./jenkinsmanager.py --deletestand "$s"
time JENKINS_USER="$JENKINS_USER" JENKINS_TOKEN="$JENKINS_TOKEN" ./jenkinsmanager.py --clone release "$s"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment