Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60155

"traits" stopped working in 2.6.0

    XMLWordPrintable

Details

    Description

      Unfortunately with bitbucket-branch-source-plugin: 2.6.0 I can not make use of "traits" with job-dsl + configuration-as-code.

       

      I used to be able to do the following:

      organizationFolder('foo') {
              displayName('Foobar')
      
              organizations {
                bitbucket {
                  serverUrl('https://stash.foobar.com')
                  repoOwner('foo')
                  credentialsId('stash-token')
      
                  traits {
                    sourceWildcardFilter {
                      includes('sample-project')
                      excludes('')
                    }
                  }
                }
              }
      

      But now its not supported anymore. Also clearly visible via the api-viewer that that option is now missing.

      Downgrading bitbucket-branch-source-plugin to 2.5.0 fixes the issue. So definitely a regression happening.

       

       

      Attachments

        Issue Links

          Activity

            lifeofguenter Günter Grodotzki created issue -
            qalinn Alin Pana added a comment -

            I have the same issue. 

            Do you have any workaround?

            qalinn Alin Pana added a comment - I have the same issue.  Do you have any workaround?

            why do you consider configuration-as-code plugin to be one of the components involved with that? I can't see it, I may be wrong though - please explain or remove configuration-as-code - I'm afraid I can't help much so this has to be assigned to someone involved with bitbucket-branch-source I'm guessing

            ewel Ewelina Wilkosz added a comment - why do you consider configuration-as-code plugin to be one of the components involved with that? I can't see it, I may be wrong though - please explain or remove configuration-as-code - I'm afraid I can't help much so this has to be assigned to someone involved with bitbucket-branch-source I'm guessing

            qalinn downgrading bitbucket-branch-source-plugin to 2.5.0 resolves the issue for me now.

            ewel: this problem only occurs when using configuration-as-code + job-dsl in conjunction with Bitbucket org folder. I could not find anything in the changelog of the Bitbucket plugin that would indicate that the feature was removed deliberate. So I am assuming there is some incompatibility between the three involved plugins?

            lifeofguenter Günter Grodotzki added a comment - qalinn downgrading bitbucket-branch-source-plugin to 2.5.0 resolves the issue for me now. ewel : this problem only occurs when using configuration-as-code + job-dsl in conjunction with Bitbucket org folder. I could not find anything in the changelog of the Bitbucket plugin that would indicate that the feature was removed deliberate. So I am assuming there is some incompatibility between the three involved plugins?
            lifeofguenter Günter Grodotzki made changes -
            Field Original Value New Value
            Component/s structs-plugin [ 21442 ]
            lifeofguenter Günter Grodotzki made changes -
            Component/s configuration-as-code-plugin [ 23170 ]
            Component/s job-dsl-plugin [ 16720 ]
            lifeofguenter Günter Grodotzki added a comment - Updated the involved plugins as per  https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/258#issuecomment-553405822
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-26535 [ JENKINS-26535 ]
            lifeofguenter Günter Grodotzki made changes -
            Link This issue is blocked by JENKINS-26535 [ JENKINS-26535 ]
            lifeofguenter Günter Grodotzki made changes -
            Labels regression
            casz Joseph Petersen (old) made changes -
            Assignee Ewelina Wilkosz [ ewel ] Joseph Petersen [ casz ]

            Hi, I managed to fix it in v2.7.0 so sorry for the long wait.

            If you want faster fixes I suggest contributing to the plugin as a maintainer that does not use Bitbucket at all I have very little time to debug and fix the plugin.

            I basically rely on the community to drive the plugin development.

            https://github.com/jenkinsci/bitbucket-branch-source-plugin/releases/tag/cloudbees-bitbucket-branch-source-2.7.0

            casz Joseph Petersen (old) added a comment - Hi, I managed to fix it in v2.7.0 so sorry for the long wait. If you want faster fixes I suggest contributing to the plugin as a maintainer that does not use Bitbucket at all I have very little time to debug and fix the plugin. I basically rely on the community to drive the plugin development. https://github.com/jenkinsci/bitbucket-branch-source-plugin/releases/tag/cloudbees-bitbucket-branch-source-2.7.0
            casz Joseph Petersen (old) made changes -
            casz Joseph Petersen (old) made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            casz Joseph Petersen (old) made changes -
            Remote Link This issue links to "bitbucket-branch-source-plugin #278 (Web Link)" [ 24351 ]
            jetersen Joseph Petersen made changes -
            Assignee Joseph Petersen (old) [ casz ] Joseph Petersen [ jetersen ]

            People

              jetersen Joseph Petersen
              lifeofguenter Günter Grodotzki
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: