Groovy Script to Enable or Disable Jenkins Jobs
In Jenkins > build > Execute system Groovy script > Groovy commandPaste code like the below in the “Groovy Script” box: And for enabling Jenkins jobs would be:
Read More Groovy Script to Enable or Disable Jenkins Jobs