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

NullPointerException when executing promotion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • promoted-builds-plugin
    • None
    • Jenkins 1.629
      promoted-builds-plugin 2.22
      additional-identities-plugin 1.0

      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

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

              Created:
              Updated:
              Resolved: