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

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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • None

      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:

      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
      

          [JENKINS-20927] FATAL: <${NODE_NAME}>: Found unresolved macro at '${NODE_NAME}'

          Francois Pilote added a comment - - edited

          EDIT : i reverted the perforce plugin to 1.3.26, then to 1.3.25 and had the same error. Version 1.3.24 works correctly.

          We are getting same kind of error on our setup after upgrading our jenkins installation. (jenkins 1.556, perforce plugin 1.3.27)
          I'm not sure if it is the jenkins upgrade that caused the problem or the plugin upgrade (or something else)

          here is our stacktrace :

          Using node: Prodrender004
          FATAL: <//RNG/Code/Mainline/... //${basename}${hash}/...>: Found unresolved macro at '//RNG/Code/Mainline/... //${basename}${hash}/...'
          hudson.plugins.perforce.utils.ParameterSubstitutionException: <//RNG/Code/Mainline/... //${basename}${hash}/...>: Found unresolved macro at '//RNG/Code/Mainline/... //${basename}${hash}/...'
          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.getEffectiveProjectPath(PerforceSCM.java:689)
          at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1300)
          at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356)
          at hudson.scm.SCM.poll(SCM.java:373)
          at hudson.model.AbstractProject._poll(AbstractProject.java:1490)
          at hudson.model.AbstractProject.poll(AbstractProject.java:1399)
          at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462)
          at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491)
          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$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          Done. Took 2 ms

          Francois Pilote added a comment - - edited EDIT : i reverted the perforce plugin to 1.3.26, then to 1.3.25 and had the same error. Version 1.3.24 works correctly. We are getting same kind of error on our setup after upgrading our jenkins installation. (jenkins 1.556, perforce plugin 1.3.27) I'm not sure if it is the jenkins upgrade that caused the problem or the plugin upgrade (or something else) here is our stacktrace : Using node: Prodrender004 FATAL: <//RNG/Code/Mainline/... //${basename} ${hash}/...>: Found unresolved macro at '//RNG/Code/Mainline/... //${basename} ${hash}/...' hudson.plugins.perforce.utils.ParameterSubstitutionException: <//RNG/Code/Mainline/... //${basename} ${hash}/...>: Found unresolved macro at '//RNG/Code/Mainline/... //${basename} ${hash}/...' 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.getEffectiveProjectPath(PerforceSCM.java:689) at hudson.plugins.perforce.PerforceSCM.compareRemoteRevisionWith(PerforceSCM.java:1300) at hudson.scm.SCM._compareRemoteRevisionWith(SCM.java:356) at hudson.scm.SCM.poll(SCM.java:373) at hudson.model.AbstractProject._poll(AbstractProject.java:1490) at hudson.model.AbstractProject.poll(AbstractProject.java:1399) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:462) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:491) 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$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Done. Took 2 ms

          Oleg Nenashev added a comment -

          The issue is resolved in the following PR:
          https://github.com/jenkinsci/perforce-plugin/pull/54

          Oleg Nenashev added a comment - The issue is resolved in the following PR: https://github.com/jenkinsci/perforce-plugin/pull/54

          pixman20 added a comment -

          Is there an expected date when this will be released in the perforce plugin? (i.e. 1.3.28)

          pixman20 added a comment - Is there an expected date when this will be released in the perforce plugin? (i.e. 1.3.28)

          Oleg Nenashev added a comment -

          Marking as resolved.
          Please note that there're several regressions in 1.3.28, hence a new version will be release ASAP

          Oleg Nenashev added a comment - Marking as resolved. Please note that there're several regressions in 1.3.28, hence a new version will be release ASAP

            oleg_nenashev Oleg Nenashev
            rhummer Ryan Hummer
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: