-
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