spinnaker.deployment.tasks.before.undoRolloutManifest
Policy checks that run immediately before a task rolls back a spinnaker manifest.
Example Payload
Click to expand
{
  "input": {
    "deploy": {
      "account": "spinnaker",
      "credentials": "spinnaker",
      "events": [],
      "location": "staging",
      "manifestName": "deployment hostname",
      "numRevisionsBack": 1,
      "revision": null
    }
  }
}
Example Policy
package spinnaker.deployment.tasks.before.undoRolloutManifest
deny ["You may only rollback 1 revision at a time."]{
	input.deploy.numRevisionsBack!=1
}
Keys
| Key | Type | Description | 
|---|---|---|
| input.deploy.account | string | The spinnaker account to which this stage is deploying. | 
| input.deploy.credentials | string | The credentials to use to access the account. | 
| input.deploy.location | string | The name of the namespace the manifest is being deleted from. | 
| input.deploy.manifestName | string | The name of the manifest being deleted. | 
| input.deploy.numRevisionsBack | number | How many revisions of the manifest should be rolled back. | 
| input.deploy.revision | number | What revision the manifest should be rolled back to. | 
Feedback
Was this page helpful?
Thank you for letting us know!
Sorry to hear that. Please tell us how we can improve.
Last modified August 18, 2023: (02b163b7)