Is there a way in Jenkins (Hudson) to disable a job from another job?
Basically we have a build environment that does the standard building/testing. We also use the
It's possible to do this using the Job DSL Plugin, without specifying credentials.
The DSL script to use would be:
job("jobname"){
using("jobname")
disabled(true)
}
pipelineJob instead of job."jobname" needs to include folders, using the Jenkins root as reference.disabled(false).