I'd like to request adding an option the the Perforce: Unshelve build step to fail the build if the unshelve changelist does not exist.
Perhaps a checkbox with "Fail build if unshelve changelist does not exist"
Currently the console output looks like this when unshelving using a shelve list that does not exists.
p4 unshelve -f -s252595 -cdefault
No such file(s).
For our workflow it would be an error for the build to pass if there were no shelved files.
[JENKINS-57094] Add option to fail build if unshelve changelist does not exists
Assignee | New: Karl Wirth [ p4karl ] |
Labels | Original: p4 p4-plugin plugin | New: P4_SUPPORT p4 p4-plugin plugin |
Attachment | New: screenshot-1.png [ 46819 ] |
Labels | Original: P4_SUPPORT p4 p4-plugin plugin | New: P4_B p4 p4-plugin plugin |
Assignee | Original: Karl Wirth [ p4karl ] |
Hi totsubo,
I just tried this with a basic Freestyle job and it does fail the build:
P4 Task: unshelve review: 999999 ... p4 unshelve -f -s999999 -cdefault + P4JAVA: Change 999999 unknown. P4 Task: attempt: 1 Build step 'Perforce: Unshelve' marked build as failure Finished: FAILURE
Therefore please can you provide more context:
Thanks in advance,
Karl