UPDATED: Improve the auto generated doc to explain what 'tidy' does:
ORIGINAL QUESTION:
So I got a Pipeline where I do an unshelve operation with the p4plugin.
The command looks like this:
p4unshelve( credential: 'CI_Creds', shelf: "${unshelve{color:#569cd6}}", workspace: staticSpec(charset: 'none', pinHost: false, name: 'ci_workspace'))
This works just as I would expect it to work.
But I can't seem to figure out a way to have an equivalent command using p4plugin for p4.exe revert -c default //...
I just want to be able to undo the unshelve command when the pipeline ends.
I tried using a regular batch command, I guess I could get that to work if I set up the environment correctly but this would also mean that the p4credentials would have to be passed to that batch command which I don't want.
Is there a solution for this?
Thanks in advance.