Skip to content

Commit

Permalink
Simplify repetitive YAML of 'PublishBuildArtifacts' using default val…
Browse files Browse the repository at this point in the history
…ues (#7101)

* Simplify repetitive YAML of PublishBuildArtirfacts with default values

* Change artifact name back to 'drop'
  • Loading branch information
davidstaheli committed Apr 30, 2018
1 parent 4ecb2fe commit 8ae7a48
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loc.input.label.PathtoPublish": "Path to publish",
"loc.input.help.PathtoPublish": "The folder or file path to publish. This can be a fully-qualified path or a path relative to the root of the repository. Wildcards are not supported. [Variables](https://go.microsoft.com/fwlink/?LinkID=550988) are supported. Example: $(Build.ArtifactStagingDirectory)",
"loc.input.label.ArtifactName": "Artifact name",
"loc.input.help.ArtifactName": "The name of the artifact to create in the publish location",
"loc.input.help.ArtifactName": "The name of the artifact to create in the publish location.",
"loc.input.label.ArtifactType": "Artifact publish location",
"loc.input.help.ArtifactType": "Choose whether to store the artifact in Visual Studio Team Services/TFS, or to copy it to a file share that must be accessible from the build agent.",
"loc.input.label.TargetPath": "File share path",
Expand Down
10 changes: 5 additions & 5 deletions Tasks/PublishBuildArtifacts/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 133,
"Minor": 135,
"Patch": 0
},
"demands": [],
Expand All @@ -21,24 +21,24 @@
"name": "PathtoPublish",
"type": "filePath",
"label": "Path to publish",
"defaultValue": "",
"defaultValue": "$(Build.ArtifactStagingDirectory)",
"required": true,
"helpMarkDown": "The folder or file path to publish. This can be a fully-qualified path or a path relative to the root of the repository. Wildcards are not supported. [Variables](https://go.microsoft.com/fwlink/?LinkID=550988) are supported. Example: $(Build.ArtifactStagingDirectory)"
},
{
"name": "ArtifactName",
"type": "string",
"label": "Artifact name",
"defaultValue": "",
"defaultValue": "drop",
"required": true,
"helpMarkDown": "The name of the artifact to create in the publish location"
"helpMarkDown": "The name of the artifact to create in the publish location."
},
{
"name": "ArtifactType",
"aliases": [ "publishLocation" ],
"type": "pickList",
"label": "Artifact publish location",
"defaultValue": "",
"defaultValue": "Container",
"required": true,
"helpMarkDown": "Choose whether to store the artifact in Visual Studio Team Services/TFS, or to copy it to a file share that must be accessible from the build agent.",
"options": {
Expand Down
8 changes: 4 additions & 4 deletions Tasks/PublishBuildArtifacts/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 1,
"Minor": 133,
"Minor": 135,
"Patch": 0
},
"demands": [],
Expand All @@ -21,15 +21,15 @@
"name": "PathtoPublish",
"type": "filePath",
"label": "ms-resource:loc.input.label.PathtoPublish",
"defaultValue": "",
"defaultValue": "$(Build.ArtifactStagingDirectory)",
"required": true,
"helpMarkDown": "ms-resource:loc.input.help.PathtoPublish"
},
{
"name": "ArtifactName",
"type": "string",
"label": "ms-resource:loc.input.label.ArtifactName",
"defaultValue": "",
"defaultValue": "drop",
"required": true,
"helpMarkDown": "ms-resource:loc.input.help.ArtifactName"
},
Expand All @@ -40,7 +40,7 @@
],
"type": "pickList",
"label": "ms-resource:loc.input.label.ArtifactType",
"defaultValue": "",
"defaultValue": "Container",
"required": true,
"helpMarkDown": "ms-resource:loc.input.help.ArtifactType",
"options": {
Expand Down

0 comments on commit 8ae7a48

Please sign in to comment.