From 1bb6d8b3b89d069871024657bc3883e45f70ffde Mon Sep 17 00:00:00 2001 From: smile21prc Date: Wed, 23 Aug 2017 12:24:04 -0700 Subject: Initialize tools twice, to fix corefx build breaks and enable RHEL6 (#23509) * Initialize tools twice, to fix corefx build breaks and enable RHEL6 Initialize tools twice, to fix corefx build breaks and enable RHEL6 * Remove unnecessary "workingFolder" values Remove unnecessary "workingFolder" values --- buildpipeline/DotNet-CoreFx-Trusted-Linux.json | 53 +++++++++++++++++--------- 1 file changed, 35 insertions(+), 18 deletions(-) (limited to 'buildpipeline') diff --git a/buildpipeline/DotNet-CoreFx-Trusted-Linux.json b/buildpipeline/DotNet-CoreFx-Trusted-Linux.json index c9db7354f0..0dbd82d381 100644 --- a/buildpipeline/DotNet-CoreFx-Trusted-Linux.json +++ b/buildpipeline/DotNet-CoreFx-Trusted-Linux.json @@ -71,24 +71,41 @@ } }, { - "environment": {}, "enabled": true, "continueOnError": false, "alwaysRun": false, - "displayName": "Download docker files", + "displayName": "Create host machine tools sandbox", "timeoutInMinutes": 0, "task": { - "id": "10f1f9a1-74b0-47ab-87bf-e3c9c68e8b0d", - "versionSpec": "0.*", + "id": "5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c", + "versionSpec": "2.*", "definitionType": "task" }, "inputs": { - "type": "InlineScript", - "scriptPath": "", - "args": "", - "cwd": "", - "failOnStandardError": "false", - "script": "if [[ ! -d $(DockerFileDir) ]]; then\n mkdir -p $(DockerFileDir)\nfi\n\nif command -v curl > /dev/null; then\n curl --retry 10 -sSL -o $(DockerFileDir)/cleanup-docker.sh $(VsoDockerFileDirUrl)cleanup-docker.sh\n curl --retry 10 -sSL -o $(DockerFileDir)/init-docker.sh $(VsoDockerFileDirUrl)init-docker.sh\nelse\n wget $(VsoDockerFileDirUrl)cleanup-docker.sh -q -O $(DockerFileDir)/cleanup-docker.sh\n wget $(VsoDockerFileDirUrl)init-docker.sh -q -O $(DockerFileDir)/init-docker.sh\nfi\n\nsudo chmod +x $(DockerFileDir)/cleanup-docker.sh\nsudo chmod +x $(DockerFileDir)/init-docker.sh" + "SourceFolder": "$(PB_GitDirectory)", + "Contents": "init-tools.sh\nBuildToolsVersion.txt\nDotnetCLIVersion.txt\ninit-tools.msbuild", + "TargetFolder": "$(DockerHost_Sandbox)", + "CleanTargetFolder": "false", + "OverWrite": "false", + "flattenFolders": "false" + } + }, + { + "enabled": true, + "continueOnError": false, + "alwaysRun": false, + "displayName": "Initialize tools in sandbox for host machine", + "timeoutInMinutes": 0, + "task": { + "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9", + "versionSpec": "1.*", + "definitionType": "task" + }, + "inputs": { + "filename": "$(DockerHost_Sandbox)/init-tools.sh", + "arguments": "", + "workingFolder": "", + "failOnStandardError": "false" } }, { @@ -103,7 +120,7 @@ "definitionType": "task" }, "inputs": { - "filename": "$(DockerFileDir)/init-docker.sh", + "filename": "$(DockerHost_ToolsDirectory)/scripts/docker/init-docker.sh", "arguments": "$(PB_DockerImageName)", "workingFolder": "", "failOnStandardError": "false" @@ -248,7 +265,7 @@ "definitionType": "task" }, "inputs": { - "filename": "$(PB_GitDirectory)/Tools/scripts/docker/cleanup-docker.sh", + "filename": "$(DockerHost_ToolsDirectory)/scripts/docker/cleanup-docker.sh", "arguments": "", "workingFolder": "", "failOnStandardError": "false" @@ -331,6 +348,12 @@ "value": null, "isSecret": true }, + "DockerHost_Sandbox": { + "value": "$(Build.StagingDirectory)/HostSandbox" + }, + "DockerHost_ToolsDirectory": { + "value": "$(DockerHost_Sandbox)/Tools" + }, "OfficialBuildId": { "value": "$(Build.BuildNumber)", "allowOverride": true @@ -405,12 +428,6 @@ "PB_VsoRepositoryName": { "value": "DotNet-CoreFX-Trusted" }, - "DockerFileDir": { - "value": "tools/dockerscripts" - }, - "VsoDockerFileDirUrl": { - "value": "https://$(PB_VsoAccountName):$(VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/DotNet-Buildtools-Trusted/src/Microsoft.DotNet.Build.Tasks/PackageFiles/scripts/docker/" - }, "SourceVersion": { "value": "HEAD", "allowOverride": true -- cgit v1.2.3