hudson.plugins.perforce.utils.ParameterSubstitutionException: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}'

Jenkins JIRA | Ryan Hummer | 3 years ago
  1. 0

    Any of our jobs that we have trigger off P4 changes, we are seeing the mentioned error. We have all of our agents configured to use ${NODE_NAME} for the P4 Workspace. This is with the current version, 1.3.26 Here is the callstack: {noformat} Started on Dec 9, 2013 10:30:15 AM Looking for changes... FATAL: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}' hudson.plugins.perforce.utils.ParameterSubstitutionException: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}' at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:97) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:64) at hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:417) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1226) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1582) at hudson.model.AbstractProject.poll(AbstractProject.java:1491) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Done. Took 4 ms No changes {noformat}

    Jenkins JIRA | 3 years ago | Ryan Hummer
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}'
  2. 0

    Any of our jobs that we have trigger off P4 changes, we are seeing the mentioned error. We have all of our agents configured to use ${NODE_NAME} for the P4 Workspace. This is with the current version, 1.3.26 Here is the callstack: {noformat} Started on Dec 9, 2013 10:30:15 AM Looking for changes... FATAL: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}' hudson.plugins.perforce.utils.ParameterSubstitutionException: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}' at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:97) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:64) at hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:417) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1226) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1582) at hudson.model.AbstractProject.poll(AbstractProject.java:1491) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Done. Took 4 ms No changes {noformat}

    Jenkins JIRA | 3 years ago | Ryan Hummer
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}'
  3. 0

    After recently upgrading from 1.3.27 to 1.3.33, job polling appears to be failing with unresolved macro issues trying to poll when using perforce plugin in conjunction with Environment Injector plugin. I have a global password in the global config. In the job config, I have that variable name, let's say MY_P4PASSWD, set in the field for the perforce password. Also in the job config I have the "Inject passwords to the build as environment variables" and the "Global passwords" box checked under that. The variable is correctly resolved during the checkout, however no longer resolves during polling or during labeling. It all worked fine in 1.3.27. Also I reverted plugin version and tested that it wasn't any other variable in configuration. Snippet of stack trace from polling: FATAL: <${MY_P4PASSWD}>: Found unresolved macro at '${MY_P4PASSWD}' hudson.plugins.perforce.utils.ParameterSubstitutionException: <${MY_P4PASSWD}>: Found unresolved macro at '${MY_P4PASSWD}' at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:154) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:102) at hudson.plugins.perforce.PerforceSCM.getDecryptedP4Passwd(PerforceSCM.java:2700) at hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:487) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1310) at hudson.scm.SCM.poll(SCM.java:401)

    Jenkins JIRA | 2 years ago | Caleb Mayeux
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <${MY_P4PASSWD}>: Found unresolved macro at '${MY_P4PASSWD}'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    After recently upgrading from 1.3.27 to 1.3.33, job polling appears to be failing with unresolved macro issues trying to poll when using perforce plugin in conjunction with Environment Injector plugin. I have a global password in the global config. In the job config, I have that variable name, let's say MY_P4PASSWD, set in the field for the perforce password. Also in the job config I have the "Inject passwords to the build as environment variables" and the "Global passwords" box checked under that. The variable is correctly resolved during the checkout, however no longer resolves during polling or during labeling. It all worked fine in 1.3.27. Also I reverted plugin version and tested that it wasn't any other variable in configuration. Snippet of stack trace from polling: FATAL: <${MY_P4PASSWD}>: Found unresolved macro at '${MY_P4PASSWD}' hudson.plugins.perforce.utils.ParameterSubstitutionException: <${MY_P4PASSWD}>: Found unresolved macro at '${MY_P4PASSWD}' at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:154) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:102) at hudson.plugins.perforce.PerforceSCM.getDecryptedP4Passwd(PerforceSCM.java:2700) at hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:487) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1310) at hudson.scm.SCM.poll(SCM.java:401)

    Jenkins JIRA | 2 years ago | Caleb Mayeux
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <${MY_P4PASSWD}>: Found unresolved macro at '${MY_P4PASSWD}'
  6. 0

    Minor issue, which has been caused by my previous commits. MacroStringHelper.substituteParameters() uses getEnvironment to get environment variables, which leads to recursive call with further exception. + P$CLIENT is a typo Sep 12, 2013 4:29:40 AM hudson.plugins.perforce.PerforceSCM buildEnvVars SEVERE: Can't substitute P$CLIENT hudson.plugins.perforce.utils.ParameterSubstitutionException: <XBF_build_Perforce_ARCv2HS_SLAVE_${EXECUTOR_NUMBER}>: Found unresolved macro at 'XBF_build_Perforce_ARCv2HS_SLAVE_${EXECUTOR_NUMBER}' at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:96) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:79) at hudson.plugins.perforce.PerforceSCM.getEffectiveClientName(PerforceSCM.java:1623) at hudson.plugins.perforce.PerforceSCM.buildEnvVars(PerforceSCM.java:485) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:936) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParametersNoCheck(MacroStringHelper.java:139) at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:78) at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:835) at hudson.model.AbstractProject.checkout(AbstractProject.java:1367) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:674) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:579) at hudson.model.Run.execute(Run.java:1575) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:237)

    Jenkins JIRA | 3 years ago | Oleg Nenashev
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <XBF_build_Perforce_ARCv2HS_SLAVE_${EXECUTOR_NUMBER}>: Found unresolved macro at 'XBF_build_Perforce_ARCv2HS_SLAVE_${EXECUTOR_NUMBER}'

    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. hudson.plugins.perforce.utils.ParameterSubstitutionException

      <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}'

      at hudson.plugins.perforce.utils.MacroStringHelper.checkString()
    2. hudson.plugins.perforce
      PerforceSCM.compareRemoteRevisionWith
      1. hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:97)
      2. hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:64)
      3. hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:417)
      4. hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1226)
      4 frames
    3. Hudson
      SequentialExecutionQueue$QueueEntry.run
      1. hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
      2. hudson.scm.SCM.poll(SCM.java:373)
      3. hudson.model.AbstractProject._poll(AbstractProject.java:1582)
      4. hudson.model.AbstractProject.poll(AbstractProject.java:1491)
      5. hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:439)
      6. hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:468)
      7. hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
      7 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      2. java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      3. java.util.concurrent.FutureTask.run(Unknown Source)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      6. java.lang.Thread.run(Unknown Source)
      6 frames