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

Skip notifications plugin fails after 1.0.4 release

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Install Gihub and Bitbucket on the same Jenkins instance
    • 1.0.5

      If you have Github and Bitbucket installed as plugins and you use Skip Notifications Trait you will get this error after `1.0.4` release:

       

      ERROR: Found multiple extensions which provide method skipNotificationsTrait with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.notifications.SkipNotificationsTrait, org.jenkinsci.plugins.github.notifications.SkipNotificationsTrait]]
      

      This problem was introduced by this PR:

      https://github.com/jenkinsci/skip-notifications-trait-plugin/pull/5

          [JENKINS-60420] Skip notifications plugin fails after 1.0.4 release

          Alex Dubrouski added a comment - - edited

          Good morning,

          Thanks a lot for reporting.
          I have couple of options:
          1. Roll back the changes by v2v and let him create a separate plugin for GitHub Branch Source
          2. I have a local snapshot which has classes and method names renamed, tried to create GitHub/BitBucket organization and it was successful

          Which way will be preferable for you michelzanini?

          Alex Dubrouski added a comment - - edited Good morning, Thanks a lot for reporting. I have couple of options: 1. Roll back the changes by v2v and let him create a separate plugin for GitHub Branch Source 2. I have a local snapshot which has classes and method names renamed, tried to create GitHub/BitBucket organization and it was successful Which way will be preferable for you michelzanini ?

           

          For some reason when I created that PR I though the annotation https://github.com/jenkinsci/skip-notifications-trait-plugin/pull/5/files#diff-23463add934ca349639c9de7d8e27777R66 was intended to help with this. Good to know for the future.

           

          Sorry about that, I'd say option 2) could be more beneficial. 

           

          Thanks

          Victor Martinez added a comment -   For some reason when I created that PR I though the annotation  https://github.com/jenkinsci/skip-notifications-trait-plugin/pull/5/files#diff-23463add934ca349639c9de7d8e27777R66  was intended to help with this. Good to know for the future.   Sorry about that, I'd say option 2) could be more beneficial.    Thanks

          Thanks for your feedback Victor, let's wait for Michel and then I will do changes and release.

          Alex Dubrouski added a comment - Thanks for your feedback Victor, let's wait for Michel and then I will do changes and release.

          Michel Zanini added a comment -

          I agree. Option 2 should be ok.

          Michel Zanini added a comment - I agree. Option 2 should be ok.

          Ok, I tested locally and haven't seen any issues creating BB/GH orgs. I will release soon, could you please re-test?

          Alex Dubrouski added a comment - Ok, I tested locally and haven't seen any issues creating BB/GH orgs. I will release soon, could you please re-test?

          Added you both to PR.

          Alex Dubrouski added a comment - Added you both to PR.

          New release is published, please re-check.

          Alex Dubrouski added a comment - New release is published, please re-check.

          Michel Zanini added a comment -

          Seems to work, I updated and the error is not showing up anymore. Thanks.

          Michel Zanini added a comment - Seems to work, I updated and the error is not showing up anymore. Thanks.

          Michel reported issue as fixed. Thanks a lot for your help

          Alex Dubrouski added a comment - Michel reported issue as fixed. Thanks a lot for your help

          Luis Piedra-Márquez added a comment - - edited

          The same is happening for me between Bitbucket and GitLab plugins:

          javaposse.jobdsl.dsl.DslException: Found multiple extensions which provide method skipNotifications with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.notifications.SkipNotificationsTrait, io.jenkins.plugins.gitlabbranchsource.SkipNotificationsTrait]]
           
          

          I think Bitbucket extension came first, so probably this should change in GitLab plugin. I'll open an issue.{{}}

          Luis Piedra-Márquez added a comment - - edited The same is happening for me between Bitbucket and GitLab plugins: javaposse.jobdsl.dsl.DslException: Found multiple extensions which provide method skipNotifications with arguments []: [[com.cloudbees.jenkins.plugins.bitbucket.notifications.SkipNotificationsTrait, io.jenkins.plugins.gitlabbranchsource.SkipNotificationsTrait]]   I think Bitbucket extension came first, so probably this should change in GitLab plugin. I'll open an issue.{{}}

            alex_dubrouski Alex Dubrouski
            michelzanini Michel Zanini
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: