From: Wes Haggard Date: Sat, 11 Nov 2017 00:51:27 +0000 (-0800) Subject: Add independent publish step based on publishtype X-Git-Tag: submit/tizen/20210909.063632~11032^2~1050^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=996fa06ca40866ca1a9797c68cde761bee153876;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Add independent publish step based on publishtype In order to reduce risk with current builds while still enabling our larger orchestrated build scenario we are adding an independent publish-type step. Only one or the other should be enabled at a time. Commit migrated from https://github.com/dotnet/core-setup/commit/4f9aaff77420f4763c06b4307d0647caeb905eec --- diff --git a/src/installer/BuildToolsVersion.txt b/src/installer/BuildToolsVersion.txt index f46dec0..eb6ae2e 100644 --- a/src/installer/BuildToolsVersion.txt +++ b/src/installer/BuildToolsVersion.txt @@ -1 +1 @@ -2.0.0-prerelease-02202-02 +2.0.0-prerelease-02210-05 diff --git a/src/installer/buildpipeline/Core-Setup-Publish.json b/src/installer/buildpipeline/Core-Setup-Publish.json index c6d1620..4acaec3 100644 --- a/src/installer/buildpipeline/Core-Setup-Publish.json +++ b/src/installer/buildpipeline/Core-Setup-Publish.json @@ -222,8 +222,8 @@ "enabled": true, "continueOnError": false, "alwaysRun": false, - "displayName": "Publish", - "condition": "and(succeeded(), ne(variables.PB_PublishType, ''))", + "displayName": "Publish (no PublishType)", + "condition": "and(succeeded(), eq(variables.PB_PublishType, 'nopublishtype'))", "timeoutInMinutes": 0, "task": { "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824", @@ -248,6 +248,34 @@ }, { "enabled": true, + "continueOnError": false, + "alwaysRun": false, + "displayName": "Publish via PublishType", + "condition": "and(succeeded(), ne(variables.PB_PublishType, ''))", + "timeoutInMinutes": 0, + "task": { + "id": "c6c4c611-aa2e-4a33-b606-5eaba2196824", + "versionSpec": "1.*", + "definitionType": "task" + }, + "inputs": { + "solution": "$(PB_SourcesDirectory)\\publish\\publish-type.proj", + "platform": "$(PB_TargetArchitecture)", + "configuration": "$(BuildConfiguration)", + "msbuildArguments": "/p:Configuration=$(BuildConfiguration) $(PB_CommonMSBuildArgs) /p:PublishType=$(PB_PublishType) /p:SignType=$(PB_SignType) /p:AzureAccountName=$(PB_AzureAccountName) /p:ContainerName=$(PB_ContainerName) /p:AzureAccessToken=$(PB_AzureAccessToken) /p:PublishBlobFeedUrl=$(PB_PublishBlobFeedUrl) /p:PublishBlobFeedKey=$(PB_PublishBlobFeedKey) /p:OfficialPublish=true /p:GitHubUser=$(PB_GitHubUser) /p:GitHubEmail=$(PB_GitHubEmail) /p:GitHubAuthToken=$(GITHUB_PASSWORD) /p:VersionsRepoOwner=$(PB_VersionsRepoOwner) /p:VersionsRepo=$(PB_VersionsRepo) /p:VersionsRepoPath=build-info/dotnet/$(PB_RepoName)/$(SourceBranch) /p:DotNetToolDir=$(DotNetToolDir) /p:EmbedIndexToolDir=$(EmbedIndexToolDir) /flp:v=detailed;LogFile=$(PB_SourcesDirectory)\\publish-blob.log", + "clean": "false", + "maximumCpuCount": "false", + "restoreNugetPackages": "false", + "logProjectEvents": "false", + "createLogFile": "false", + "msbuildLocationMethod": "version", + "msbuildVersion": "Latest", + "msbuildArchitecture": "x64", + "msbuildLocation": "" + } + }, + { + "enabled": true, "continueOnError": true, "alwaysRun": true, "displayName": "Clean Up Agent", diff --git a/src/installer/dependencies.props b/src/installer/dependencies.props index 79ea08e..2f03251 100644 --- a/src/installer/dependencies.props +++ b/src/installer/dependencies.props @@ -50,7 +50,7 @@ Microsoft.DotNet.Build.Tasks.Feed - 1.0.0-prerelease-02202-02 + 1.0.0-prerelease-02210-05 diff --git a/src/installer/publish/publish-type.proj b/src/installer/publish/publish-type.proj new file mode 100644 index 0000000..8cfaa23 --- /dev/null +++ b/src/installer/publish/publish-type.proj @@ -0,0 +1,114 @@ + + + + + + + + + + ValidateProperties; + DownloadFilesFromContainer; + SignSymbolPackages + + + + $(BuildDependsOn); + ValidateBlobFeedProperties; + PublishPackagesToBlobFeed; + PublishFilesToBlobFeed; + + + + $(BuildDependsOn); + UpdateVersionsRepo + + + + + + + + + + + + + + + + + + + $(PublishBlobFeedUrl) + $(PublishBlobFeedKey) + + + + + + + $(BinDir)PackageDownload/ + $(BinDir)ForPublishing/ + + $(DownloadDirectory) + + + + + + + + + + + + + + + + + + + + + + + $(BinDir)UnsignedSymbolsDirectory/ + + $(DownloadDirectory)**\*.symbols.nupkg + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file