-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download Pipeline Artifact V1 #9067
Merged
TingluoHuang
merged 10 commits into
microsoft:master
from
owenhuynMSFT:users/owhuyn/DownloadPipelineArtifactV1
Jan 29, 2019
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cac9879
Initial commit for DownloadPipelineArtifactV1.
owenhuynMSFT f10d881
Initial commit for DownloadPipelineArtifactV1.
owenhuynMSFT 14b8718
Changing the task version to V0 and V1 respectively
fadnavistanmay 6d68522
Merge branch 'users/owhuyn/DownloadPipelineArtifactV1' into users/owh…
fadnavistanmay 672675d
Merge pull request #1 from fadnavistanmay/users/owhuyn/DownloadPipeli…
owenhuynMSFT 1580c41
Fixed compat issues and min agent version.
owenhuynMSFT b80f62c
Removed change to renaming plugin name to V0.
owenhuynMSFT d2fa7c0
Deleted localization for download pipeline artifacts V1 task.
owenhuynMSFT 2650992
Changed min agent version to 2.147.0
owenhuynMSFT aeb716f
Fixed typo in loc.json and added US localization.
owenhuynMSFT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,202 @@ | ||
{ | ||
"id": "61F2A582-95AE-4948-B34D-A1B3C4F6A737", | ||
"name": "DownloadPipelineArtifact", | ||
"friendlyName": "Download Pipeline Artifact", | ||
"description": "Download Pipeline Artifact", | ||
"helpMarkDown": "Download named artifact from a pipeline to a local path.", | ||
"category": "Utility", | ||
"author": "Microsoft Corporation", | ||
"version": { | ||
"Major": 1, | ||
"Minor": 0, | ||
"Patch": 0 | ||
}, | ||
"groups": [], | ||
"demands": [], | ||
"preview": true, | ||
"minimumAgentVersion": "2.147", | ||
"inputs": [ | ||
{ | ||
"name": "buildType", | ||
"type": "radio", | ||
"label": "Download artifacts produced by", | ||
"defaultValue": "current", | ||
"required": true, | ||
"options": { | ||
"current": "Current build", | ||
"specific": "Specific build" | ||
}, | ||
"helpMarkDown": "Download artifacts produced by the current build, or from a specific build." | ||
}, | ||
{ | ||
"name": "project", | ||
"type": "pickList", | ||
"label": "Project", | ||
"defaultValue": "", | ||
"required": true, | ||
"visibleRule": "buildType == specific", | ||
"properties": { | ||
"EditableOptions": "True", | ||
"DisableManageLink": "True" | ||
}, | ||
"helpMarkDown": "The project from which to download the pipeline artifacts." | ||
}, | ||
{ | ||
"name": "definition", | ||
"aliases": [ | ||
"pipeline" | ||
], | ||
"type": "pickList", | ||
"label": "Build pipeline", | ||
"defaultValue": "", | ||
"required": true, | ||
"visibleRule": "buildType == specific", | ||
"properties": { | ||
"EditableOptions": "True", | ||
"DisableManageLink": "True", | ||
"IsSearchable": "True" | ||
}, | ||
"helpMarkDown": "Select the build pipeline name." | ||
}, | ||
{ | ||
"name": "specificBuildWithTriggering", | ||
"type": "boolean", | ||
"label": "When appropriate, download artifacts from the triggering build.", | ||
"defaultValue": "false", | ||
"required": false, | ||
"visibleRule": "buildType == specific", | ||
"helpMarkDown": "If checked, this build task will try to download artifacts from the triggering build. If there is no triggering build from the specified pipeline, it will download artifacts from the build specified in the options below." | ||
}, | ||
{ | ||
"name": "buildVersionToDownload", | ||
"type": "pickList", | ||
"label": "Build version to download", | ||
"defaultValue": "latest", | ||
"visibleRule": "buildType == specific", | ||
"required": true, | ||
"options": { | ||
"latest": "Latest", | ||
"latestFromBranch": "Latest from specific branch and specified Build Tags", | ||
"specific": "Specific version" | ||
} | ||
}, | ||
{ | ||
"name": "branchName", | ||
"type": "string", | ||
"label": "Branch name", | ||
"defaultValue": "refs/heads/master", | ||
"visibleRule": "buildType == specific && buildVersionToDownload == latestFromBranch", | ||
"required": true, | ||
"helpMarkDown": "Specify to filter on branch/ref name, for example: ```refs/heads/develop```." | ||
}, | ||
{ | ||
"name": "buildId", | ||
"type": "pickList", | ||
"label": "Build", | ||
"defaultValue": "", | ||
"required": true, | ||
"visibleRule": "buildType == specific && buildVersionToDownload == specific", | ||
"properties": { | ||
"EditableOptions": "True", | ||
"DisableManageLink": "True" | ||
}, | ||
"helpMarkDown": "The build from which to download the artifacts." | ||
}, | ||
{ | ||
"name": "tags", | ||
"type": "string", | ||
"label": "Build Tags", | ||
"defaultValue": "", | ||
"visibleRule": "buildType == specific && buildVersionToDownload != specific", | ||
"required": false, | ||
"helpMarkDown": "A comma-delimited list of tags. Only builds with these tags will be returned." | ||
}, | ||
{ | ||
"name": "artifactName", | ||
"type": "pickList", | ||
"label": "Artifact name", | ||
"defaultValue": "", | ||
"required": true, | ||
"properties": { | ||
"EditableOptions": "True", | ||
"DisableManageLink": "True" | ||
}, | ||
"helpMarkDown": "The name of the artifact to download." | ||
}, | ||
{ | ||
"name": "itemPattern", | ||
"type": "multiLine", | ||
"label": "Matching pattern", | ||
"defaultValue": "**", | ||
"required": false, | ||
"properties": { | ||
"rows": "3", | ||
"resizable": "true" | ||
}, | ||
"helpMarkDown": "Specify files to be downloaded as multi line minimatch pattern. [More Information](https://aka.ms/minimatchexamples).</p>" | ||
}, | ||
{ | ||
"name": "downloadPath", | ||
"type": "string", | ||
"label": "Destination directory", | ||
"defaultValue": "$(System.ArtifactsDirectory)", | ||
"required": true, | ||
"helpMarkDown": "Path on the agent machine where the artifacts will be downloaded." | ||
} | ||
], | ||
"dataSourceBindings": [ | ||
{ | ||
"endpointId": "tfs:teamfoundation", | ||
"target": "project", | ||
"endpointUrl": "{{endpoint.url}}/_apis/projects?$skip={{skip}}&$top=1000", | ||
"resultSelector": "jsonpath:$.value[?(@.state=='wellFormed')]", | ||
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }", | ||
"callbackContextTemplate": "{\"skip\": \"{{add skip 1000}}\"}", | ||
"callbackRequiredTemplate": "{{isEqualNumber result.count 1000}}", | ||
"initialContextTemplate": "{\"skip\": \"0\"}" | ||
}, | ||
{ | ||
"endpointId": "tfs:teamfoundation", | ||
"target": "definition", | ||
"endpointUrl": "{{endpoint.url}}/{{project}}/_apis/build/definitions?api-version=3.0-preview&$top=500&continuationToken={{{continuationToken}}}&name=*{{name}}*&queryOrder=2", | ||
"resultSelector": "jsonpath:$.value[?(@.quality=='definition')]", | ||
"parameters": { | ||
"project": "$(project)", | ||
"name": "$(name)" | ||
}, | ||
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{name}}}\" }", | ||
"callbackContextTemplate": "{\"continuationToken\" : \"{{{headers.x-ms-continuationtoken}}}\"}", | ||
"callbackRequiredTemplate": "{{{#headers.x-ms-continuationtoken}}}true{{{/headers.x-ms-continuationtoken}}}", | ||
"initialContextTemplate": "{\"continuationToken\" : \"{{{system.utcNow}}}\"}" | ||
}, | ||
{ | ||
"endpointId": "tfs:teamfoundation", | ||
"target": "buildId", | ||
"endpointUrl": "{{endpoint.url}}/{{project}}/_apis/build/builds?definitions={{definition}}&resultFilter=succeeded,partiallySucceeded&$top=200", | ||
"resultSelector": "jsonpath:$.value[*]", | ||
"parameters": { | ||
"project": "$(project)", | ||
"definition": "$(definition)" | ||
}, | ||
"resultTemplate": "{ \"Value\" : \"{{{id}}}\", \"DisplayValue\" : \"{{{buildNumber}}}\" }" | ||
}, | ||
{ | ||
"endpointId": "tfs:teamfoundation", | ||
"target": "artifactName", | ||
"endpointUrl": "{{endpoint.url}}/{{project}}/_apis/build/builds/{{buildId}}/artifacts", | ||
"resultSelector": "jsonpath:$.value[*]", | ||
"parameters": { | ||
"project": "$(project)", | ||
"buildId": "$(buildId)" | ||
}, | ||
"resultTemplate": "{ \"Value\" : \"{{{name}}}\", \"DisplayValue\" : \"{{{name}}}\" }" | ||
} | ||
], | ||
"instanceNameFormat": "Download Pipeline Artifact", | ||
"execution": { | ||
"AgentPlugin": { | ||
"target": "Agent.Plugins.PipelineArtifact.DownloadPipelineArtifactTaskV1, Agent.Plugins" | ||
} | ||
}, | ||
"messages": {} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.147.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ack