Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable suppressing NuGet version tag for official builds #1946

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion .pipelines/build-windows-nuget.yml
Expand Up @@ -5,6 +5,9 @@ pool:
name: Hosted VS2017
demands: Cmd

variables:
SuppressTag: $[ eq(variables.officialbuild, 'true') ]

steps:
- task: VisualStudioTestPlatformInstaller@1
inputs:
Expand Down Expand Up @@ -38,8 +41,8 @@ steps:
- script: CALL .scripts/package.cmd
displayName: 'Package artifacts'
env:
Tag: -$(Build.SourceVersion)--$(Build.BuildId)
nugetPath: $(Build.SourcesDirectory)\vowpalwabbit\.nuget\nuget.exe
Tag: -$(Build.SourceVersion)--$(Build.BuildId)
failOnStderr: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: target'
Expand Down
4 changes: 4 additions & 0 deletions .scripts/package.cmd
Expand Up @@ -20,6 +20,10 @@ IF NOT DEFINED Tag (
SET Tag=-INTERNALONLY
)

IF /I "%SuppressTag%" == "TRUE" (
SET "Tag="
)

SET RootRelativeOutputDirX64=%vwRoot%\vowpalwabbit\out\target\
SET RootRelativeOutputDirAnyCPU=%vwRoot%\vowpalwabbit\out\target\
SET SolutionDir=%vwRoot%\vowpalwabbit\
Expand Down