Add an option to specify retention days for artifacts (#575)

* Add an option to specify retention days for artifacts

* Validate against settings exposed as env var to give early feedback

* Fix lint

* Add tests and addressing feedback

* Update packages/artifact/__tests__/upload.test.ts

Co-authored-by: Konrad Pabjan <[email protected]>

* Update packages/artifact/README.md

Co-authored-by: Konrad Pabjan <[email protected]>

* Update packages/artifact/src/internal/utils.ts

Co-authored-by: Konrad Pabjan <[email protected]>

* Update packages/artifact/__tests__/util.test.ts

Co-authored-by: Konrad Pabjan <[email protected]>

Co-authored-by: Konrad Pabjan <[email protected]>
This commit is contained in:
Yang Cao
2020-09-18 11:30:00 -04:00
committed by GitHub
co-authored by Konrad Pabjan
parent 71b19c1d65
commit ace7a82469
10 changed files with 97 additions and 5 deletions
@@ -11,6 +11,7 @@ export interface ArtifactResponse {
export interface CreateArtifactParameters {
Type: string
Name: string
RetentionDays?: number
}
export interface PatchArtifactSize {