From: Juan Carlos Aguilera Mendez Date: Tue, 24 Apr 2018 22:36:07 +0000 (-0700) Subject: Adding Begin and End scripts to build defs X-Git-Tag: submit/tizen/20210909.063632~11032^2~697^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c0250c9f9854c4c9d2b3ea4f90f51cabf2fd7360;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Adding Begin and End scripts to build defs Commit migrated from https://github.com/dotnet/core-setup/commit/3db0ffcbdf8e076e066790908bbbca9157beed93 --- diff --git a/src/installer/buildpipeline/Core-Setup-Linux-Arm-BT.json b/src/installer/buildpipeline/Core-Setup-Linux-Arm-BT.json index 612dbff..2e1336e 100644 --- a/src/installer/buildpipeline/Core-Setup-Linux-Arm-BT.json +++ b/src/installer/buildpipeline/Core-Setup-Linux-Arm-BT.json @@ -4,6 +4,27 @@ "environment": {}, "enabled": true, "continueOnError": true, + "displayName": "run begin.sh", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", + "versionSpec": "0.*", + "definitionType": "task" + }, + "inputs": { + "type": "InlineScript", + "scriptPath": "", + "args": "", + "cwd": "", + "failOnStandardError": "false", + "script": "if [ -f \"$AGENTTOOLSPATH/begin.sh\" ]; then echo \"$AGENTTOOLSPATH/begin.sh script found. Executing...\"; $AGENTTOOLSPATH/begin.sh ; else echo \"$AGENTTOOLSPATH/begin.sh script does not exist. Moving on.\" ; fi" + } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, "alwaysRun": false, "displayName": "Cleanup previous build", "timeoutInMinutes": 0, @@ -249,6 +270,27 @@ "workingFolder": "$(DockerHost_ToolsDirectory)/scripts/vstsagent/", "failOnStandardError": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "displayName": "run end.sh", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", + "versionSpec": "0.*", + "definitionType": "task" + }, + "inputs": { + "type": "InlineScript", + "scriptPath": "", + "args": "", + "cwd": "", + "failOnStandardError": "false", + "script": "if [ -f \"$AGENTTOOLSPATH/end.sh\" ]; then echo \"$AGENTTOOLSPATH/end.sh script found. Executing...\"; $AGENTTOOLSPATH/end.sh ; else echo \"$AGENTTOOLSPATH/end.sh script does not exist. Moving on.\" ; fi" + } } ], "options": [ diff --git a/src/installer/buildpipeline/Core-Setup-Linux-BT.json b/src/installer/buildpipeline/Core-Setup-Linux-BT.json index 7913e2f..ac804bf 100644 --- a/src/installer/buildpipeline/Core-Setup-Linux-BT.json +++ b/src/installer/buildpipeline/Core-Setup-Linux-BT.json @@ -4,6 +4,27 @@ "environment": {}, "enabled": true, "continueOnError": true, + "displayName": "run begin.sh", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", + "versionSpec": "0.*", + "definitionType": "task" + }, + "inputs": { + "type": "InlineScript", + "scriptPath": "", + "args": "", + "cwd": "", + "failOnStandardError": "false", + "script": "if [ -f \"$AGENTTOOLSPATH/begin.sh\" ]; then echo \"$AGENTTOOLSPATH/begin.sh script found. Executing...\"; $AGENTTOOLSPATH/begin.sh ; else echo \"$AGENTTOOLSPATH/begin.sh script does not exist. Moving on.\" ; fi" + } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, "alwaysRun": false, "displayName": "Cleanup previous build", "timeoutInMinutes": 0, @@ -1113,6 +1134,27 @@ "workingFolder": "$(DockerHost_ToolsDirectory)/scripts/vstsagent/", "failOnStandardError": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "displayName": "run end.sh", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", + "versionSpec": "0.*", + "definitionType": "task" + }, + "inputs": { + "type": "InlineScript", + "scriptPath": "", + "args": "", + "cwd": "", + "failOnStandardError": "false", + "script": "if [ -f \"$AGENTTOOLSPATH/end.sh\" ]; then echo \"$AGENTTOOLSPATH/end.sh script found. Executing...\"; $AGENTTOOLSPATH/end.sh ; else echo \"$AGENTTOOLSPATH/end.sh script does not exist. Moving on.\" ; fi" + } } ], "options": [ diff --git a/src/installer/buildpipeline/Core-Setup-OSX-BT.json b/src/installer/buildpipeline/Core-Setup-OSX-BT.json index 65e3ccc..bdf4b2c 100644 --- a/src/installer/buildpipeline/Core-Setup-OSX-BT.json +++ b/src/installer/buildpipeline/Core-Setup-OSX-BT.json @@ -4,6 +4,27 @@ "environment": {}, "enabled": true, "continueOnError": true, + "displayName": "run begin.sh", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", + "versionSpec": "0.*", + "definitionType": "task" + }, + "inputs": { + "type": "InlineScript", + "scriptPath": "", + "args": "", + "cwd": "", + "failOnStandardError": "false", + "script": "if [ -f \"$AGENTTOOLSPATH/begin.sh\" ]; then echo \"$AGENTTOOLSPATH/begin.sh script found. Executing...\"; $AGENTTOOLSPATH/begin.sh ; else echo \"$AGENTTOOLSPATH/begin.sh script does not exist. Moving on.\" ; fi" + } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, "alwaysRun": false, "displayName": "Cleanup previous build", "timeoutInMinutes": 0, @@ -120,6 +141,27 @@ "workingFolder": "$(PB_SourcesDirectory)", "failOnStandardError": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "displayName": "run end.sh", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", + "versionSpec": "0.*", + "definitionType": "task" + }, + "inputs": { + "type": "InlineScript", + "scriptPath": "", + "args": "", + "cwd": "", + "failOnStandardError": "false", + "script": "if [ -f \"$AGENTTOOLSPATH/end.sh\" ]; then echo \"$AGENTTOOLSPATH/end.sh script found. Executing...\"; $AGENTTOOLSPATH/end.sh ; else echo \"$AGENTTOOLSPATH/end.sh script does not exist. Moving on.\" ; fi" + } } ], "options": [ diff --git a/src/installer/buildpipeline/Core-Setup-Publish.json b/src/installer/buildpipeline/Core-Setup-Publish.json index c42571f..ec25d86 100644 --- a/src/installer/buildpipeline/Core-Setup-Publish.json +++ b/src/installer/buildpipeline/Core-Setup-Publish.json @@ -1,6 +1,29 @@ { "build": [ { + "environment": {}, + "enabled": true, + "continueOnError": true, + "displayName": "run begin.ps1", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\begin.ps1\") {\n \"$(AgentToolsPath)\\begin.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\begin.ps1\n} else {\n \"$(AgentToolsPath)\\begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { "enabled": true, "continueOnError": false, "alwaysRun": false, @@ -312,6 +335,29 @@ "workingFolder": "", "failOnStandardError": "false" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "run end.ps1", + "timeoutInMinutes": 0, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\end.ps1\") {\n \"$(AgentToolsPath)\\end.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\end.ps1\n} else {\n \"$(AgentToolsPath)\\end.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ diff --git a/src/installer/buildpipeline/Core-Setup-Signing-Validation.json b/src/installer/buildpipeline/Core-Setup-Signing-Validation.json index 3d1600f..c6b7aa4 100644 --- a/src/installer/buildpipeline/Core-Setup-Signing-Validation.json +++ b/src/installer/buildpipeline/Core-Setup-Signing-Validation.json @@ -4,6 +4,29 @@ "environment": {}, "enabled": true, "continueOnError": true, + "displayName": "run begin.ps1", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\begin.ps1\") {\n \"$(AgentToolsPath)\\begin.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\begin.ps1\n} else {\n \"$(AgentToolsPath)\\begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, "alwaysRun": false, "displayName": "Cleanup previous build if present", "timeoutInMinutes": 0, @@ -157,6 +180,29 @@ "Parallel": "false", "ParallelCount": "8" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "run end.ps1", + "timeoutInMinutes": 0, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\end.ps1\") {\n \"$(AgentToolsPath)\\end.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\end.ps1\n} else {\n \"$(AgentToolsPath)\\end.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ diff --git a/src/installer/buildpipeline/Core-Setup-Windows-Arm-BT.json b/src/installer/buildpipeline/Core-Setup-Windows-Arm-BT.json index 878fdfc..3060fa6 100644 --- a/src/installer/buildpipeline/Core-Setup-Windows-Arm-BT.json +++ b/src/installer/buildpipeline/Core-Setup-Windows-Arm-BT.json @@ -4,6 +4,29 @@ "environment": {}, "enabled": true, "continueOnError": true, + "displayName": "run begin.ps1", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\begin.ps1\") {\n \"$(AgentToolsPath)\\begin.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\begin.ps1\n} else {\n \"$(AgentToolsPath)\\begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, "alwaysRun": false, "displayName": "Cleanup previous build if present", "timeoutInMinutes": 0, @@ -359,6 +382,29 @@ "Parallel": "false", "ParallelCount": "8" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "run end.ps1", + "timeoutInMinutes": 0, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\end.ps1\") {\n \"$(AgentToolsPath)\\end.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\end.ps1\n} else {\n \"$(AgentToolsPath)\\end.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [ diff --git a/src/installer/buildpipeline/Core-Setup-Windows-BT.json b/src/installer/buildpipeline/Core-Setup-Windows-BT.json index 8562bd6..8d2cf4b 100644 --- a/src/installer/buildpipeline/Core-Setup-Windows-BT.json +++ b/src/installer/buildpipeline/Core-Setup-Windows-BT.json @@ -4,6 +4,29 @@ "environment": {}, "enabled": true, "continueOnError": true, + "displayName": "run begin.ps1", + "timeoutInMinutes": 0, + "alwaysRun": true, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\begin.ps1\") {\n \"$(AgentToolsPath)\\begin.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\begin.ps1\n} else {\n \"$(AgentToolsPath)\\begin.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, "alwaysRun": false, "displayName": "Cleanup previous build if present", "timeoutInMinutes": 0, @@ -563,6 +586,29 @@ "Parallel": "false", "ParallelCount": "8" } + }, + { + "environment": {}, + "enabled": true, + "continueOnError": true, + "alwaysRun": true, + "displayName": "run end.ps1", + "timeoutInMinutes": 0, + "task": { + "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", + "versionSpec": "2.*", + "definitionType": "task" + }, + "inputs": { + "targetType": "inline", + "filePath": "", + "arguments": "", + "script": "if (Test-Path \"$(AgentToolsPath)\\end.ps1\") {\n \"$(AgentToolsPath)\\end.ps1 script found. Executing...\"\n & $(AgentToolsPath)\\end.ps1\n} else {\n \"$(AgentToolsPath)\\end.ps1 script does not exist. Moving on...\"\n}", + "errorActionPreference": "continue", + "failOnStderr": "false", + "ignoreLASTEXITCODE": "true", + "workingDirectory": "" + } } ], "options": [