Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
| #!/usr/bin/env python | |
| # | |
| # Adds the ability to add / modify tasks using a "blocks:" attribute, | |
| # the opposite of "depends:". | |
| # | |
| # This script acts as an on-modify, on-add and on-launch hook at the same time. | |
| # | |
| ### SETUP | |
| # Save this file as | |
| # ~/.task/hooks/on-modify.blocks_attr.py |