question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

traits stopped working in 2.6.0 for job-dsl

See original GitHub issue
  • Jenkins version: 2.190.2
  • Plugin version: 2.6.0
  • Bitbucket server: 5.16.0

I used to be able to configure this via the job-dsl plugin:

    organizationFolder('foo') {
        displayName('Foobar')

        organizations {
          bitbucket {
            serverUrl('https://stash.foobar.com')
            repoOwner('foo')
            credentialsId('stash-token')

            traits {
              sourceWildcardFilter {
                includes('sample-project')
                excludes('')
              }
            }
          }
        }

this is not working anymore since version 2.6.0: Screenshot 2019-11-11 at 10 20 47

Downgrading to 2.5.0 fixes the issue and brings back traits:

Screenshot 2019-11-11 at 11 13 59

Jira ticket: https://issues.jenkins-ci.org/browse/JENKINS-60155

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jetersencommented, Nov 13, 2019

https://github.com/jenkinsci/structs-plugin/pull/52 this is the blocker, I can convert some of the changes but struct plugins is the culprit

0reactions
jetersencommented, Jan 27, 2020

I would welcome a PR 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

githubTagDiscovery trait still not configurable via job-dsl
githubTagDiscovery trait still not configurable via job-dsl ... Resolution: Not A Defect ... job-dsl 1.77 github-branch-source-plugin 2.6.0.
Read more >
Unable to configure Fork Change Request Trait using Job DSL
But the script will fail. The problem is caused by the "trust" constructor parameter of ForkMergeRequestDiscoveryTrait. Job DSL uses the Structs plugin for ......
Read more >
Job DSL and organizationFolder with Github : r/jenkinsci
My problem is, I am using Github Organization, no jenkins.branch.BranchSource . I don't know how can I add a ForkPullRequestDiscoveryTrait to my ...
Read more >
JUC Europe 2015 - Configuration as Code: The Job DSL Plugin
Chapters. View all ; Daniel Spilker · 0:33 ; Problem · 2:07 ; Configuration As Code · 2:45 ; There Is A Plugin...
Read more >
Jenkins Artifactory Plug-in - JFrog
JFrog CLI already includes significantly more features than the Jenkins Artifactory Plugin. ... The new plugin also does not support UI based Jenkins...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found