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

P4Plugin undo unshelve - Improve auto generated doc (explain tidy)

XMLWordPrintable

      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.

            Unassigned Unassigned
            _dentist Kürsat Kukul
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: