Skip to content
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.

Commit

Permalink
chore(PR): change wording to mark as bad
Browse files Browse the repository at this point in the history
  • Loading branch information
emjburns committed Apr 29, 2020
1 parent 7c1ddcb commit 3f71540
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,8 @@ guides:
url: /guides/user/managed-delivery/artifacts/
- title: Pinning an Environment
url: /guides/user/managed-delivery/pinning/
- title: Vetoing an Artifact
url: /guides/user/managed-delivery/vetoing/
- title: Marking an Artifact as Bad
url: /guides/user/managed-delivery/marking-as-bad/
- title: Resource Status
url: /guides/user/managed-delivery/resource-status/
- title: API
Expand Down
29 changes: 29 additions & 0 deletions guides/user/managed-delivery/marking-as-bad/index.md
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"
}
```
29 changes: 0 additions & 29 deletions guides/user/managed-delivery/vetoing/index.md

This file was deleted.

0 comments on commit 3f71540

Please sign in to comment.