Skip to content

Commit

Permalink
Enable Version and Tag override for NuGet pack (#1870)
Browse files Browse the repository at this point in the history
  • Loading branch information
lokitoth authored May 10, 2019
1 parent 98d4bd8 commit a10ae96
Show file tree
Hide file tree
Showing 2 changed files with 10 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
12 changes: 9 additions & 3 deletions .scripts/package.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ 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
REM Tracked by https://github.com/VowpalWabbit/vowpal_wabbit/issues/1714
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 a10ae96

Please sign in to comment.