You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We provision our multibranch pipelines via DSL scripts and would like not to include library changes to job changeset. From the plugin documentation I see there're couple of options to achieve desired behavior and it is working when set n UI.
But in case I set it in the DSL, the seed job will fail with the following error:
ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableListContext.excludeFromChangeSet() is applicable for argument types: () values: []
DSL part is the following:
factory {
remoteJenkinsFileWorkflowBranchProjectFactory {
localMarker('')
matchBranches(false)
remoteJenkinsFile("pipelines/${repositoryNameVar}/Jenkinsfile")
remoteJenkinsFileSCM {
gitSCM {
userRemoteConfigs {
userRemoteConfig {
name('') //Custom Repository Name or ID
url("${bitbucketURL}/${repositoryOwnerVar}/${libraryRepo}.git") //URL for the repository
refspec('')
credentialsId('git-creds')
}
browser {} // Leave blank for default Git Browser
gitTool('') //Leave blank for default git executable
}
branches {
branchSpec {
name("refs/heads/${pipelineBranch}")
}
}
extensions {
excludeFromPoll()
}
}
}
}
}
If it is set from the UI, config.xml is the following:
Describe the bug
We provision our multibranch pipelines via DSL scripts and would like not to include library changes to job changeset. From the plugin documentation I see there're couple of options to achieve desired behavior and it is working when set n UI.
But in case I set it in the DSL, the seed job will fail with the following error:
DSL part is the following:
If it is set from the UI, config.xml is the following:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Job is provisioned and git behavior changes applied
Desktop (please complete the following information):
Plugin versions:
Jenkins: 2.452.1
The text was updated successfully, but these errors were encountered: