Disable symbol package MyGet publish on release/* (#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)
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"
       }