-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
p4-plugin 1.8.8
jenkins 2.98
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script.
I have checked against --JENKINS-42411-- and ---- and attempted the workarounds.JENKINS-38401
For both lightweight and regular Jenkinsfile checkout cases the resulting P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script.
(The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.)
[JENKINS-50684] declarative pipeline P4_CHANGELIST + P4_CLIENT uses Jenkinsfile value, not workspace mapping in the Jenkinsfile script
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against JENKINS-42411 and I usually name the workspace for Jenkinsfile checkout from SCM with a "-jenkinsfile" suffix, and it automagically changes to "jenkinsTemp-(uuid)" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script 'jenkins-$\{NODE_NAME}-$\{JOB_NAME}' or 'jenkins-$\{JOB_NAME}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against -JENKINS-42411- and - I usually name the workspace for Jenkinsfile checkout from SCM with a '-jenkinsfile' suffix, and it automagically changes to "jenkinsTemp-(uuid)" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script 'jenkins-$\{NODE_NAME}-$\{JOB_NAME}' or 'jenkins-$\{JOB_NAME}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against -JENKINS-42411- and - I usually name the workspace for Jenkinsfile checkout from SCM with a '-jenkinsfile' suffix, and it automagically changes to "jenkinsTemp-(uuid)" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script 'jenkins-$\{NODE_NAME}-$\{JOB_NAME}' or 'jenkins-$\{JOB_NAME}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against -JENKINS-42411- and - I usually name the workspace for Jenkinsfile checkout from SCM with a '\\-jenkinsfile' suffix, and it automagically changes to "jenkinsTemp\\-(uuid)" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script 'jenkins-$\{NODE_NAME}-$\{JOB_NAME}' or 'jenkins-$\{JOB_NAME}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against -JENKINS-42411- and - I usually name the workspace for Jenkinsfile checkout from SCM with a '\\-jenkinsfile' suffix, and it automagically changes to "jenkinsTemp\\-(uuid)" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script 'jenkins-$\{NODE_NAME}-$\{JOB_NAME}' or 'jenkins-$\{JOB_NAME}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against -JENKINS-42411- and - I usually name the workspace for Jenkinsfile checkout from SCM with a '{{\-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp\-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME}\-$\{JOB_NAME}}}' or '{{jenkins\-$\{JOB_NAME}}}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against -JENKINS-42411- and - I usually name the workspace for Jenkinsfile checkout from SCM with a '{{\-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp\-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME}\-$\{JOB_NAME}}}' or '{{jenkins\-$\{JOB_NAME}}}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against --JENKINS-42411-- and -- I usually name the workspace for Jenkinsfile checkout from SCM with a '{{-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME\}\-$\{JOB_NAME\}}}' or '{{jenkins\-$\{JOB_NAME\}}}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against --JENKINS-42411-- and -- I usually name the workspace for Jenkinsfile checkout from SCM with a '{{-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME\}\-$\{JOB_NAME\}}}' or '{{jenkins\-$\{JOB_NAME\}}}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against --JENKINS-42411-- and -- I usually name the workspace for Jenkinsfile checkout from SCM with a '{{\-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp\-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME\}\-$\{JOB_NAME\} }}' or '{{jenkins\-$\{JOB_NAME\} }}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against --JENKINS-42411-- and -- I usually name the workspace for Jenkinsfile checkout from SCM with a '{{\-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp\-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME\}\-$\{JOB_NAME\} }}' or '{{jenkins\-$\{JOB_NAME\} }}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against ---JENKINS-42411--- and --- I usually name the workspace for Jenkinsfile checkout from SCM with a '{{\-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME\}\-$\{JOB_NAME\}}}' or '{{jenkins\-$\{JOB_NAME\}}}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
Description |
Original:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against ---JENKINS-42411--- and --- I usually name the workspace for Jenkinsfile checkout from SCM with a '{{\-jenkinsfile}}' suffix, and it automagically changes to "{{jenkinsTemp-(uuid)}}" at some point in time without my intervention, but in all cases the console output shows a uuid workspace or a workspace name different from my in-script '{{jenkins\-$\{NODE_NAME\}\-$\{JOB_NAME\}}}' or '{{jenkins\-$\{JOB_NAME\}}}' value. The environment P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
New:
The P4_CHANGELIST and P4_CLIENT values seen in the environment end up with values from the Jenkinsfile checkout, and not from the workspace mapping in the script. I have checked against ---JENKINS-42411--- and --- For both lightweight and regular Jenkinsfile checkout cases the resulting P4_CHANGELIST and P4_CLIENT values reflect the script checkout, not the checkout invoked in the script. (The results of the checkout invoked in the script seem to have the correct perforce retrieval though. The console output show the correct in-script workspace name used in p4 client/changes/reconcile/sync commands.) |
to clarify my submission description, I attempted the workarounds to no remedial effect