|
25 | 25 | "alwaysRun": false,
|
26 | 26 | "displayName": "Fetch custom tooling (NuGet, EmbedIndex)",
|
27 | 27 | "timeoutInMinutes": 0,
|
| 28 | + "condition": "and(succeeded(), ne(variables['PB_SignType'], 'oss'))", |
28 | 29 | "task": {
|
29 | 30 | "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1",
|
30 | 31 | "versionSpec": "1.*",
|
|
151 | 152 | "inputs": {
|
152 | 153 | "scriptType": "inlineScript",
|
153 | 154 | "scriptName": "",
|
154 |
| - "arguments": "-ApiKey $(MyGetApiKey) -ConfigurationGroup $(ConfigurationGroup) -PackagesGlob $(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(ConfigurationGroup)\\$(AzureContainerPackageGlob) -MyGetFeedUrl $(MyGetFeedUrl)", |
| 155 | + "arguments": "-ApiKey $(MyGetApiKey) -ConfigurationGroup $(ConfigurationGroup) -PackagesGlob $(Pipeline.SourcesDirectory)\\packages\\AzureTransfer\\$(ConfigurationGroup)\\$(AzureContainerPackageGlob) -MyGetFeedUrl $(MyGetFeedUrl) -SignType $(PB_SignType)", |
155 | 156 | "workingFolder": "$(Pipeline.SourcesDirectory)",
|
156 |
| - "inlineScript": "param($ApiKey, $ConfigurationGroup, $PackagesGlob, $MyGetFeedUrl)\n\nif ($ConfigurationGroup -ne \"Release\") { exit }\n\nmsbuild /t:NuGetPush /v:Normal `\n/p:NuGetExePath=$env:CustomNuGetPath `\n/p:NuGetApiKey=$ApiKey `\n/p:NuGetSource=$MyGetFeedUrl `\n/p:PackagesGlob=$PackagesGlob", |
| 157 | + "inlineScript": "param($ApiKey, $ConfigurationGroup, $PackagesGlob, $MyGetFeedUrl, $SignType=\"unset\")\n\nif ($ConfigurationGroup.ToLower() -ne \"release\") { Write-host \"Chose not to publish\"; exit }\n\nmsbuild /t:NuGetPush /v:Normal `\n/p:NuGetExePath=$env:CustomNuGetPath `\n/p:NuGetApiKey=$ApiKey `\n/p:NuGetSource=$MyGetFeedUrl `\n/p:PackagesGlob=$PackagesGlob", |
157 | 158 | "failOnStandardError": "true"
|
158 | 159 | }
|
159 | 160 | },
|
|
171 | 172 | "inputs": {
|
172 | 173 | "scriptType": "inlineScript",
|
173 | 174 | "scriptName": "",
|
174 |
| - "arguments": "-ApiKey $(MyGetApiKey) -ConfigurationGroup $(ConfigurationGroup) -PackagesGlob $(Build.StagingDirectory)\\IndexedSymbolPackages\\*.nupkg -MyGetFeedUrl $(MyGetFeedUrl)", |
| 175 | + "arguments": "-ApiKey $(MyGetApiKey) -ConfigurationGroup $(ConfigurationGroup) -PackagesGlob $(Build.StagingDirectory)\\IndexedSymbolPackages\\*.nupkg -MyGetFeedUrl $(MyGetFeedUrl) -SignType $(PB_SignType)", |
175 | 176 | "workingFolder": "$(Pipeline.SourcesDirectory)",
|
176 |
| - "inlineScript": "param($ApiKey, $ConfigurationGroup, $PackagesGlob, $MyGetFeedUrl)\n\nif ($ConfigurationGroup -ne \"Release\") { exit }\nif ($env:SourceBranch.StartsWith(\"release/\")) { exit }\n\nmsbuild /t:NuGetPush /v:Normal `\n/p:NuGetExePath=$env:CustomNuGetPath `\n/p:NuGetApiKey=$ApiKey `\n/p:NuGetSource=$MyGetFeedUrl `\n/p:PackagesGlob=$PackagesGlob", |
177 |
| - "failOnStandardError": "true" |
178 |
| - } |
179 |
| - }, |
180 |
| - { |
181 |
| - "enabled": false, |
182 |
| - "continueOnError": false, |
183 |
| - "alwaysRun": false, |
184 |
| - "displayName": "Create VSTS auth NuGet.Config", |
185 |
| - "timeoutInMinutes": 0, |
186 |
| - "task": { |
187 |
| - "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", |
188 |
| - "versionSpec": "1.*", |
189 |
| - "definitionType": "task" |
190 |
| - }, |
191 |
| - "inputs": { |
192 |
| - "scriptType": "inlineScript", |
193 |
| - "scriptName": "", |
194 |
| - "arguments": "$(VstsAuthedNuGetConfigPath) $(VstsFeedUrl) $(VstsPat)", |
195 |
| - "inlineScript": "param($path, $url, $pat)\n\nSet-Content $path @\"\n<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<configuration>\n <packageSources>\n <add key=\"vsts-dotnet-core\" value=\"$url\" />\n </packageSources>\n <packageSourceCredentials>\n <vsts-dotnet-core>\n <add key=\"Username\" value=\"VssSessionToken\" />\n <add key=\"ClearTextPassword\" value=\"$pat\" />\n </vsts-dotnet-core>\n </packageSourceCredentials>\n</configuration>\n\"@", |
196 |
| - "workingFolder": "", |
197 |
| - "failOnStandardError": "true" |
198 |
| - } |
199 |
| - }, |
200 |
| - { |
201 |
| - "enabled": false, |
202 |
| - "continueOnError": false, |
203 |
| - "alwaysRun": false, |
204 |
| - "displayName": "packages -> VSTS", |
205 |
| - "timeoutInMinutes": 0, |
206 |
| - "task": { |
207 |
| - "id": "e213ff0f-5d5c-4791-802d-52ea3e7be1f1", |
208 |
| - "versionSpec": "1.*", |
209 |
| - "definitionType": "task" |
210 |
| - }, |
211 |
| - "inputs": { |
212 |
| - "scriptType": "inlineScript", |
213 |
| - "scriptName": "", |
214 |
| - "arguments": "", |
215 |
| - "inlineScript": "if ($env:ConfigurationGroup -ne \"Release\") { exit }\n& $env:CustomNuGetPath push $env:Pipeline.SourcesDirectory\\packages\\AzureTransfer\\$env:ConfigurationGroup\\$env:AzureContainerPackageGlob placeholderapikey -Source vsts-dotnet-core -ConfigFile $env:VstsAuthedNuGetConfigPath -Timeout 3600", |
216 |
| - "workingFolder": "", |
| 177 | + "inlineScript": "param($ApiKey, $ConfigurationGroup, $PackagesGlob, $MyGetFeedUrl, $SignType=\"unset\")\n\nif ($ConfigurationGroup.ToLower() -ne \"release\") { Write-host \"Chose not to publish\"; exit }\nif ($env:SourceBranch.StartsWith(\"release/\")) { exit }\n\nmsbuild /t:NuGetPush /v:Normal `\n/p:NuGetExePath=$env:CustomNuGetPath `\n/p:NuGetApiKey=$ApiKey `\n/p:NuGetSource=$MyGetFeedUrl `\n/p:PackagesGlob=$PackagesGlob", |
217 | 178 | "failOnStandardError": "true"
|
218 | 179 | }
|
219 | 180 | },
|
|
231 | 192 | "inputs": {
|
232 | 193 | "scriptType": "inlineScript",
|
233 | 194 | "scriptName": "",
|
234 |
| - "arguments": "-gitHubAuthToken $(UpdatePublishedVersions.AuthToken) -root $(Pipeline.SourcesDirectory) -configGroup $(ConfigurationGroup)", |
235 |
| - "inlineScript": "param($gitHubAuthToken, $root, $configGroup)\nif ($configGroup -ne \"Release\") { exit }\ncd $root\n. $root\\UpdatePublishedVersions.ps1 `\n -gitHubUser dotnet-build-bot -gitHubEmail [email protected] `\n -gitHubAuthToken $gitHubAuthToken `\n -versionsRepoOwner $env:VersionsRepoOwner -versionsRepo versions `\n -versionsRepoPath build-info/dotnet/$env:GitHubRepositoryName/$env:SourceBranch `\n -nupkgPath $root\\packages\\AzureTransfer\\$env:ConfigurationGroup\\$env:AzureContainerPackageGlob", |
| 195 | + "arguments": "-gitHubAuthToken $(UpdatePublishedVersions.AuthToken) -root $(Pipeline.SourcesDirectory) -configGroup $(ConfigurationGroup) -SignType $(PB_SignType)", |
| 196 | + "inlineScript": "param($gitHubAuthToken, $root, $configGroup, $SignType=\"unset\")\nif ($configGroup -ne \"Release\" -or $SignType.ToLower() -ne \"real\" ) { exit }\ncd $root\n. $root\\UpdatePublishedVersions.ps1 `\n -gitHubUser dotnet-build-bot -gitHubEmail [email protected] `\n -gitHubAuthToken $gitHubAuthToken `\n -versionsRepoOwner $env:VersionsRepoOwner -versionsRepo versions `\n -versionsRepoPath build-info/dotnet/$env:GitHubRepositoryName/$env:SourceBranch `\n -nupkgPath $root\\packages\\AzureTransfer\\$env:ConfigurationGroup\\$env:AzureContainerPackageGlob", |
236 | 197 | "workingFolder": "",
|
237 | 198 | "failOnStandardError": "true"
|
238 | 199 | }
|
|
0 commit comments