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

vSphere-cloud-plugin RenameSnapshot should support failOnNoExist

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • vsphere-cloud-plugin
    • None

      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

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

              Created:
              Updated: