This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
layout: single | ||
title: "Vetoing a Version" | ||
sidebar: | ||
nav: guides | ||
--- | ||
|
||
{% include toc %} | ||
|
||
You can veto a version in an environment to ensure that that version never gets deploy to the environment. | ||
If you veto an artifact in the first in a series of environments (linked together by `depends-on` constraints) the vetoed artifact will never be promoted into the later environments. | ||
|
||
### Vetoing via the API | ||
|
||
To veto via the API you'll need the application name, the name of the environment, the reference for your artifact (defined in your delivery config, defaulted to the artifact name), and the version you'd like to veto. | ||
The request needs to have a body that contains [this information](https://github.com/spinnaker/gate/blob/master/gate-core/src/main/groovy/com/netflix/spinnaker/gate/model/manageddelivery/EnvironmentArtifactVeto.java). | ||
Here's an example: | ||
|
||
`POST /managed/application/{application}/veto` | ||
|
||
with body: | ||
```json | ||
|
||
{ | ||
"targetEnvironment": "test", | ||
"reference" : "my-artifact", | ||
"version" : "master-h10.62bbbd6" | ||
} | ||
``` |