Created
December 14, 2020 22:40
-
-
Save clalancette/7f535076f6596b166bf003cca8da32df to your computer and use it in GitHub Desktop.
Groovy script to disable Debian Stretch in Melodic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
count = 0 | |
for (p in Jenkins.instance.allItems) { | |
if ( | |
( | |
p.name.startsWith("Msrc_dS") || | |
p.name.startsWith("Mbin_ds") || | |
p.name.startsWith("Mpr_ds") || | |
p.name.startsWith("Mrel_ds") || | |
p.name.startsWith("Mdev_ds") || | |
p.name.startsWith("Mrel_sync-packages-to-testing_stretch") | |
) && | |
p.isBuildable()) | |
{ | |
println(p.name) | |
count += 1 | |
p.disable() | |
} | |
if (count == 100) { | |
break | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment