We run groovy script to remove timer trigger or other triggers, sample code
import hudson.model.*
import hudson.triggers.*
import jenkins.model.*
import com.cloudbees.hudson.plugins.folder.Folder
def TIMER_TRIGGER_DESCRIPTOR =
Hudson.instance.getDescriptorOrDie(TimerTrigger.class)
def removeTrig
I've run a groovy script to disable all jobs before. Then, I just enable
the jobs I want to run. The problem with that, though is that Pipeline jobs
can't be disabled. So, I normally have to go into the test instance and
manually remove the triggers on the Pipeline jobs to keep them from
runnin
We have a large jenkins configuration with 1700 jobs. We have two use
cases in which the configuration is copied. We make a copy of the
configuration prior to any upgrade:
1. for purposes of testing new version and plugins prior to an upgrade
2. to have a running instance of the previous versio