diff --git a/Tasks/DownloadPipelineArtifactV2/Strings/resources.resjson/en-US/resources.resjson b/Tasks/DownloadPipelineArtifactV2/Strings/resources.resjson/en-US/resources.resjson index e3c5a9a79215..de0b01766142 100644 --- a/Tasks/DownloadPipelineArtifactV2/Strings/resources.resjson/en-US/resources.resjson +++ b/Tasks/DownloadPipelineArtifactV2/Strings/resources.resjson/en-US/resources.resjson @@ -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", diff --git a/Tasks/DownloadPipelineArtifactV2/task.json b/Tasks/DownloadPipelineArtifactV2/task.json index 8546d2f4a3b5..4086a2e61713 100644 --- a/Tasks/DownloadPipelineArtifactV2/task.json +++ b/Tasks/DownloadPipelineArtifactV2/task.json @@ -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", @@ -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": [ diff --git a/Tasks/DownloadPipelineArtifactV2/task.loc.json b/Tasks/DownloadPipelineArtifactV2/task.loc.json index bebbcf3a26d1..da57e40f23b0 100644 --- a/Tasks/DownloadPipelineArtifactV2/task.loc.json +++ b/Tasks/DownloadPipelineArtifactV2/task.loc.json @@ -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", @@ -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"