Re: how do I modify one option in scm.getUserRemoteConfigs without having to manually set all the options?
I think you can assign the original to a new variable, then modify only the precise portions that need to be changed. Like this: // Narrow the respec to only this branch def branch = 'JENKINS-59016' def myRemoteConfigs = scm.userRemoteConfigs myRemoteConfigs[0].refspec =
how do I modify one option in scm.getUserRemoteConfigs without having to manually set all the options?
in my jenkins pipeline i have this: checkout([$class: 'GitSCM', branches: [[name: "${env.BRANCH_NAME}"]], doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'SubmoduleOption', disableSubmodules: false,