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

IllegalArgumentException: promotion when trying to configure chain of downstream promotions

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • artifactory-plugin
    • None

      I have the following job configurations:

      job A -> job B -> job C

      when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

      but when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
      	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
      	at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
      	at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
      	at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
      	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
      	at hudson.model.Run.execute(Run.java:1567)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:237)
      Caused by: java.lang.IllegalArgumentException: promotion
      	at hudson.maven.ModuleName.fromString(ModuleName.java:97)
      	at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
      	at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
      	at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
      	at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
      	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
      	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
      	at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
      	at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
      	at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
      	at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
      	... 9 more
      

      so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another...

          [JENKINS-17407] IllegalArgumentException: promotion when trying to configure chain of downstream promotions

          Hannes Kogler created issue -
          Hannes Kogler made changes -
          Assignee Original: huybrechts [ huybrechts ] New: Peter Hayes [ petehayes ]
          Hannes Kogler made changes -
          Description Original: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {{ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more}}

          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          New: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code}ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more{code:xml}

          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          Hannes Kogler made changes -
          Description Original: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code}ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more{code:xml}

          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          New: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code}ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more{code:xml}ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more

          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          Hannes Kogler made changes -
          Description Original: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code}ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more{code:xml}ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more

          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          New: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code:xml}
          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more
          {code}


          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          Hannes Kogler made changes -
          Description Original: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          BUT when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code:xml}
          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more
          {code}


          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          New: I have the following job configurations:

          job A -> job B -> job C

          when I start to promote job A and use an action to trigger another job B including an parameter "TYPE", the equal promotion in B happens indeed (if I use the appropriate option "Promote immediately once the build is complete based on build parameters" [Parameter Name: TYPE] [Parameter Value:RELEASE] ) and job gets successfully promoted automatically after the job has run.

          but when I use the same promotions configurations for job C like for job B the "promotion chain" is breaking down with the following hard error:

          {code:xml}
          ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
          java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:151)
          at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:958)
          at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
          at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:154)
          at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:567)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:599)
          at hudson.model.Run.execute(Run.java:1567)
          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:477)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:237)
          Caused by: java.lang.IllegalArgumentException: promotion
          at hudson.maven.ModuleName.fromString(ModuleName.java:97)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:435)
          at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:123)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2340)
          at jenkins.model.Jenkins.getItemByFullName(Jenkins.java:2359)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getProject(BuildUniqueIdentifierHelper.java:73)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getUpstreamBuild(BuildUniqueIdentifierHelper.java:53)
          at org.jfrog.hudson.util.BuildUniqueIdentifierHelper.getRootBuild(BuildUniqueIdentifierHelper.java:34)
          at org.jfrog.hudson.util.ExtractorUtils.addBuildRootIfNeeded(ExtractorUtils.java:288)
          at org.jfrog.hudson.util.ExtractorUtils.addBuilderInfoArguments(ExtractorUtils.java:100)
          at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:147)
          ... 9 more
          {code}


          so it's unfortunately NOT possible to configure and use the promoted builds plugin to implement a kind of downstream cascade chain, to trigger the jobs one from another... :-(
          Hannes Kogler made changes -
          Link New: This issue is related to JENKINS-10342 [ JENKINS-10342 ]
          Hannes Kogler made changes -
          Environment Original: Jenkins 1.506
          Promoted Builds Plugin 2.9
          Parameterized Trigger plugin 2.17
          XTrigger Plug-in 0.53
          New: Jenkins 1.506
          Promoted Builds Plugin 2.9
          Parameterized Trigger plugin 2.17
          XTrigger Plug-in 0.53
          instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects"
          Hannes Kogler made changes -
          Environment Original: Jenkins 1.506
          Promoted Builds Plugin 2.9
          Parameterized Trigger plugin 2.17
          XTrigger Plug-in 0.53
          instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects"
          New: Jenkins 1.506 /
          Promoted Builds Plugin 2.9 /
          Parameterized Trigger plugin 2.17 /
          XTrigger Plug-in 0.53 /
          instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects"
          Hannes Kogler made changes -
          Component/s New: artifactory [ 15689 ]
          Hannes Kogler made changes -
          Environment Original: Jenkins 1.506 /
          Promoted Builds Plugin 2.9 /
          Parameterized Trigger plugin 2.17 /
          XTrigger Plug-in 0.53 /
          instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects"
          New: Jenkins 1.506 /
          Promoted Builds Plugin 2.9 /
          Parameterized Trigger plugin 2.17 /
          XTrigger Plug-in 0.53 /
          instead of using "Trigger parameterized builds on other projects" I use "Trigger / call builds on other projects"
          Artifactory Jenkins Plugin 2.1.4

            eyalbe Eyal Ben Moshe
            ntshako Hannes Kogler
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: