-
Bug
-
Resolution: Fixed
-
Critical
Hello,
We have experienced several issues with substitution of parameters during execution of operation.
For example, ${EXECUTOR_NUMBER} works well for checkout(), but this parameter is not accessible during execution processWorkspaceBeforeDeletion(). It causes corruption of job, which requires manual fix at server’s side. Reproduction steps:
• We start job, and checkout() successfully creates workspace.
• Cleanup workspace…
• getWorkspace() in processWorkspaceBeforeDeletion() creates new workspace at Perforce server (name contains unsubstituted EXECUTOR_NUMBER parameter) and then deletes it. BTW, it deletes local folders as well.
• Run job again…
• Checkout() completes successfully, because P4 server thinks that workspace is up to date
• Job fails, because there’s no data in job’s workspace after p4 checkout
Best regards,
Oleg Nenashev
[JENKINS-18346] Corruption of workspace due to incomplete parameters substitution (no validation)
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | Original: Rob Petti [ rpetti ] | New: Oleg Nenashev [ oleg_nenashev ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Summary | Original: Corruption of workspace due to unfull parameters substitution (no validation) | New: Corruption of workspace due to incomplete parameters substitution (no validation) |
Pull request, which partially resolves issue:
https://github.com/jenkinsci/perforce-plugin/pull/29