[JIRA] (JENKINS-60155) "traits" stopped working in 2.6.0

20 views
Skip to first unread message

gunter@grodotzki.co.za (JIRA)

unread,
Nov 13, 2019, 4:22:03 AM11/13/19
to jenkinsc...@googlegroups.com
Gunter Grodotzki created an issue
 
Jenkins / Bug JENKINS-60155
"traits" stopped working in 2.6.0
Issue Type: Bug Bug
Assignee: Ewelina Wilkosz
Attachments: Screenshot 2019-11-11 at 10.20.47.png, Screenshot 2019-11-11 at 11.13.59.png
Components: bitbucket-branch-source-plugin, configuration-as-code-plugin, job-dsl-plugin
Created: 2019-11-13 09:21
Environment: Jenkins ver. 2.190.2
bitbucket-branch-source-plugin: 2.6.0
Priority: Blocker Blocker
Reporter: Gunter Grodotzki

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.

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

qalinn@yahoo.com (JIRA)

unread,
Nov 13, 2019, 12:50:04 PM11/13/19
to jenkinsc...@googlegroups.com
Alin Pana commented on Bug JENKINS-60155
 
Re: "traits" stopped working in 2.6.0

I have the same issue. 

Do you have any workaround?

ewelina.w@gmail.com (JIRA)

unread,
Nov 13, 2019, 2:02:02 PM11/13/19
to jenkinsc...@googlegroups.com

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

gunter@grodotzki.co.za (JIRA)

unread,
Nov 14, 2019, 4:16:02 AM11/14/19
to jenkinsc...@googlegroups.com

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

Ewelina Wilkosz: 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?

gunter@grodotzki.co.za (JIRA)

unread,
Nov 14, 2019, 4:18:02 AM11/14/19
to jenkinsc...@googlegroups.com
Gunter Grodotzki updated an issue
 
Change By: Gunter Grodotzki
Component/s: structs-plugin

gunter@grodotzki.co.za (JIRA)

unread,
Nov 14, 2019, 4:18:03 AM11/14/19
to jenkinsc...@googlegroups.com
Gunter Grodotzki updated an issue
Change By: Gunter Grodotzki
Component/s: configuration-as-code-plugin
Component/s: job-dsl-plugin

gunter@grodotzki.co.za (JIRA)

unread,
Nov 14, 2019, 4:19:01 AM11/14/19
to jenkinsc...@googlegroups.com

gunter@grodotzki.co.za (JIRA)

unread,
Nov 15, 2019, 6:10:03 AM11/15/19
to jenkinsc...@googlegroups.com

josephp90@gmail.com (JIRA)

unread,
Jan 28, 2020, 5:07:03 PM1/28/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
Change By: Joseph Petersen
Assignee: Ewelina Wilkosz Joseph Petersen

josephp90@gmail.com (JIRA)

unread,
Jan 28, 2020, 5:11:03 PM1/28/20
to jenkinsc...@googlegroups.com
Joseph Petersen closed an issue as Fixed
Change By: Joseph Petersen
Status: Resolved Closed

josephp90@gmail.com (JIRA)

unread,
Jan 28, 2020, 5:11:04 PM1/28/20
to jenkinsc...@googlegroups.com
Joseph Petersen resolved as Fixed
 

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

josephp90@gmail.com (JIRA)

unread,
Mar 7, 2020, 1:07:29 AM3/7/20
to jenkinsc...@googlegroups.com
Joseph Petersen assigned an issue to Joseph Petersen
Change By: Joseph Petersen
Assignee: Joseph Petersen (old)
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages