-
Bug
-
Resolution: Duplicate
-
Minor
-
Jenkins: 2.60.2
workflow-multibranch-plugin: 1.16
git-plugin: 3.4.1
job-dsl-plugin: 1.64
In the past I used `gitSCMSource` to specify my git configuration with extensions in my Job DSL.
Template I used:
multibranchPipelineJob('${JOB_NAME}') { displayName('${JOB_NAME}') description('${JOB_DESCRIPTION}') orphanedItemStrategy { discardOldItems { numToKeep(7) } } branchSources { branchSource { source { gitSCMSource { id('') remoteName('origin') rawRefSpecs('') ignoreOnPushNotifications(false) remote('${JOB_GIT_URL}') credentialsId('${GIT_CREDENTIALS_ID}') includes('*') excludes('') extensions { wipeWorkspace() preBuildMerge { options { mergeRemote('origin') mergeTarget('${GIT_BRANCH}') mergeStrategy('default') fastForwardMode('FF') } } } } } } } }
Now after updating to latest Jenkins/Plugins this no longer works. I looked at using the `git` source instead of `gitSCMSource` but it does not provide a way to set the extensions.
In the new git-plugin 3.4.0 extensions are deprecated and are now traits. Not sure if this has anything to do with the issue.
- duplicates
-
JENKINS-45504 Add @Symbol annotations to traits
-
- Closed
-
- is related to
-
JENKINS-46202 Cannot discover all GitHub repos and their branches with Job DSL anymore
-
- Closed
-
Here's a link to the DSL used.
https://github.com/gimp-ci/jenkins-dsl/blob/292cafd41e8c26e200dbe967aba7ec71e120df84/jobs/gimp_multibranch_pipelines.groovy
Here's a list of plugins installed that broke the the DSL. https://github.com/gimp-ci/jenkins-os-packages/commit/2e9e0e6b5a2e0287268ca70d836f2a7e71fef72b
In particular I confirmed the following plugins broke the DSL.