Jenkins + Bitbucket script
Jenkins + Bitbucket stash scripts
if anyone would find this useful - feel free to use!
clean_all.py - deletes ALL jobs, folders and views from Jenkins
clean_view.py - deletes ALL jobs and folders from a view, and after that deletes the view
view_export.py - allows to select a view and creates a full dump of ordered(!) folders and jobs structure of that view locally (in “imports” subfolder)
view_import.py - imports the structure of all(!) views in subfolder “imports” to Jenkins (creates views, folders and jobs)
main.py - allows to view, create from template and delete Jenkins jobs/folders and also allows to view, create or delete a PR notification in Bitbucket repositories.
The code is not ideal at all, it was written just to work Feel free to improve it!