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

Jenkins JIRA | Richard Taylor | 3 years ago
  1. 0

    After installing perforce plugin 1.3.25 all jobs failed to sync with the error below. Reverting to 1.3.24 made the issue go away. All of our jobs set the following fields in the perforce plugin. Workspace (client) jenkins_${nodename}_evo11main Client name format for slaves jenkins_${nodename}_evo11main We have 0 executors on the Jenkins master and all work is done on slaves. 00:00:00.377 hudson.plugins.perforce.utils.ParameterSubstitutionException: <jenkins_${nodename}_evo11main>: Found unresolved macro at 'jenkins_${nodename}_evo11main' 00:00:00.377 at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:96) 00:00:00.377 at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:79) 00:00:00.377 at hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:410) 00:00:00.377 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:809) 00:00:00.377 at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) 00:00:00.377 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) 00:00:00.377 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:00.377 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 00:00:00.378 at hudson.model.Run.execute(Run.java:1576) 00:00:00.378 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:00:00.378 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:00.378 at hudson.model.Executor.run(Executor.java:241) There is an example of our perforce plugin settings. <scm class="hudson.plugins.perforce.PerforceSCM" plugin="perforce@1.3.24"> <configVersion>1</configVersion> <p4User>***REMOVED***</p4User> <p4Passwd>***REMOVED***</p4Passwd> <p4Port>***REMOVED***</p4Port> <p4Client>jenkins_${nodename}_evo11main</p4Client> <clientSpec>//depot/evolution/studio/Jenkins/clientview_evo11dx11.txt</clientSpec> <projectOptions>noallwrite clobber nocompress unlocked nomodtime rmdir</projectOptions> <p4SysDrive>C:</p4SysDrive> <p4SysRoot>C:\WINDOWS</p4SysRoot> <browser class="hudson.plugins.perforce.browsers.P4Web"> <url>***REMOVED***</url> <p4WebEndShite>?ac=22</p4WebEndShite> <p4DifEndShite>?ac=19</p4DifEndShite> <p4ClEndShite>?ac=10</p4ClEndShite> </browser> <p4Tool>C:\\Program Files\\Perforce\\p4.exe</p4Tool> <useClientSpec>true</useClientSpec> <useStreamDepot>false</useStreamDepot> <forceSync>false</forceSync> <alwaysForceSync>false</alwaysForceSync> <dontUpdateServer>false</dontUpdateServer> <disableAutoSync>false</disableAutoSync> <disableChangeLogOnly>false</disableChangeLogOnly> <disableSyncOnly>false</disableSyncOnly> <showIntegChanges>false</showIntegChanges> <useOldClientName>false</useOldClientName> <createWorkspace>true</createWorkspace> <updateView>true</updateView> <dontRenameClient>false</dontRenameClient> <updateCounterValue>false</updateCounterValue> <dontUpdateClient>false</dontUpdateClient> <exposeP4Passwd>true</exposeP4Passwd> <wipeBeforeBuild>false</wipeBeforeBuild> <quickCleanBeforeBuild>false</quickCleanBeforeBuild> <restoreChangedDeletedFiles>false</restoreChangedDeletedFiles> <wipeRepoBeforeBuild>false</wipeRepoBeforeBuild> <firstChange>-1</firstChange> <fileLimit>100</fileLimit> <excludedFilesCaseSensitivity>true</excludedFilesCaseSensitivity> <slaveClientNameFormat>jenkins_${nodename}_evo11main</slaveClientNameFormat> <lineEndValue>local</lineEndValue> <useViewMask>false</useViewMask> <useViewMaskForPolling>false</useViewMaskForPolling> <useViewMaskForSyncing>false</useViewMaskForSyncing> <pollOnlyOnMaster>false</pollOnlyOnMaster> <p4Charset>utf8</p4Charset> <p4CommandCharset>utf8</p4CommandCharset> </scm>

    Jenkins JIRA | 3 years ago | Richard Taylor
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <jenkins_${nodename}_evo11main>: Found unresolved macro at 'jenkins_${nodename}_evo11main'
  2. 0

    After installing perforce plugin 1.3.25 all jobs failed to sync with the error below. Reverting to 1.3.24 made the issue go away. All of our jobs set the following fields in the perforce plugin. Workspace (client) jenkins_${nodename}_evo11main Client name format for slaves jenkins_${nodename}_evo11main We have 0 executors on the Jenkins master and all work is done on slaves. 00:00:00.377 hudson.plugins.perforce.utils.ParameterSubstitutionException: <jenkins_${nodename}_evo11main>: Found unresolved macro at 'jenkins_${nodename}_evo11main' 00:00:00.377 at hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:96) 00:00:00.377 at hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:79) 00:00:00.377 at hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:410) 00:00:00.377 at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:809) 00:00:00.377 at hudson.model.AbstractProject.checkout(AbstractProject.java:1369) 00:00:00.377 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) 00:00:00.377 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:00.377 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) 00:00:00.378 at hudson.model.Run.execute(Run.java:1576) 00:00:00.378 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:00:00.378 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:00.378 at hudson.model.Executor.run(Executor.java:241) There is an example of our perforce plugin settings. <scm class="hudson.plugins.perforce.PerforceSCM" plugin="perforce@1.3.24"> <configVersion>1</configVersion> <p4User>***REMOVED***</p4User> <p4Passwd>***REMOVED***</p4Passwd> <p4Port>***REMOVED***</p4Port> <p4Client>jenkins_${nodename}_evo11main</p4Client> <clientSpec>//depot/evolution/studio/Jenkins/clientview_evo11dx11.txt</clientSpec> <projectOptions>noallwrite clobber nocompress unlocked nomodtime rmdir</projectOptions> <p4SysDrive>C:</p4SysDrive> <p4SysRoot>C:\WINDOWS</p4SysRoot> <browser class="hudson.plugins.perforce.browsers.P4Web"> <url>***REMOVED***</url> <p4WebEndShite>?ac=22</p4WebEndShite> <p4DifEndShite>?ac=19</p4DifEndShite> <p4ClEndShite>?ac=10</p4ClEndShite> </browser> <p4Tool>C:\\Program Files\\Perforce\\p4.exe</p4Tool> <useClientSpec>true</useClientSpec> <useStreamDepot>false</useStreamDepot> <forceSync>false</forceSync> <alwaysForceSync>false</alwaysForceSync> <dontUpdateServer>false</dontUpdateServer> <disableAutoSync>false</disableAutoSync> <disableChangeLogOnly>false</disableChangeLogOnly> <disableSyncOnly>false</disableSyncOnly> <showIntegChanges>false</showIntegChanges> <useOldClientName>false</useOldClientName> <createWorkspace>true</createWorkspace> <updateView>true</updateView> <dontRenameClient>false</dontRenameClient> <updateCounterValue>false</updateCounterValue> <dontUpdateClient>false</dontUpdateClient> <exposeP4Passwd>true</exposeP4Passwd> <wipeBeforeBuild>false</wipeBeforeBuild> <quickCleanBeforeBuild>false</quickCleanBeforeBuild> <restoreChangedDeletedFiles>false</restoreChangedDeletedFiles> <wipeRepoBeforeBuild>false</wipeRepoBeforeBuild> <firstChange>-1</firstChange> <fileLimit>100</fileLimit> <excludedFilesCaseSensitivity>true</excludedFilesCaseSensitivity> <slaveClientNameFormat>jenkins_${nodename}_evo11main</slaveClientNameFormat> <lineEndValue>local</lineEndValue> <useViewMask>false</useViewMask> <useViewMaskForPolling>false</useViewMaskForPolling> <useViewMaskForSyncing>false</useViewMaskForSyncing> <pollOnlyOnMaster>false</pollOnlyOnMaster> <p4Charset>utf8</p4Charset> <p4CommandCharset>utf8</p4CommandCharset> </scm>

    Jenkins JIRA | 3 years ago | Richard Taylor
    hudson.plugins.perforce.utils.ParameterSubstitutionException: <jenkins_${nodename}_evo11main>: Found unresolved macro at 'jenkins_${nodename}_evo11main'
  3. 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}'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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}'
  6. 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}'

    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

      <jenkins_${nodename}_evo11main>: Found unresolved macro at 'jenkins_${nodename}_evo11main'

      at hudson.plugins.perforce.utils.MacroStringHelper.checkString()
    2. hudson.plugins.perforce
      PerforceSCM.checkout
      1. hudson.plugins.perforce.utils.MacroStringHelper.checkString(MacroStringHelper.java:96)
      2. hudson.plugins.perforce.utils.MacroStringHelper.substituteParameters(MacroStringHelper.java:79)
      3. hudson.plugins.perforce.PerforceSCM.getDepot(PerforceSCM.java:410)
      4. hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:809)
      4 frames
    3. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.model.AbstractProject.checkout(AbstractProject.java:1369)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
      2 frames
    4. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      1 frame
    5. Hudson
      AbstractBuild$AbstractBuildExecution.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
      1 frame