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

vSphere-cloud-plugin RenameSnapshot should support failOnNoExist

    Details

    • Similar Issues:

      Description

      Before I patch my VM,
      I want:

      • delete the old snapshot (class DeleteSnapshot)
      • rename the latest/current snapshot to old (class RenameSnapshot)
      • take a new current snapshot (class TakeSnapshot)

      Since I want it done by a Jenkins Pipeline automatically,
      I can not predict if there any of the current or old vm snapshot exists.

      DeleteSnapshot supports failOnNoExist parameter.
      If is set to false, the build step doesn't fail, if the snapshot does not exists.

      RenameSnapshot doesn't supports failOnNoExist.
      If the snapshot to be renamed doesn't exists, the build step fails in any case.

      Steps to solve it:

      To be discussed:

      • default value/behaviour of failOnNoExist

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              uhanisch Uwe Hanisch
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: