Skip to content

Commit

Permalink
add missed properties to task.json schema (#560)
Browse files Browse the repository at this point in the history
* add OutputVariables property

* add missed visibility property

* add missed postjobexecution object

* fix
  • Loading branch information
teh13th authored and Danny McCormick committed Oct 1, 2019
1 parent 058c15c commit 26ca808
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions tasks.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
]
}
},
"visibility": {
"type": "array",
"items": {
"type": "string",
"enum": [
"Build",
"Release"
]
}
},
"category": {
"type": "string",
"description": "Where the task appears in Azure DevOps. Use the 'Azure *' categories for Azure DevOps and Azure DevOps Server 2019. Use the other categories for Team Foundation Server 2018 and below.",
Expand Down Expand Up @@ -278,9 +288,50 @@
}
}
},
"postjobexecution": {
"type": "object",
"additionalProperties": false,
"description": "Execution options for this task (on Post-Job stage)",
"properties": {
"Node10": {
"$ref": "#/definitions/executionObject"
},
"Node": {
"$ref": "#/definitions/executionObject"
},
"PowerShell3": {
"$ref": "#/definitions/executionObject"
},
"PowerShell": {
"$ref": "#/definitions/executionObject"
}
}
},
"messages": {
"type": "object"
},
"OutputVariables": {
"type": "array",
"description": "Describes output variables of task.",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"description": "The variable name",
"pattern": "^[A-Za-z][A-Za-z0-9]*$"
},
"description": {
"type": "string",
"description": "Detailed description of the variable"
}
}
}
},
"$schema": {
"type": "string"
}
Expand Down

0 comments on commit 26ca808

Please sign in to comment.