361 строка
10 KiB
JSON
361 строка
10 KiB
JSON
{
|
|
"build": [
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": true,
|
|
"alwaysRun": false,
|
|
"displayName": "Cleanup previous build if present",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"scriptType": "inlineScript",
|
|
"scriptName": "",
|
|
"arguments": "-path $(PB_SourcesDirectory) -rootPath $(Build.SourcesDirectory)",
|
|
"inlineScript": "param($path, $rootPath)\n\nif (Test-Path $path){\n Remove-Item -Recurse -Force $path\n\n if(Test-Path $path){\n $DeleteFolder = \"$rootPath\\deleteme\"\n if((Test-Path $DeleteFolder ) -eq 0) {\n New-Item -ItemType Directory -Force -Path $DeleteFolder\n }\n robocopy $DeleteFolder $path /purge\n Remove-Item -Recurse -Force $path\n }\n }",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "true"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Clone repo",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"filename": "git",
|
|
"arguments": "clone $(PB_VsoRepoUrl) $(PB_SourcesDirectory)",
|
|
"workingFolder": "",
|
|
"failOnStandardError": "false"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "git checkout",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"filename": "git",
|
|
"arguments": "checkout $(SourceVersion)",
|
|
"workingFolder": "$(PB_SourcesDirectory)",
|
|
"failOnStandardError": "false"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Init tools",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"filename": "$(PB_SourcesDirectory)\\init-tools.cmd",
|
|
"arguments": "",
|
|
"workingFolder": "$(PB_SourcesDirectory)",
|
|
"failOnStandardError": "false"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Generate version assets",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"solution": "$(PB_SourcesDirectory)\\build.proj",
|
|
"platform": "$(PB_TargetArchitecture)",
|
|
"configuration": "$(BuildConfiguration)",
|
|
"msbuildArguments": "/t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true /p:OfficialBuildId=$(OfficialBuildId)",
|
|
"clean": "false",
|
|
"maximumCpuCount": "false",
|
|
"restoreNugetPackages": "false",
|
|
"logProjectEvents": "false",
|
|
"createLogFile": "false",
|
|
"msbuildLocationMethod": "version",
|
|
"msbuildVersion": "latest",
|
|
"msbuildArchitecture": "x64",
|
|
"msbuildLocation": ""
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Build",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "d9bafed4-0b18-4f58-968d-86655b4d2ce9",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"filename": "$(PB_SourcesDirectory)\\build.cmd",
|
|
"arguments": "$(PB_BuildArguments)",
|
|
"workingFolder": "$(PB_SourcesDirectory)",
|
|
"failOnStandardError": "false"
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": false,
|
|
"alwaysRun": false,
|
|
"displayName": "Publish",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"solution": "$(PB_SourcesDirectory)\\publish\\publish.proj",
|
|
"platform": "$(PB_TargetArchitecture)",
|
|
"configuration": "$(BuildConfiguration)",
|
|
"msbuildArguments": "/p:NuGetFeedUrl=$(NUGET_FEED_URL) /p:NuGetSymbolsFeedUrl=$(NUGET_SYMBOLS_FEED_URL) /p:NuGetApiKey=$(NUGET_API_KEY) /p:AzureAccountName=$(PB_AzureAccountName) /p:AzureAccessToken=$(PB_AzureAccessToken) /p:DistroRid=$(PB_DistroRid) /p:TargetArchitecture=$(PB_TargetArchitecture) /p:ConfigurationGroup=$(BuildConfiguration)",
|
|
"clean": "false",
|
|
"maximumCpuCount": "false",
|
|
"restoreNugetPackages": "false",
|
|
"logProjectEvents": "false",
|
|
"createLogFile": "false",
|
|
"msbuildLocationMethod": "version",
|
|
"msbuildVersion": "latest",
|
|
"msbuildArchitecture": "x64",
|
|
"msbuildLocation": ""
|
|
}
|
|
},
|
|
{
|
|
"enabled": true,
|
|
"continueOnError": true,
|
|
"alwaysRun": false,
|
|
"displayName": "Clean up VSTS agent",
|
|
"timeoutInMinutes": 0,
|
|
"task": {
|
|
"id": "c6c4c611-aa2e-4a33-b606-5eaba2196824",
|
|
"versionSpec": "1.*",
|
|
"definitionType": "task"
|
|
},
|
|
"inputs": {
|
|
"solution": "$(PB_SourcesDirectory)\\Tools\\scripts\\vstsagent\\cleanupagent.proj",
|
|
"platform": "$(PB_TargetArchitecture)",
|
|
"configuration": "$(BuildConfiguration)",
|
|
"msbuildArguments": "/p:AgentDirectory=$(Agent.HomeDirectory) /p:DoClean=$(PB_CleanAgent)",
|
|
"clean": "false",
|
|
"maximumCpuCount": "false",
|
|
"restoreNugetPackages": "false",
|
|
"logProjectEvents": "false",
|
|
"createLogFile": "false",
|
|
"msbuildLocationMethod": "version",
|
|
"msbuildVersion": "latest",
|
|
"msbuildArchitecture": "x64",
|
|
"msbuildLocation": ""
|
|
}
|
|
}
|
|
],
|
|
"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": {
|
|
"NUGET_FEED_URL": {
|
|
"value": "https://dotnet.myget.org/F/dotnet-core/api/v2/package"
|
|
},
|
|
"NUGET_API_KEY": {
|
|
"value": "PassedViaPipeBuild"
|
|
},
|
|
"GITHUB_PASSWORD": {
|
|
"value": "PassedViaPipeBuild"
|
|
},
|
|
"COREHOST_TRACE": {
|
|
"value": "0"
|
|
},
|
|
"STORAGE_ACCOUNT": {
|
|
"value": "dotnetcli"
|
|
},
|
|
"STORAGE_CONTAINER": {
|
|
"value": "dotnet"
|
|
},
|
|
"CONNECTION_STRING": {
|
|
"value": "PassedViaPipeBuild"
|
|
},
|
|
"PUBLISH_TO_AZURE_BLOB": {
|
|
"value": "true",
|
|
"allowOverride": true
|
|
},
|
|
"NUGET_SYMBOLS_FEED_URL": {
|
|
"value": "https://dotnet.myget.org/F/dotnet-core/symbols/api/v2/package"
|
|
},
|
|
"BuildConfiguration": {
|
|
"value": "Release"
|
|
},
|
|
"PB_BuildArguments": {
|
|
"value": "-ConfigurationGroup=$(BuildConfiguration) $(PB_AdditionalBuildArguments)"
|
|
},
|
|
"PB_CleanAgent": {
|
|
"value": "true"
|
|
},
|
|
"PB_SourcesDirectory": {
|
|
"value": "$(Build.SourcesDirectory)\\core-setup"
|
|
},
|
|
"PB_Branch": {
|
|
"value": "buildtools"
|
|
},
|
|
"PB_AzureAccountName": {
|
|
"value": "sourcebuild"
|
|
},
|
|
"PB_AzureAccessToken": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"PB_VsoRepoUrl": {
|
|
"value": "--branch $(PB_Branch) https://$(PB_VsoAccountName):$(PB_VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/DotNet-Core-Setup-Trusted"
|
|
},
|
|
"PB_VsoAccountName": {
|
|
"value": "dn-bot"
|
|
},
|
|
"PB_VsoPassword": {
|
|
"value": null,
|
|
"isSecret": true
|
|
},
|
|
"SourceVersion": {
|
|
"value": "HEAD"
|
|
},
|
|
"OfficialBuildId": {
|
|
"value": "$(Build.BuildNumber)"
|
|
},
|
|
"PB_TargetArchitecture": {
|
|
"value": "x64",
|
|
"allowOverride": true
|
|
},
|
|
"PB_AdditionalBuildArguments": {
|
|
"value": "",
|
|
"allowOverride": true
|
|
}
|
|
},
|
|
"demands": [
|
|
"Agent.OS -equals Windows_NT",
|
|
"DotNetFramework",
|
|
"Cmd"
|
|
],
|
|
"retentionRules": [
|
|
{
|
|
"branches": [
|
|
"+refs/heads/*"
|
|
],
|
|
"artifacts": [],
|
|
"artifactTypesToDelete": [
|
|
"FilePath",
|
|
"SymbolStore"
|
|
],
|
|
"daysToKeep": 7,
|
|
"minimumToKeep": 1,
|
|
"deleteBuildRecord": true,
|
|
"deleteTestResults": true
|
|
}
|
|
],
|
|
"buildNumberFormat": "$(date:yyyyMMdd)$(rev:-rr)",
|
|
"jobAuthorizationScope": "projectCollection",
|
|
"jobTimeoutInMinutes": 90,
|
|
"jobCancelTimeoutInMinutes": 5,
|
|
"badgeEnabled": true,
|
|
"repository": {
|
|
"properties": {
|
|
"labelSources": "0",
|
|
"reportBuildStatus": "true",
|
|
"fetchDepth": "0",
|
|
"gitLfsSupport": "false",
|
|
"skipSyncSource": "true",
|
|
"cleanOptions": "0"
|
|
},
|
|
"id": "c19ea379-feb7-4ca5-8f7f-5f2b5095ea62",
|
|
"type": "TfsGit",
|
|
"name": "DotNet-Core-Setup-Trusted",
|
|
"url": "https://devdiv.visualstudio.com/DevDiv/_git/DotNet-Core-Setup-Trusted",
|
|
"defaultBranch": "refs/heads/master",
|
|
"clean": "false",
|
|
"checkoutSubmodules": false
|
|
},
|
|
"processParameters": {},
|
|
"quality": "definition",
|
|
"queue": {
|
|
"id": 36,
|
|
"name": "DotNet-Build",
|
|
"pool": {
|
|
"id": 39,
|
|
"name": "DotNet-Build"
|
|
}
|
|
},
|
|
"id": 4371,
|
|
"name": "Core-Setup-Windows-BT",
|
|
"path": "\\",
|
|
"type": "build",
|
|
"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": 418097676
|
|
}
|
|
} |