diff --git a/build/Microsoft.DotNet.Cli.Prepare.targets b/build/Microsoft.DotNet.Cli.Prepare.targets
index f1d07bd9d..5eb5af4b1 100644
--- a/build/Microsoft.DotNet.Cli.Prepare.targets
+++ b/build/Microsoft.DotNet.Cli.Prepare.targets
@@ -62,7 +62,7 @@
-
+
diff --git a/build/Microsoft.DotNet.Cli.Publish.targets b/build/Microsoft.DotNet.Cli.Publish.targets
index 66b3d84d3..9c66a492c 100644
--- a/build/Microsoft.DotNet.Cli.Publish.targets
+++ b/build/Microsoft.DotNet.Cli.Publish.targets
@@ -52,7 +52,7 @@
-
+
diff --git a/build/Microsoft.DotNet.Cli.Signing.proj b/build/Microsoft.DotNet.Cli.Signing.proj
new file mode 100644
index 000000000..b7a0e6092
--- /dev/null
+++ b/build/Microsoft.DotNet.Cli.Signing.proj
@@ -0,0 +1,114 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $(RepoRoot)/artifacts/$(Rid)
+ $(BaseOutputDirectory)/stage2
+ $(BaseOutputDirectory)/stage2compilation
+ $(BaseOutputDirectory)/packages
+
+
+ $(BaseOutputDirectory)
+ $(BaseOutputDirectory)/intermediate
+
+
+
+
+
+
+
+
+
+ $(ExternalCertificateId)
+
+
+
+ $(InternalCertificateId)
+
+
+
+ $(InternalCertificateId)
+
+
+
+
+
+
+
+
+ $(RepoRoot)/src/Microsoft.DotNet.Cli.Utils
+
+
+
+
+ $(InternalCertificateId)
+
+
+
+
+
+
+
+
+ $(PackagesDirectory)
+
+
+
+ $(InternalCertificateId)
+
+
+ $(InternalCertificateId)
+
+
+
+
+
+
+
+
+ $(PackagesDirectory)
+
+
+
+ $(InternalCertificateId)
+
+
+
+
+
+
+
+
+ $(PackagesDirectory)
+
+
+
+ $(InternalCertificateId)
+
+
+
+
+
+
diff --git a/buildpipeline/DotNet-CLI-CentOS-x64.json b/buildpipeline/DotNet-CLI-CentOS-x64.json
new file mode 100644
index 000000000..a2a9fa9d8
--- /dev/null
+++ b/buildpipeline/DotNet-CLI-CentOS-x64.json
@@ -0,0 +1,172 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --docker centos --targets Default /p:BranchName=sandbox",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "DotNet-CLI-CentOS-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/DotNet-CLI-opensuse13.2-x64.json b/buildpipeline/DotNet-CLI-opensuse13.2-x64.json
new file mode 100644
index 000000000..c2c80915c
--- /dev/null
+++ b/buildpipeline/DotNet-CLI-opensuse13.2-x64.json
@@ -0,0 +1,172 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --docker opensuse.13.2 --targets Default /p:BranchName=sandbox",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "DotNet-CLI-opensuse13.2-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-Debian8-x64.json b/buildpipeline/Dotnet-CLI-Debian8-x64.json
new file mode 100644
index 000000000..d125391a7
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-Debian8-x64.json
@@ -0,0 +1,172 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --docker debian --targets Default /p:BranchName=sandbox",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(date:yyyyMMdd)$(rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-Debian8-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-Fedora23-x64.json b/buildpipeline/Dotnet-CLI-Fedora23-x64.json
new file mode 100644
index 000000000..8926d72b2
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-Fedora23-x64.json
@@ -0,0 +1,172 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --docker fedora.23 --targets Default /p:BranchName=sandbox",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-Fedora23-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-OSX-x64.json b/buildpipeline/Dotnet-CLI-OSX-x64.json
new file mode 100644
index 000000000..5d8c064b8
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-OSX-x64.json
@@ -0,0 +1,175 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --targets Default /p:BranchName=sandbox",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "PUBLISH_LZMA_TO_AZURE_BLOB": {
+ "value": "true"
+ }
+ },
+ "demands": [
+ "Agent.OS -equals darwin"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(date:yyyyMMdd)$(rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-OSX-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-RHEL7-x64.json b/buildpipeline/Dotnet-CLI-RHEL7-x64.json
new file mode 100644
index 000000000..097342660
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-RHEL7-x64.json
@@ -0,0 +1,190 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": true,
+ "alwaysRun": false,
+ "displayName": "Clean docker containers",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "bash",
+ "arguments": "-c \"docker ps -a -q -f status=exited | xargs --no-run-if-empty docker rm -v\"",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Run build in Docker container",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "scripts/dockerrun-as-current-user.sh",
+ "args": "-t --rm --sig-proxy=true --name $(Build.BuildId) -v $(Build.SourcesDirectory):/opt/code -w /opt/code -e CHANNEL -e CONNECTION_STRING -e REPO_ID -e REPO_USER -e REPO_PASS -e REPO_SERVER -e DOTNET_BUILD_SKIP_CROSSGEN -e PUBLISH_TO_AZURE_BLOB -e NUGET_FEED_URL -e NUGET_API_KEY -e GITHUB_PASSWORD -e ARTIFACT_STORAGE_KEY -e ARTIFACT_STORAGE_ACCOUNT -e ARTIFACT_STORAGE_CONTAINER -e CHECKSUM_STORAGE_KEY -e CHECKSUM_STORAGE_ACCOUNT -e CHECKSUM_STORAGE_CONTAINER chcosta/dotnetcore:rhel7_prereqs /bin/bash -c \"HOME=/opt/code; git clean -X -d -f; ./build.sh $(BuildArguments)\"",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --targets Default /p:BranchName=sandbox",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-RHEL7-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-Signing-Windows-x64.json b/buildpipeline/Dotnet-CLI-Signing-Windows-x64.json
new file mode 100644
index 000000000..56d87e9fc
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-Signing-Windows-x64.json
@@ -0,0 +1,547 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Install Signing Plugin",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "30666190-6959-11e5-9f96-f56098202fef",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "signType": "$(PB_SignType)",
+ "zipSources": "false",
+ "version": "",
+ "feedSource": "https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Compile",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /t:Compile",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign Assemblies",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:PostCompileSign $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "x64",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign NuPkg Contents",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignNuPkgContents $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "x64",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": false,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Test",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /t:Test",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Package",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /t:Package",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign MSI and CAB",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignMsiAndCab $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "x64",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Generate Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /t:Package",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Extract Engine from Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /t:ExtractEngineFromSdkBundle",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign Engine",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignEngine $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "x64",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Reattach Engine to Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /t:ReattachEngineToSdkBundle",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignCliBundle $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "x64",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Perform Cleanup Tasks",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "521a94ea-9e68-468a-8167-6dcf361ea776",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": { }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Download NuGet.exe",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptType": "inlineScript",
+ "scriptName": "",
+ "arguments": "",
+ "inlineScript": "# Download nuget.exe to .nuget/nuget.exe\n$NuGetDir = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \".nuget\"\n$NuGetExe = Join-Path $NuGetDir \"nuget.exe\"\n \nif (-not (Test-Path $NuGetDir))\n{\n New-Item -ItemType Directory -Force -Path $NuGetDir | Out-Null\n}\n\nif (-not (Test-Path $NuGetExe)) {\n Write-Host 'Downloading nuget.exe to ' + $NuGetExe\n wget https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe -OutFile $NuGetExe\n}",
+ "workingFolder": "",
+ "failOnStandardError": "true"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Publish NuGet Packages",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptType": "inlineScript",
+ "scriptName": "",
+ "arguments": "$(MygetApiKey)",
+ "inlineScript": "$NuGetExe = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \".nuget\\nuget.exe\"\n\n& $NuGetExe push -Source https://dotnet.myget.org/F/dotnet-cli-private/ -ApiKey $args[0] artifacts\\$env:RID\\packages\\Microsoft*.nupkg",
+ "workingFolder": "",
+ "failOnStandardError": "true"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Publish Build Artifacts",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "/p:Configuration=$(BuildConfiguration) /p:BranchName=sandbox /t:Publish",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Publish Windows Installer NuPkg to VS Feed",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptType": "inlineScript",
+ "scriptName": "",
+ "arguments": "$(VS_FEED_PASSWORD)",
+ "inlineScript": "$NuGetExe = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \".nuget\\nuget.exe\"\n$Nupkg = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \"artifacts\\$env:RID\\packages\\VS.Redist.Common.Net.Core.SDK.x64*.nupkg\"\n\n& $NuGetExe sources Add -Name \"VS\" -Source $env:VS_FEED_URL -username foobar -password $args[0]\n\n& $NuGetExe push -Source \"VS\" -ApiKey VSTS $Nupkg",
+ "workingFolder": "",
+ "failOnStandardError": "true"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "-Configuration ${BuildConfiguration} -Targets Default -NoPackage",
+ "allowOverride": true
+ },
+ "COREHOST_TRACE": {
+ "value": "0",
+ "allowOverride": true
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ProductMoniker": {
+ "value": "Microsoft .NET Core 1.0.1 - SDK 1.0.0 Preview 4 (x64)"
+ },
+ "VS_FEED_URL": {
+ "value": "https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-cli-test/nuget/v3/index.json"
+ },
+ "VS_FEED_PASSWORD": {
+ "value": null,
+ "isSecret": true
+ },
+ "MygetApiKey": {
+ "value": null,
+ "isSecret": true
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "InternalCertificateId": {
+ "value": "400"
+ },
+ "ExternalCertificateId": {
+ "value": "135020001"
+ },
+ "RID": {
+ "value": "win81-x64"
+ },
+ "MsbuildSigningArguments": {
+ "value": "/p:Rid=$(RID) /p:Architecture=x64 /v:detailed"
+ },
+ "TeamName": {
+ "value": "DotNetCore"
+ },
+ "system.debug": {
+ "value": "false"
+ }
+ },
+ "demands": [
+ "Agent.OS -equals Windows_NT"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [
+ "build.SourceLabel"
+ ],
+ "artifactTypesToDelete": [ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 120,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-Signing-Windows-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-Signing-Windows-x86.json b/buildpipeline/Dotnet-CLI-Signing-Windows-x86.json
new file mode 100644
index 000000000..39429e805
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-Signing-Windows-x86.json
@@ -0,0 +1,498 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Install Signing Plugin",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "30666190-6959-11e5-9f96-f56098202fef",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "signType": "$(PB_SignType)",
+ "zipSources": "false",
+ "version": "",
+ "feedSource": "https://devdiv.pkgs.visualstudio.com/DefaultCollection/_packaging/MicroBuildToolset/nuget/v3/index.json"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Compile",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /t:Compile /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign Assemblies",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:PostCompileSign $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "$(BuildArchitecture)",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": false,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Test",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /t:Compile /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Package",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /t:Package /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign MSI and CAB",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignMsiAndCab $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "$(BuildArchitecture)",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Generate Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /t:Package /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Extract Engine from Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /t:ExtractEngineFromSdkBundle /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign Engine",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignEngine $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "$(BuildArchitecture)",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Reattach Engine to Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /t:ReattachEngineToSdkBundle /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Sign Bundle",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "solution": "build\\Microsoft.DotNet.Cli.Signing.proj",
+ "platform": "",
+ "configuration": "$(BuildConfiguration)",
+ "msbuildArguments": "/t:SignCliBundle $(MsbuildSigningArguments)",
+ "clean": "false",
+ "maximumCpuCount": "false",
+ "restoreNugetPackages": "false",
+ "logProjectEvents": "false",
+ "createLogFile": "false",
+ "msbuildLocationMethod": "version",
+ "msbuildVersion": "15.0",
+ "msbuildArchitecture": "$(BuildArchitecture)",
+ "msbuildLocation": ""
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Perform Cleanup Tasks",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "521a94ea-9e68-468a-8167-6dcf361ea776",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": { }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Publish Build Artifacts",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "bfc8bf76-e7ac-4a8c-9a55-a944a9f632fd",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "filename": "build.cmd",
+ "arguments": "-Architecture $(BuildArchitecture) /p:Configuration=$(BuildConfiguration) /p:BranchName=sandbox /t:Publish /v:normal",
+ "modifyEnvironment": "false",
+ "workingFolder": "",
+ "failOnStandardError": "false"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Download NuGet.exe",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptType": "inlineScript",
+ "scriptName": "",
+ "arguments": "",
+ "inlineScript": "# Download nuget.exe to .nuget/nuget.exe\n$NuGetDir = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \".nuget\"\n$NuGetExe = Join-Path $NuGetDir \"nuget.exe\"\n \nif (-not (Test-Path $NuGetDir))\n{\n New-Item -ItemType Directory -Force -Path $NuGetDir | Out-Null\n}\n\nif (-not (Test-Path $NuGetExe)) {\n Write-Host 'Downloading nuget.exe to ' + $NuGetExe\n wget https://dist.nuget.org/win-x86-commandline/v3.5.0-rc1/NuGet.exe -OutFile $NuGetExe\n}",
+ "workingFolder": "",
+ "failOnStandardError": "true"
+ }
+ },
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Publish Windows Installer Nupkg to VS Feed",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
+ "versionSpec": "1.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptType": "inlineScript",
+ "scriptName": "",
+ "arguments": "$(VS_FEED_PASSWORD)",
+ "inlineScript": "$NuGetExe = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \".nuget\\nuget.exe\"\n$Nupkg = Join-Path $env:BUILD_REPOSITORY_LOCALPATH \"artifacts\\$env:RID\\packages\\VS.Redist.Common.Net.Core.SDK.x86*.nupkg\"\n\n& $NuGetExe sources Add -Name \"VS\" -Source $env:VS_FEED_URL -username foobar -password $args[0]\n\n& $NuGetExe push -Source \"VS\" -ApiKey VSTS $Nupkg",
+ "workingFolder": "",
+ "failOnStandardError": "true"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "-Configuration ${BuildConfiguration} -Targets Default -NoPackage",
+ "allowOverride": true
+ },
+ "COREHOST_TRACE": {
+ "value": "0",
+ "allowOverride": true
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "BuildArchitecture": {
+ "value": "x86"
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ProductMoniker": {
+ "value": "Microsoft .NET Core 1.0.1 - SDK 1.0.0 Preview 4 (x86)"
+ },
+ "VS_FEED_URL": {
+ "value": "https://devdiv.pkgs.visualstudio.com/_packaging/dotnet-cli-test/nuget/v3/index.json"
+ },
+ "VS_FEED_PASSWORD": {
+ "value": null,
+ "isSecret": true
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CLIBUILD_SKIP_TESTS": {
+ "value": "true"
+ },
+ "InternalCertificateId": {
+ "value": "400"
+ },
+ "ExternalCertificateId": {
+ "value": "135020001"
+ },
+ "RID": {
+ "value": "win81-x86"
+ },
+ "MsbuildSigningArguments": {
+ "value": "/p:Rid=$(RID) /p:Architecture=x86 /v:detailed"
+ },
+ "TeamName": {
+ "value": "DotNetCore"
+ },
+ "system.debug": {
+ "value": "false"
+ }
+ },
+ "demands": [
+ "Agent.OS -equals Windows_NT"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [
+ "build.SourceLabel"
+ ],
+ "artifactTypesToDelete": [ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 120,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-Signing-Windows-x86",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-Ubuntu14.04-x64.json b/buildpipeline/Dotnet-CLI-Ubuntu14.04-x64.json
new file mode 100644
index 000000000..ba1b16245
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-Ubuntu14.04-x64.json
@@ -0,0 +1,182 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --docker ubuntu.14.04 --targets Default /p:BranchName=sandbox /p:SkipPublishToDebianRepo=true",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "REPO_ID": {
+ "value": "562fbfe0b2d7d0e0a43780c4"
+ },
+ "REPO_USER": {
+ "value": "dotnet"
+ },
+ "REPO_PASS": {
+ "value": "PassedViaPipeBuild"
+ },
+ "REPO_SERVER": {
+ "value": "azure-apt-cat.cloudapp.net"
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [
+ "build.SourceLabel"
+ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-Ubuntu14.04-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/Dotnet-CLI-Ubuntu16.04-x64.json b/buildpipeline/Dotnet-CLI-Ubuntu16.04-x64.json
new file mode 100644
index 000000000..9a660ed29
--- /dev/null
+++ b/buildpipeline/Dotnet-CLI-Ubuntu16.04-x64.json
@@ -0,0 +1,180 @@
+{
+ "build": [
+ {
+ "enabled": true,
+ "continueOnError": false,
+ "alwaysRun": false,
+ "displayName": "Shell Script build.sh",
+ "timeoutInMinutes": 0,
+ "task": {
+ "id": "6c731c3c-3c68-459a-a5c9-bde6e6595b5b",
+ "versionSpec": "2.*",
+ "definitionType": "task"
+ },
+ "inputs": {
+ "scriptPath": "build.sh",
+ "args": "$(BuildArguments)",
+ "disableAutoCwd": "false",
+ "cwd": "",
+ "failOnStandardError": "false"
+ }
+ }
+ ],
+ "options": [
+ {
+ "enabled": false,
+ "definition": {
+ "id": "5bc3cfb7-6b54-4a4b-b5d2-a3905949f8a6"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "7c555368-ca64-4199-add6-9ebaf0b0137d"
+ },
+ "inputs": {
+ "multipliers": "[]",
+ "parallel": "false",
+ "continueOnError": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "a9db38f9-9fdc-478c-b0f9-464221e58316"
+ },
+ "inputs": {
+ "workItemType": "4777",
+ "assignToRequestor": "true",
+ "additionalFields": "{}"
+ }
+ },
+ {
+ "enabled": false,
+ "definition": {
+ "id": "57578776-4c22-4526-aeb0-86b6da17ee9c"
+ },
+ "inputs": {
+ "additionalFields": "{}"
+ }
+ }
+ ],
+ "variables": {
+ "BuildConfiguration": {
+ "value": "Release",
+ "allowOverride": true
+ },
+ "BuildArguments": {
+ "value": "--skip-prereqs --configuration $(BuildConfiguration) --docker ubuntu.16.04 --targets Default /p:BranchName=sandbox /p:SkipPublishToDebianRepo=true",
+ "allowOverride": true
+ },
+ "CONNECTION_STRING": {
+ "value": "PassedViaPipeBuild"
+ },
+ "PUBLISH_TO_AZURE_BLOB": {
+ "value": "true",
+ "allowOverride": true
+ },
+ "REPO_ID": {
+ "value": "562fbfe0b2d7d0e0a43780c4"
+ },
+ "REPO_USER": {
+ "value": "dotnet"
+ },
+ "REPO_PASS": {
+ "value": "PassedViaPipeBuild"
+ },
+ "REPO_SERVER": {
+ "value": "azure-apt-cat.cloudapp.net"
+ },
+ "GITHUB_PASSWORD": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "ARTIFACT_STORAGE_ACCOUNT": {
+ "value": "dotnetcli"
+ },
+ "ARTIFACT_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ },
+ "CHECKSUM_STORAGE_KEY": {
+ "value": "PassedViaPipeBuild"
+ },
+ "CHECKSUM_STORAGE_ACCOUNT": {
+ "value": "dotnetclichecksums"
+ },
+ "CHECKSUM_STORAGE_CONTAINER": {
+ "value": "mlorbe"
+ }
+ },
+ "demands": [
+ "Agent.OS -equals linux"
+ ],
+ "retentionRules": [
+ {
+ "branches": [
+ "+refs/heads/*"
+ ],
+ "artifacts": [ ],
+ "artifactTypesToDelete": [
+ "FilePath",
+ "SymbolStore"
+ ],
+ "daysToKeep": 2,
+ "minimumToKeep": 1,
+ "deleteBuildRecord": true,
+ "deleteTestResults": true
+ }
+ ],
+ "buildNumberFormat": "$(Date:yyyMMdd)$(Rev:.r)",
+ "jobAuthorizationScope": "projectCollection",
+ "jobTimeoutInMinutes": 90,
+ "badgeEnabled": true,
+ "repository": {
+ "properties": {
+ "connectedServiceId": "f4c31735-42d2-4c3a-bc47-7ac06fd0dccc",
+ "apiUrl": "https://api.github.com/repos/dotnet/cli",
+ "branchesUrl": "https://api.github.com/repos/dotnet/cli/branches",
+ "cloneUrl": "https://github.com/dotnet/cli.git",
+ "refsUrl": "https://api.github.com/repos/dotnet/cli/git/refs",
+ "gitLfsSupport": "false",
+ "skipSyncSource": "false",
+ "fetchDepth": "0",
+ "cleanOptions": "0"
+ },
+ "id": "https://github.com/dotnet/cli.git",
+ "type": "GitHub",
+ "name": "dotnet/cli",
+ "url": "https://github.com/dotnet/cli.git",
+ "defaultBranch": "rel/1.0.0",
+ "clean": "true",
+ "checkoutSubmodules": false
+ },
+ "quality": "definition",
+ "queue": {
+ "pool": {
+ "id": 39,
+ "name": "DotNet-Build"
+ },
+ "id": 36,
+ "name": "DotNet-Build"
+ },
+ "path": "\\",
+ "type": "build",
+ "id": 1,
+ "name": "Dotnet-CLI-Ubuntu16.04-x64",
+ "project": {
+ "id": "0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "name": "DevDiv",
+ "description": "Visual Studio and DevDiv team project for git source code repositories. Work items will be added for Adams, Dev14 work items are tracked in vstfdevdiv. ",
+ "url": "https://devdiv.visualstudio.com/DefaultCollection/_apis/projects/0bdbc590-a062-4c3f-b0f6-9383f67865ee",
+ "state": "wellFormed",
+ "revision": 418097459
+ }
+}
diff --git a/buildpipeline/pipeline.json b/buildpipeline/pipeline.json
new file mode 100644
index 000000000..ae63a5026
--- /dev/null
+++ b/buildpipeline/pipeline.json
@@ -0,0 +1,101 @@
+{
+ "Repository": "cli",
+ "Definitions": {
+ "Path": ".",
+ "Type": "VSTS",
+ "BaseUrl": "https://devdiv.visualstudio.com/DefaultCollection"
+ },
+ "Pipelines": [
+ {
+ "Name": "Trusted-All-Release",
+ "Parameters": {
+ "TreatWarningsAsErrors": "false"
+ },
+ "BuildParameters": {
+ "BuildConfiguration": "Release"
+ },
+ "Definitions": [
+ {
+ "Name": "DotNet-CLI-CentOS-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "CentOS 7.1",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-Debian8-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "Debian 8.2",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-Fedora23-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "Fedora 23",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-opensuse13.2-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "OpenSuse 13.2",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-OSX-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "OSX",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-RHEL7-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "RedHat 7",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-Signing-Windows-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "Windows",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-Signing-Windows-x86",
+ "ReportingParameters": {
+ "OperatingSystem": "Windows",
+ "Type": "build/product/",
+ "Platform": "x86"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-Ubuntu14.04-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "Ubuntu 14.04",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ },
+ {
+ "Name": "DotNet-CLI-Ubuntu16.04-x64",
+ "ReportingParameters": {
+ "OperatingSystem": "Ubuntu 16.04",
+ "Type": "build/product/",
+ "Platform": "x64"
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/scripts/dockerrun-as-current-user.sh b/scripts/dockerrun-as-current-user.sh
new file mode 100644
index 000000000..70344cc3c
--- /dev/null
+++ b/scripts/dockerrun-as-current-user.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) .NET Foundation and contributors. All rights reserved.
+# Licensed under the MIT license. See LICENSE file in the project root for full license information.
+#
+
+set -e
+
+docker run -u="$(id -u):$(id -g)" "$@"