Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Download internal drop in sign-and-publish job (#4563)
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgodbe authored Sep 13, 2018
1 parent da5cda4 commit 8b17a17
Showing 1 changed file with 180 additions and 0 deletions.
180 changes: 180 additions & 0 deletions buildpipeline/Core-Setup-Sign-And-Publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@
"workingDirectory": ""
}
},
{
"enabled": true,
"continueOnError": true,
"alwaysRun": true,
"displayName": "Remove Release Tools directory",
"timeoutInMinutes": 0,
"task": {
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"scriptType": "inlineScript",
"scriptName": "",
"arguments": "",
"workingFolder": "",
"inlineScript": "rm -Recurse -Force -ErrorAction Ignore DotNet-Core-Release-Tools",
"failOnStandardError": "false"
}
},
{
"enabled": true,
"continueOnError": false,
Expand All @@ -42,6 +62,44 @@
"failOnStandardError": "false"
}
},
{
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Clone release tools",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "git",
"arguments": "clone $(ReleaseToolsGitUrl)",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Create Internal drop directory",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "mkdir",
"arguments": "$(Build.SourcesDirectory)\\AzureCoreFxDownload",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
Expand All @@ -62,6 +120,69 @@
"esrpSigning": "$(PB_UseEsrpSigning)"
}
},
{
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Download Azure Internal drop",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"scriptType": "filePath",
"scriptName": "DotNet-Core-Release-Tools/msbuildrun.ps1",
"arguments": "-RepositoryRoot $(Build.SourcesDirectory)\\DotNet-Core-Release-Tools -Target DownloadFromAzure -Properties ContainerName=$(CoreFxAzureContainer),DownloadDirectory=$(Build.SourcesDirectory)\\AzureCoreFxDownload,AccountName=$(AzureAccountName),AccessToken=$(AzureAccessToken),FilterBlobNames=Release/",
"inlineScript": "# You can write your powershell scripts inline here. \n# You can also pass predefined and custom variables to this scripts using arguments\n\n Write-Host \"Hello World\"",
"workingFolder": "",
"failOnStandardError": "true"
}
},
{
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Add CoreFX drop to NuGet.Config",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"scriptType": "filePath",
"scriptName": "DotNet-Core-Release-Tools/msbuildrun.ps1",
"arguments": "-RepositoryRoot $(Build.SourcesDirectory)\\DotNet-Core-Release-Tools -Target AddSourceToNuGetConfig -Properties NuGetConfigFile=$(Build.SourcesDirectory)\\NuGet.Config,SourceName=LocalDownload,SourcePath=$(Build.SourcesDirectory)\\AzureCoreFxDownload\\Release",
"inlineScript": "# You can write your powershell scripts inline here. \n# You can also pass predefined and custom variables to this scripts using arguments\n\n Write-Host \"Hello World\"",
"workingFolder": "",
"failOnStandardError": "true"
}
},
{
"enabled": true,
"continueOnError": false,
"alwaysRun": false,
"displayName": "Add CoreCLR drop to NuGet.Config (AzureCoreFxDownload/Release/pkg)",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"scriptType": "filePath",
"scriptName": "DotNet-Core-Release-Tools/msbuildrun.ps1",
"arguments": "-RepositoryRoot $(Build.SourcesDirectory)\\DotNet-Core-Release-Tools -Target AddSourceToNuGetConfig -Properties NuGetConfigFile=$(Build.SourcesDirectory)\\NuGet.Config,SourceName=LocalDownload2,SourcePath=$(Build.SourcesDirectory)\\AzureCoreFxDownload\\Release\\pkg",
"inlineScript": "",
"workingFolder": "",
"failOnStandardError": "true"
}
},
{
"enabled": true,
"continueOnError": false,
Expand Down Expand Up @@ -216,6 +337,44 @@
"failOnStandardError": "false"
}
},
{
"enabled": true,
"continueOnError": true,
"alwaysRun": true,
"displayName": "Remove Release Tools directory",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "rmdir",
"arguments": "/q /s DotNet-Core-Release-Tools",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"enabled": true,
"continueOnError": true,
"alwaysRun": true,
"displayName": "Remove Azure CoreFX drop directory",
"condition": "eq(variables.PB_InternalBuild, 'true')",
"timeoutInMinutes": 0,
"task": {
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
"versionSpec": "1.*",
"definitionType": "task"
},
"inputs": {
"filename": "rmdir",
"arguments": "/q /s AzureCoreFxDownload",
"workingFolder": "",
"failOnStandardError": "false"
}
},
{
"environment": {},
"enabled": true,
Expand Down Expand Up @@ -307,6 +466,27 @@
"TeamName": {
"value": "DotNetCore"
},
"CoreFxAzureContainer": {
"value": "ENV_VAR_EMPTY_WORKAROUND",
"allowOverride": true
},
"AzureAccountName": {
"value": "ENV_VAR_EMPTY_WORKAROUND"
},
"AzureAccessToken": {
"value": null,
"isSecret": true
},
"VsoPassword": {
"value": null,
"isSecret": true
},
"ReleaseToolsGitUrl": {
"value": "https://dn-bot:$(VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/DotNet-Core-Release-Tools"
},
"PB_InternalBuild": {
"value": "false"
},
"system.debug": {
"value": "false"
}
Expand Down

0 comments on commit 8b17a17

Please sign in to comment.