/jenkins-snippet

Scripts for parsing Jenkins web page views and mass job XML configuration download, creating one big XML with all the jobs. XML configurations are being manipulated and uploaded back to Jenkins. Comes handy with hundreds of jobs on hand...

Primary LanguagePythonOtherNOASSERTION

Jenkins job configuration manipulator :-)

HOW-TO

  • Take a look into properties.py and sf_downloader.py
  • Run sf_downloader.py
  • e.g. python src/sf_downloader.py '^(?!.*noe).*$' will download all jobs but those with noe in their name.
  • Make any additional XML transformations you like
  • Run sf_uploader.py

Footnote

  • I have updated dozens of jobs with this tool, however, use at your own risk...
  • Python 2 is required.