Open herbert-venancio opened 3 years ago
Similar issue with github-branch-source-plugin: https://issues.jenkins.io/browse/JENKINS-60874
Workaround:
branchSources {
branchSource {
source {
gitLabSCMSource {
// NORMAL CONFIG HERE
}
}
}
}
configure {
it / sources / data / 'jenkins.branch.BranchSource' / source / traits / 'io.jenkins.plugins.gitlabbranchsource.ForkMergeRequestDiscoveryTrait' {
strategyId 1
trust(class: 'io.jenkins.plugins.gitlabbranchsource.ForkMergeRequestDiscoveryTrait$TrustPermission')
}
}
Version report
Jenkins and plugins versions report:
Reproduction steps
Results
Expected result:
Discover merge requests from forks available in traits
Actual result:
No fork trait in the list of traits
Notes:
I can almost add it by guessing, but the trust property is a mystery: