Skip to content

Commit

Permalink
[DownloadPipelineArtifactV2] Add minimumBuildStatus property (#11664)
Browse files Browse the repository at this point in the history
* Add parameter to support partially succeeded and failed builds

Fixes #11556

* Minor version update

* Replace minimumBuildStatus parameter by allowPartiallySucceededBuilds and allowFailedBuilds

* Increment minor version

* Update min agent version
  • Loading branch information
Thilas authored and jahsu-MSFT committed Nov 22, 2019
1 parent 25ebab7 commit 25fd64f
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
"loc.input.help.runId": "The build from which to download the artifacts.",
"loc.input.label.tags": "Build Tags",
"loc.input.help.tags": "A comma-delimited list of tags. Only builds with these tags will be returned.",
"loc.input.label.allowPartiallySucceededBuilds": "Download artifacts from partially succeeded builds.",
"loc.input.help.allowPartiallySucceededBuilds": "If checked, this build task will try to download artifacts whether the build is succeeded or partially succeeded.",
"loc.input.label.allowFailedBuilds": "Download artifacts from failed builds.",
"loc.input.help.allowFailedBuilds": "If checked, this build task will try to download artifacts whether the build is succeeded or failed.",
"loc.input.label.artifact": "Artifact name",
"loc.input.help.artifact": "The name of the artifact to download. If left empty, it will download all artifacts associated to the pipeline run.",
"loc.input.label.patterns": "Matching patterns",
Expand Down
24 changes: 21 additions & 3 deletions Tasks/DownloadPipelineArtifactV2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 1,
"Patch": 2
"Minor": 2,
"Patch": 0
},
"groups": [],
"demands": [],
"preview": false,
"minimumAgentVersion": "2.159.2",
"minimumAgentVersion": "2.161.0",
"inputs": [
{
"name": "source",
Expand Down Expand Up @@ -128,6 +128,24 @@
"required": false,
"helpMarkDown": "A comma-delimited list of tags. Only builds with these tags will be returned."
},
{
"name": "allowPartiallySucceededBuilds",
"type": "boolean",
"label": "Download artifacts from partially succeeded builds.",
"defaultValue": "false",
"visibleRule": "source == specific && runVersion != specific",
"required": false,
"helpMarkDown": "If checked, this build task will try to download artifacts whether the build is succeeded or partially succeeded."
},
{
"name": "allowFailedBuilds",
"type": "boolean",
"label": "Download artifacts from failed builds.",
"defaultValue": "false",
"visibleRule": "source == specific && runVersion != specific",
"required": false,
"helpMarkDown": "If checked, this build task will try to download artifacts whether the build is succeeded or failed."
},
{
"name": "artifact",
"aliases": [
Expand Down
24 changes: 21 additions & 3 deletions Tasks/DownloadPipelineArtifactV2/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"author": "Microsoft Corporation",
"version": {
"Major": 2,
"Minor": 1,
"Patch": 2
"Minor": 2,
"Patch": 0
},
"groups": [],
"demands": [],
"preview": false,
"minimumAgentVersion": "2.159.2",
"minimumAgentVersion": "2.161.0",
"inputs": [
{
"name": "source",
Expand Down Expand Up @@ -129,6 +129,24 @@
"helpMarkDown": "ms-resource:loc.input.help.tags"
},
{
"name": "allowPartiallySucceededBuilds",
"type": "boolean",
"label": "ms-resource:loc.input.label.allowPartiallySucceededBuilds",
"defaultValue": "false",
"visibleRule": "source == specific && runVersion != specific",
"required": false,
"helpMarkDown": "ms-resource:loc.input.help.allowPartiallySucceededBuilds"
},
{
"name": "allowFailedBuilds",
"type": "boolean",
"label": "ms-resource:loc.input.label.allowFailedBuilds",
"defaultValue": "false",
"visibleRule": "source == specific && runVersion != specific",
"required": false,
"helpMarkDown": "ms-resource:loc.input.help.allowFailedBuilds"
},
{
"name": "artifact",
"aliases": [
"artifactName"
Expand Down

0 comments on commit 25fd64f

Please sign in to comment.