java.lang.IllegalArgumentException: THE_NAME_OF_THE_JENKINS_JOB

Jenkins JIRA | Aurélien Pelletier | 5 years ago
  1. 0

    Using promoted_builds plugin in build job with manual approval to trigger promotion process which triggers build on another job (deploy). Build (maven2) job triggers promotion job which finishes successfully. Build job hangs indefinitely with following last message to console: Waiting for the completion of deploy Following is logged when deploy job finishes: INFO: deploy #3 main build action completed: SUCCESS Jul 11, 2013 12:26:05 PM hudson.model.Executor run SEVERE: Executor threw an exception java.lang.IllegalArgumentException: promotion at hudson.maven.ModuleName.fromString(ModuleName.java:97) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:352) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:115) at jenkins.model.Jenkins.getItem(Jenkins.java:2248) at jenkins.model.Jenkins.getItem(Jenkins.java:2271) at hudson.model.Items.fromNameList(Items.java:98) at join.JoinTrigger$DescriptorImpl$RunListenerImpl.notifyJob(JoinTrigger.java:405) at join.JoinTrigger$DescriptorImpl$RunListenerImpl.onCompleted(JoinTrigger.java:398) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:178) at hudson.model.Run.execute(Run.java:1552) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) If (promoted) build job is a "free-style" job rather than a maven2 job, build job finishes after promotion job finishes. If join plugin is disabled, promoted build job finishes after promotion job finishes.

    Jenkins JIRA | 3 years ago | Rick Stokoe
    java.lang.IllegalArgumentException: promotion
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Using promoted_builds plugin in build job with manual approval to trigger promotion process which triggers build on another job (deploy). Build (maven2) job triggers promotion job which finishes successfully. Build job hangs indefinitely with following last message to console: Waiting for the completion of deploy Following is logged when deploy job finishes: INFO: deploy #3 main build action completed: SUCCESS Jul 11, 2013 12:26:05 PM hudson.model.Executor run SEVERE: Executor threw an exception java.lang.IllegalArgumentException: promotion at hudson.maven.ModuleName.fromString(ModuleName.java:97) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:352) at hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:115) at jenkins.model.Jenkins.getItem(Jenkins.java:2248) at jenkins.model.Jenkins.getItem(Jenkins.java:2271) at hudson.model.Items.fromNameList(Items.java:98) at join.JoinTrigger$DescriptorImpl$RunListenerImpl.notifyJob(JoinTrigger.java:405) at join.JoinTrigger$DescriptorImpl$RunListenerImpl.onCompleted(JoinTrigger.java:398) at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:178) at hudson.model.Run.execute(Run.java:1552) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237) If (promoted) build job is a "free-style" job rather than a maven2 job, build job finishes after promotion job finishes. If join plugin is disabled, promoted build job finishes after promotion job finishes.

    Jenkins JIRA | 3 years ago | Rick Stokoe
    java.lang.IllegalArgumentException: promotion
  4. 0

    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... :-(

    Jenkins JIRA | 4 years ago | Hannes Kogler
    java.lang.RuntimeException: java.lang.IllegalArgumentException: promotion

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      THE_NAME_OF_THE_JENKINS_JOB

      at hudson.maven.ModuleName.fromString()
    2. Hudson Maven Embedder
      MavenModuleSet.getItem
      1. hudson.maven.ModuleName.fromString(ModuleName.java:97)
      2. hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:354)
      3. hudson.maven.MavenModuleSet.getItem(MavenModuleSet.java:117)
      3 frames
    3. jenkins.model
      Jenkins.getItem
      1. jenkins.model.Jenkins.getItem(Jenkins.java:2159)
      2. jenkins.model.Jenkins.getItem(Jenkins.java:2180)
      2 frames
    4. hudson.plugins.promoted_builds
      ManualCondition.doApprove
      1. hudson.plugins.promoted_builds.conditions.ManualCondition.doApprove(ManualCondition.java:148)
      1 frame