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

NullPointerException when executing promotion

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Duplicate
    • promoted-builds-plugin
    • None
    • Jenkins 1.629
      promoted-builds-plugin 2.22
      additional-identities-plugin 1.0

    Description

      I'm getting a NullPointerException when executing a promotion by SYSTEM or manually by a user:

      FATAL: null
      java.lang.NullPointerException
      	at com.cloudbees.jenkins.plugins.AdditionalIdentityResolver.resolveCanonicalId(AdditionalIdentityResolver.java:42)
      	at hudson.model.User.get(User.java:393)
      	at hudson.plugins.promoted_builds.Promotion.getUserId(Promotion.java:171)
      	at hudson.plugins.promoted_builds.Promotion.getEnvironment(Promotion.java:109)
      	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:90)
      	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:344)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:286)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      	at hudson.model.Run.execute(Run.java:1741)
      	at hudson.model.Run.run(Run.java:1679)
      	at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:231)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:408)
      

      The promotion criteria (successful downstream build) is successful.

      Please let me know if you require further information

      Attachments

        Issue Links

          Activity

            steinbach Till Steinbach created issue -
            steinbach Till Steinbach made changes -
            Field Original Value New Value
            Environment Jenkins 1.629
            promoted-builds-plugin 2.22
            Jenkins 1.629
            promoted-builds-plugin 2.22
            additional-identities-plugin 1.0

            Disabling the additional-identities-plugin fixes the problem

            steinbach Till Steinbach added a comment - Disabling the additional-identities-plugin fixes the problem
            jglick Jesse Glick made changes -
            Link This issue duplicates JENKINS-28181 [ JENKINS-28181 ]
            jglick Jesse Glick made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165568 ] JNJira + In-Review [ 197759 ]

            People

              steinbach Till Steinbach
              steinbach Till Steinbach
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: