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.
chore(PR): change wording to mark as bad
- Loading branch information
Showing
3 changed files
with
31 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
layout: single | ||
title: "Marking an Artifact as Bad" | ||
sidebar: | ||
nav: guides | ||
--- | ||
|
||
{% include toc %} | ||
|
||
You can mark a version of an artifact in an environment as bad to ensure that that version never gets deployed to the environment. | ||
If you mark an artifact as bad in the first in a series of environments (linked together by `depends-on` constraints) that version of the artifact will never be promoted into the later environments. | ||
|
||
### Marking via the API | ||
|
||
To mark the artifact 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 that is bad. | ||
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" | ||
} | ||
``` |
This file was deleted.
Oops, something went wrong.