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

Perforce polling and labeling no longer resolves global password macros (regression from 1.3.27)



    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: p4-plugin
    • Labels:
    • Environment:
      Jenkins 1.580.3
      perforce plugin 1.3.33
      Environment Injector (EnvInject) plugin 1.90
    • Similar Issues:


      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)



          calebmayeux Caleb Mayeux created issue -
          rpetti Rob Petti made changes -
          Field Original Value New Value
          Assignee Rob Petti [ rpetti ] Oleg Nenashev [ oleg_nenashev ]
          oleg_nenashev Oleg Nenashev made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          calebmayeux Caleb Mayeux made changes -
          Resolution Not A Defect [ 7 ]
          Status In Progress [ 3 ] Resolved [ 5 ]
          calebmayeux Caleb Mayeux made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          peter_liu peter liu made changes -
          Resolution Not A Defect [ 7 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 161189 ] JNJira + In-Review [ 186269 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]
          ircbot Jenkins IRC Bot made changes -
          Component/s p4-plugin [ 19224 ]
          Component/s perforce-plugin [ 15506 ]


            Unassigned Unassigned
            calebmayeux Caleb Mayeux
            0 Vote for this issue
            4 Start watching this issue