Here is my job DSL which creates pipelinejob in which script is taken from scm itself.
pipelineJob ("${jobName}_deploy") {
description("built by seed")
definition {
cpsScm {
scm {
git {
remote {
url('gitUrl')
credentials('user_creds')
}
branch('master')
}
}
scriptPath "scripts/pipeline/jenkinsfile_deploy"
}
}
}
I need the lightweight checkout should be checked automatically.
any help would be more appreciated. I have so many jobs in which i need to open each and every job and click that check box which is painful.