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

Bitbucket Notifier has a deprecated dependency preventing the addition of new repos

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Bitbucket Build Status Notifier Plugin v1.4.2
      Jenkins Multiple SCMs plugin v0.6

      `Bitbucket Notifier` has a dependency on the `[Jenkins Multiple SCMs|https://plugins.jenkins.io/multiple-scms/]` which currently deprecated and has not been updated for ~4 years.  

       

      When scanning repos to add a new repo, we get a stack trace:
      java.lang.NullPointerException: Descriptor list is null for context 'class hudson.model.Hudson' in thread 'Handling GET /configure from 174.65.113.32 : Jetty (winstone)-223488 Jenkins/configure.jelly GlobalLibraries/config.jelly LibraryConfiguration/config.jelly SCMRetriever/DescriptorImpl/config.jelly MultiSCM/DescriptorImpl/config.jelly'
      at hudson.model.DescriptorVisibilityFilter.apply(DescriptorVisibilityFilter.java:73)
      at hudson.Functions.filterDescriptors(Functions.java:2045)
      at sun.reflect.GeneratedMethodAccessor836.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
      at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
      at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
      at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
      at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
      at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
      at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
      at org.apache.commons.jelly.tags.core.CoreTagLibrary$3.run(CoreTagLibrary.java:134)
       

      This is very similar to this issue:

      https://issues.jenkins-ci.org/browse/JENKINS-52837

      which was resolved by moving away from the Jenkins Multiple SCM plugin.

          [JENKINS-62882] Bitbucket Notifier has a deprecated dependency preventing the addition of new repos

          Borja Serrano added a comment -

          here any update on this flagbit? I know this is an open source project and I cannot ask for anything, but it seems a quiet important one, and the dependency has been deprecated for a long while. 

          Borja Serrano added a comment - here any update on this flagbit ? I know this is an open source project and I cannot ask for anything, but it seems a quiet important one, and the dependency has been deprecated for a long while. 

          Borja Serrano added a comment -

          flagbit I see in Github that the code does not depend on the deprecated plugin anymore, nevertheless in Jenkins it still says the dependency exists and I cannot uninstall the deprecated plugin from the UI:

           

          Borja Serrano added a comment - flagbit  I see in Github that the code does not depend on the deprecated plugin anymore, nevertheless in Jenkins it still says the dependency exists and I cannot uninstall the deprecated plugin from the UI:  

          Karsten Koop added a comment -

          I see in Github that the code does not depend on the deprecated plugin anymore

          It seems it is fixed in master since 19 Oct 2021, but since then there has been no release (current release 1.4.2 is from 6 Mar 2020). So just creating a new release from current master would probably fix this.

          Karsten Koop added a comment - I see in Github that the code does not depend on the deprecated plugin anymore It seems it is fixed in master since 19 Oct 2021, but since then there has been no release (current release 1.4.2 is from 6 Mar 2020). So just creating a new release from current master would probably fix this.

          Thomas Tardy added a comment -

          Hi flagbit

          CC: renescheibe

          Anybody able to create a new release?

          Thomas Tardy added a comment - Hi flagbit CC: renescheibe Anybody able to create a new release?

          Meyer added a comment -

          flagbit thomastardy borjapenman

          Just wanted to let everyone know this issue has been fixed but a new build has not been release on the jenkins.io plugin service.

          The PR that fixed this was merged, https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/pull/49/checks?check_run_id=2451025821. The newest build can be downloaded at https://ci.jenkins.io/job/Plugins/job/bitbucket-build-status-notifier-plugin/job/master/. To update it on your server, go to the plugins page and click advanced settings on the left, scroll down to deploy a plugin and upload the hpi file. If a maintainer could please update the plugin listing, that would be great.

          For any maintainers, I have checked to make sure that the plugin still works after this update, I have also made sure that the builds are displayed correctly in bitbucket.

          Meyer added a comment - flagbit thomastardy borjapenman Just wanted to let everyone know this issue has been fixed but a new build has not been release on the jenkins.io plugin service. The PR that fixed this was merged, https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/pull/49/checks?check_run_id=2451025821 . The newest build can be downloaded at https://ci.jenkins.io/job/Plugins/job/bitbucket-build-status-notifier-plugin/job/master/ . To update it on your server, go to the plugins page and click advanced settings on the left, scroll down to deploy a plugin and upload the hpi file. If a maintainer could please update the plugin listing, that would be great. For any maintainers, I have checked to make sure that the plugin still works after this update, I have also made sure that the builds are displayed correctly in bitbucket.

          Borja Serrano added a comment -

          meyer_oppelt, thanks a lot for the detailed steps. I have finally been able to uninstall the deprecated plugin. Hope the mantainers can create a new version soon anyway.

          Borja Serrano added a comment - meyer_oppelt , thanks a lot for the detailed steps. I have finally been able to uninstall the deprecated plugin. Hope the mantainers can create a new version soon anyway.

          Meyer added a comment -

          borjapenman 

          No problem. I have wanted to have this fixed for a while and finally went searching for pull requests when I found out it had been fixed but not uploaded to the plugin repository. I am going to try and contact the maintainer over github to see if we can get a new build on https://plugins.jenkins.io

           

          Meyer added a comment - borjapenman   No problem. I have wanted to have this fixed for a while and finally went searching for pull requests when I found out it had been fixed but not uploaded to the plugin repository. I am going to try and contact the maintainer over github to see if we can get a new build on https://plugins.jenkins.io  

            flagbit Antonio Mansilla
            jmizzle Jeremy Myslinski
            Votes:
            12 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: