Skip to content

Commit

Permalink
Enable Version and Tag override for NuGet pack
Browse files Browse the repository at this point in the history
  • Loading branch information
lokitoth committed May 9, 2019
1 parent 98d4bd8 commit e710dd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pipelines/build-windows-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ steps:
- script: CALL .scripts/package.cmd
displayName: 'Package artifacts'
env:
Tag: +$(Build.SourceVersion)
Tag: -$(Build.SourceVersion)--$(Build.BuildId)
nugetPath: $(Build.SourcesDirectory)\vowpalwabbit\.nuget\nuget.exe
failOnStderr: true
- task: PublishBuildArtifacts@1
Expand Down
11 changes: 8 additions & 3 deletions .scripts/package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ CALL %~dp0init.cmd

PUSHD %~dp0..

REM TODO: these should be read from the version props file, or similar
SET Version=8.6.1
SET Tag=-INTERNALONLY
REM TODO: these should be read from the version props file, or similar, with the ability to overload via env
IF NOT DEFINED Version (
SET Version=8.6.1
)

IF NOT DEFINED Tag (
SET Tag=-INTERNALONLY
)

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

0 comments on commit e710dd9

Please sign in to comment.