Skip to content

Instantly share code, notes, and snippets.

@Viroide
Created January 11, 2016 14:20
Show Gist options
  • Select an option

  • Save Viroide/ba84b50cb4b0e6e1e3fb to your computer and use it in GitHub Desktop.

Select an option

Save Viroide/ba84b50cb4b0e6e1e3fb to your computer and use it in GitHub Desktop.
jobs=("job1" "job2" "job3");
for job in ${jobs[@]}; do
curl -s http://USER:TOKEN@URL_TO_JENKINS/job/$job/config.xml > $job.xml
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment