Skip to content

Commit

Permalink
Rebuild the task
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanduplenskikh committed Aug 23, 2024
1 parent e1f582d commit f163e25
Show file tree
Hide file tree
Showing 14 changed files with 590 additions and 390 deletions.
282 changes: 202 additions & 80 deletions Tasks/PythonScriptV0/_buildConfigs/Node20/package-lock.json

Large diffs are not rendered by default.

226 changes: 113 additions & 113 deletions Tasks/PythonScriptV0/task.json
Original file line number Diff line number Diff line change
@@ -1,118 +1,118 @@
{
"id": "6392F95F-7E76-4A18-B3C7-7F078D2F7700",
"name": "PythonScript",
"friendlyName": "Python script",
"description": "Run a Python file or inline script",
"helpUrl": "https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/python-script",
"helpMarkDown": "[Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=2006181) or [see the Python documentation](https://www.python.org/doc/)",
"category": "Utility",
"visibility": [
"Build",
"Release"
],
"runsOn": [
"Agent",
"DeploymentGroup"
],
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 245,
"Patch": 0
"id": "6392F95F-7E76-4A18-B3C7-7F078D2F7700",
"name": "PythonScript",
"friendlyName": "Python script",
"description": "Run a Python file or inline script",
"helpUrl": "https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/python-script",
"helpMarkDown": "[Learn more about this task](https://go.microsoft.com/fwlink/?LinkID=2006181) or [see the Python documentation](https://www.python.org/doc/)",
"category": "Utility",
"visibility": [
"Build",
"Release"
],
"runsOn": [
"Agent",
"DeploymentGroup"
],
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 244,
"Patch": 0
},
"demands": [],
"instanceNameFormat": "Run a Python script",
"groups": [
{
"name": "advanced",
"displayName": "Advanced",
"isExpanded": false
}
],
"inputs": [
{
"name": "scriptSource",
"type": "radio",
"label": "Script source",
"required": true,
"defaultValue": "filePath",
"helpMarkDown": "Whether the script is a file in the source tree or is written inline in this task.",
"options": {
"filePath": "File path",
"inline": "Inline"
}
},
{
"name": "scriptPath",
"type": "filePath",
"label": "Script path",
"visibleRule": "scriptSource = filePath",
"required": true,
"defaultValue": "",
"helpMarkDown": "Path of the script to execute. Must be a fully qualified path or relative to `$(System.DefaultWorkingDirectory)`."
},
{
"name": "script",
"type": "multiLine",
"label": "Script",
"visibleRule": "scriptSource = inline",
"required": true,
"defaultValue": "",
"properties": {
"resizable": "true",
"rows": "10",
"maxLength": "5000"
},
"helpMarkDown": "The Python script to run"
},
{
"name": "arguments",
"type": "string",
"label": "Arguments",
"required": false,
"defaultValue": "",
"helpMarkDown": "Arguments passed to the script execution, available through `sys.argv`."
},
"demands": [],
"instanceNameFormat": "Run a Python script",
"groups": [
{
"name": "advanced",
"displayName": "Advanced",
"isExpanded": false
}
],
"inputs": [
{
"name": "scriptSource",
"type": "radio",
"label": "Script source",
"required": true,
"defaultValue": "filePath",
"helpMarkDown": "Whether the script is a file in the source tree or is written inline in this task.",
"options": {
"filePath": "File path",
"inline": "Inline"
}
},
{
"name": "scriptPath",
"type": "filePath",
"label": "Script path",
"visibleRule": "scriptSource = filePath",
"required": true,
"defaultValue": "",
"helpMarkDown": "Path of the script to execute. Must be a fully qualified path or relative to `$(System.DefaultWorkingDirectory)`."
},
{
"name": "script",
"type": "multiLine",
"label": "Script",
"visibleRule": "scriptSource = inline",
"required": true,
"defaultValue": "",
"properties": {
"resizable": "true",
"rows": "10",
"maxLength": "5000"
},
"helpMarkDown": "The Python script to run"
},
{
"name": "arguments",
"type": "string",
"label": "Arguments",
"required": false,
"defaultValue": "",
"helpMarkDown": "Arguments passed to the script execution, available through `sys.argv`."
},
{
"name": "pythonInterpreter",
"type": "string",
"label": "Python interpreter",
"defaultValue": "",
"required": false,
"helpMarkDown": "Absolute path to the Python interpreter to use. If not specified, the task will use the interpreter in PATH.<br /> Run the [Use Python Version](https://go.microsoft.com/fwlink/?linkid=871498) task to add a version of Python to PATH.",
"groupName": "advanced"
},
{
"name": "workingDirectory",
"type": "filePath",
"label": "Working directory",
"defaultValue": "",
"required": false,
"helpMarkDown": "The working directory where the script will run. If not specified, the value of `System.DefaultWorkingDirectory` will be used. For builds, this variable defaults to the root of the repository. For releases, it defaults to the root of the artifacts directory.",
"groupName": "advanced"
},
{
"name": "failOnStderr",
"type": "boolean",
"label": "Fail on standard error",
"defaultValue": "false",
"required": false,
"helpMarkDown": "If this is true, this task will fail if any text is written to the stderr stream.",
"groupName": "advanced"
}
],
"execution": {
"Node10": {
"target": "main.js",
"argumentFormat": ""
},
"Node16": {
"target": "main.js",
"argumentFormat": ""
}
{
"name": "pythonInterpreter",
"type": "string",
"label": "Python interpreter",
"defaultValue": "",
"required": false,
"helpMarkDown": "Absolute path to the Python interpreter to use. If not specified, the task will use the interpreter in PATH.<br /> Run the [Use Python Version](https://go.microsoft.com/fwlink/?linkid=871498) task to add a version of Python to PATH.",
"groupName": "advanced"
},
{
"name": "workingDirectory",
"type": "filePath",
"label": "Working directory",
"defaultValue": "",
"required": false,
"helpMarkDown": "The working directory where the script will run. If not specified, the value of `System.DefaultWorkingDirectory` will be used. For builds, this variable defaults to the root of the repository. For releases, it defaults to the root of the artifacts directory.",
"groupName": "advanced"
},
{
"name": "failOnStderr",
"type": "boolean",
"label": "Fail on standard error",
"defaultValue": "false",
"required": false,
"helpMarkDown": "If this is true, this task will fail if any text is written to the stderr stream.",
"groupName": "advanced"
}
],
"execution": {
"Node10": {
"target": "main.js",
"argumentFormat": ""
},
"messages": {
"NotAFile": "The given path was not to a file: '%s'.",
"ParameterRequired": "The `%s` parameter is required"
"Node16": {
"target": "main.js",
"argumentFormat": ""
}
},
"messages": {
"NotAFile": "The given path was not to a file: '%s'.",
"ParameterRequired": "The `%s` parameter is required"
}
}
2 changes: 1 addition & 1 deletion Tasks/PythonScriptV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 245,
"Minor": 244,
"Patch": 0
},
"demands": [],
Expand Down
4 changes: 2 additions & 2 deletions _generated/PythonScriptV0.versionmap.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Default|0.237.0
Node20-225|0.237.1
Default|0.244.0
Node20-225|0.244.1
70 changes: 21 additions & 49 deletions _generated/PythonScriptV0/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions _generated/PythonScriptV0/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
},
"homepage": "https://github.com/Microsoft/azure-pipelines-tasks#readme",
"dependencies": {
"@types/node": "^16.11.39",
"@types/mocha": "^5.2.7",
"@types/node": "^16.11.39",
"@types/q": "^1.5.4",
"@types/uuid": "^8.3.0",
"azure-pipelines-task-lib": "^4.10.1"
"azure-pipelines-task-lib": "^4.17.0"
},
"devDependencies": {
"typescript": "4.0.2"
Expand Down
Loading

0 comments on commit f163e25

Please sign in to comment.