From c1142249bba77bc3bbe35d7806d9dc0eafaed535 Mon Sep 17 00:00:00 2001 From: Cesar Soares Lucas Date: Mon, 2 Apr 2018 14:49:12 -0700 Subject: [PATCH] Adding Begin/End definitions. Formatting correctly. --- .../DotNet-CoreClr-Trusted-Linux-Crossbuild.json | 48 +++++++++++++++++++++ buildpipeline/DotNet-CoreClr-Trusted-Linux.json | 48 +++++++++++++++++++++ buildpipeline/DotNet-CoreClr-Trusted-Mac.json | 50 +++++++++++++++++++++- .../DotNet-CoreClr-Trusted-Windows-x86.json | 50 +++++++++++++++++++++- buildpipeline/DotNet-CoreClr-Trusted-Windows.json | 50 +++++++++++++++++++++- buildpipeline/DotNet-Trusted-Publish-Symbols.json | 48 +++++++++++++++++++++ buildpipeline/DotNet-Trusted-Publish.json | 48 +++++++++++++++++++++ 7 files changed, 339 insertions(+), 3 deletions(-) diff --git a/buildpipeline/DotNet-CoreClr-Trusted-Linux-Crossbuild.json b/buildpipeline/DotNet-CoreClr-Trusted-Linux-Crossbuild.json index a278d1b..ef671ff 100644 --- a/buildpipeline/DotNet-CoreClr-Trusted-Linux-Crossbuild.json +++ b/buildpipeline/DotNet-CoreClr-Trusted-Linux-Crossbuild.json @@ -3,6 +3,30 @@ { "environment": {}, "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.sh", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.sh\") {\n \"Begin.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.sh\n} else {\n \"Begin.sh script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Initialize tools", @@ -367,6 +391,30 @@ "workingFolder": "", "failOnStandardError": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.sh", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.sh\") {\n \"End.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.sh\n} else {\n \"End.sh script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ diff --git a/buildpipeline/DotNet-CoreClr-Trusted-Linux.json b/buildpipeline/DotNet-CoreClr-Trusted-Linux.json index 077b68b..54065c0 100644 --- a/buildpipeline/DotNet-CoreClr-Trusted-Linux.json +++ b/buildpipeline/DotNet-CoreClr-Trusted-Linux.json @@ -3,6 +3,30 @@ { "environment": {}, "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.sh", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.sh\") {\n \"Begin.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.sh\n} else {\n \"Begin.sh script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Initialize tools", @@ -327,6 +351,30 @@ "workingFolder": "", "failOnStandardError": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.sh", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.sh\") {\n \"End.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.sh\n} else {\n \"End.sh script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ diff --git a/buildpipeline/DotNet-CoreClr-Trusted-Mac.json b/buildpipeline/DotNet-CoreClr-Trusted-Mac.json index a9dffd9..bdc5ace 100644 --- a/buildpipeline/DotNet-CoreClr-Trusted-Mac.json +++ b/buildpipeline/DotNet-CoreClr-Trusted-Mac.json @@ -3,6 +3,30 @@ { "environment": {}, "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.sh", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.sh\") {\n \"Begin.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.sh\n} else {\n \"Begin.sh script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Run $(Agent.BuildDirectory)/s/clean.sh", @@ -185,6 +209,30 @@ "Parallel": "false", "ParallelCount": "8" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.sh", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.sh\") {\n \"End.sh script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.sh\n} else {\n \"End.sh script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ @@ -311,4 +359,4 @@ "revision": 418098432, "visibility": "organization" } -} \ No newline at end of file +} diff --git a/buildpipeline/DotNet-CoreClr-Trusted-Windows-x86.json b/buildpipeline/DotNet-CoreClr-Trusted-Windows-x86.json index a4ae2bf..0c68d3b 100644 --- a/buildpipeline/DotNet-CoreClr-Trusted-Windows-x86.json +++ b/buildpipeline/DotNet-CoreClr-Trusted-Windows-x86.json @@ -3,6 +3,30 @@ { "environment": {}, "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.ps1\") {\n \"Begin.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.ps1\n} else {\n \"Begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Install Signing Plugin", @@ -275,6 +299,30 @@ "Parallel": "false", "ParallelCount": "8" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.ps1\") {\n \"End.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.ps1\n} else {\n \"End.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ @@ -435,4 +483,4 @@ "revision": 418098432, "visibility": "organization" } -} \ No newline at end of file +} diff --git a/buildpipeline/DotNet-CoreClr-Trusted-Windows.json b/buildpipeline/DotNet-CoreClr-Trusted-Windows.json index ef03b0b..1c9e727 100644 --- a/buildpipeline/DotNet-CoreClr-Trusted-Windows.json +++ b/buildpipeline/DotNet-CoreClr-Trusted-Windows.json @@ -3,6 +3,30 @@ { "environment": {}, "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.ps1\") {\n \"Begin.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.ps1\n} else {\n \"Begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Install Signing Plugin", @@ -275,6 +299,30 @@ "Parallel": "false", "ParallelCount": "8" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.ps1\") {\n \"End.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.ps1\n} else {\n \"End.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ @@ -428,4 +476,4 @@ "revision": 418098432, "visibility": "organization" } -} \ No newline at end of file +} diff --git a/buildpipeline/DotNet-Trusted-Publish-Symbols.json b/buildpipeline/DotNet-Trusted-Publish-Symbols.json index d796a21..507c9e1 100644 --- a/buildpipeline/DotNet-Trusted-Publish-Symbols.json +++ b/buildpipeline/DotNet-Trusted-Publish-Symbols.json @@ -1,6 +1,30 @@ { "build": [ { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.ps1\") {\n \"Begin.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.ps1\n} else {\n \"Begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { "enabled": true, "continueOnError": false, "alwaysRun": false, @@ -79,6 +103,30 @@ "expirationInDays": "30", "usePat": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.ps1\") {\n \"End.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.ps1\n} else {\n \"End.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ diff --git a/buildpipeline/DotNet-Trusted-Publish.json b/buildpipeline/DotNet-Trusted-Publish.json index 8cff0ee..eb24555 100644 --- a/buildpipeline/DotNet-Trusted-Publish.json +++ b/buildpipeline/DotNet-Trusted-Publish.json @@ -3,6 +3,30 @@ { "environment": {}, "enabled": true, + "continueOnError": true, + "alwaysRun": false, + "displayName": "Run AgentTools/Begin.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\Begin.ps1\") {\n \"Begin.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\Begin.ps1\n} else {\n \"Begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, "continueOnError": false, "alwaysRun": false, "displayName": "Install Signing Plugin", @@ -479,6 +503,30 @@ "definitionType": "task" }, "inputs": {} + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "Run AgentTools/End.ps1", + "timeoutInMinutes": 0, + "condition": "succeededOrFailed()", + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\End.ps1\") {\n \"End.ps1 script found. Executing...\"\n cd $(AgentToolsPath)\n & $(AgentToolsPath)\\End.ps1\n} else {\n \"End.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ -- 2.7.4