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

Found unresolved macro at

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • p4-plugin
    • None

      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>

            rpetti Rob Petti
            richardtaylor Richard Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: