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

IllegalStateException thrown after upgrading to Jenkins 2.277.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • core, token-macro-plugin
    • None
    • 2.277.1

      After upgrading to Jenkins 2.277.1, a pipeline that ran well on 2.263 now throws an IllegalStateException almost immediately.

      full stack trace:

      java.lang.IllegalStateException
       	at org.objectweb.asm.tree.analysis.BasicInterpreter.<init>(BasicInterpreter.java:66)
       	at org.parboiled.transform.RuleMethodInterpreter.<init>(RuleMethodInterpreter.java:42)
       	at org.parboiled.transform.InstructionGraphCreator.process(InstructionGraphCreator.java:41)
       	at org.parboiled.transform.ParserTransformer.runMethodTransformers(ParserTransformer.java:62)
       	at org.parboiled.transform.ParserTransformer.extendParserClass(ParserTransformer.java:45)
       	at org.parboiled.transform.ParserTransformer.transformParser(ParserTransformer.java:39)
       	at org.parboiled.Parboiled.createParser(Parboiled.java:54)
       Caused: java.lang.RuntimeException: Error creating extended parser class: null
       	at org.parboiled.Parboiled.createParser(Parboiled.java:58)
       	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:80)
       	at org.jenkinsci.plugins.tokenmacro.Parser.process(Parser.java:74)
       	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expand(TokenMacro.java:199)
       	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:237)
       	at org.jenkinsci.plugins.tokenmacro.TokenMacro.expandAll(TokenMacro.java:207)
       	at org.jenkinsci.plugins.buildnamesetter.Executor.evaluateMacro(Executor.java:75)
       	at org.jenkinsci.plugins.buildnamesetter.Executor.setDescription(Executor.java:50)
       	at org.jenkinsci.plugins.pipeline.BuildDescriptionStep.perform(BuildDescriptionStep.java:35)
       	at jenkins.tasks.SimpleBuildStep.perform(SimpleBuildStep.java:123)
       	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:99)
       	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:69)
       	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       	at java.lang.Thread.run(Thread.java:748)
       Finished: FAILURE
      

      I think it's failing somewhere in here, but i can't tell for sure because this file isn't listed in the stacktrace. It just is the last script loaded before the pipe throws the exception.

      // Sets the buildDescription from the non-null params.
      buildDesc = [:]
      
      params.each { key, value ->
        if(value) {
          buildDesc[key] = value
        }
      }
      
      buildDesc['policy_gp'] = env.policyGroup
      
      buildDescription "${buildDesc.sort()}"
      

            Unassigned Unassigned
            mcascone Max Cascone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: