Disable symbol package MyGet publish on release/* (dotnet/coreclr#11372)
authorDavis Goodin <dagood@users.noreply.github.com>
Thu, 4 May 2017 14:17:24 +0000 (09:17 -0500)
committerGitHub <noreply@github.com>
Thu, 4 May 2017 14:17:24 +0000 (09:17 -0500)
Commit migrated from https://github.com/dotnet/coreclr/commit/4eb6cb798ef238d8a09e8b85d94da281ba95acf7

src/coreclr/buildpipeline/DotNet-Trusted-Publish.json

index e26b9dc..fc4d9d0 100644 (file)
         "scriptType": "inlineScript",
         "scriptName": "",
         "arguments": "$(MyGetApiKey) $(ConfigurationGroup)",
-        "inlineScript": "param($ApiKey, $ConfigurationGroup)\nif ($ConfigurationGroup -ne \"Release\") { exit }\n& $env:CustomNuGetPath push $env:Build_StagingDirectory\\IndexedSymbolPackages\\*.nupkg $ApiKey -Source $env:MyGetFeedUrl -Timeout 3600",
+        "inlineScript": "param($ApiKey, $ConfigurationGroup)\nif ($ConfigurationGroup -ne \"Release\") { exit }\nif ($env:SourceBranch.StartsWith(\"release/\")) { exit }\n& $env:CustomNuGetPath push $env:Build_StagingDirectory\\IndexedSymbolPackages\\*.nupkg $ApiKey -Source $env:MyGetFeedUrl -Timeout 3600",
         "workingFolder": "",
         "failOnStandardError": "true"
       }