hudson.plugins.perforce.utils.ParameterSubstitutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by Oleg Nenashev,
  • 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)
    via by Oleg Nenashev,
  • 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>
    via by Richard Taylor,
  • 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}
    via by Ryan Hummer,
  • 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>
    via by Richard Taylor,
  • 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}
    via by Ryan Hummer,
    • 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)
    No Bugmate found.