Skip to content
Permalink
Browse files

Enable Version and Tag override for NuGet pack (#1870)

  • Loading branch information...
lokitoth committed May 10, 2019
1 parent 98d4bd8 commit a10ae965b71d59d159d767cff8b4c12190c8cbcd
Showing with 10 additions and 4 deletions.
  1. +1 −1 .pipelines/build-windows-nuget.yml
  2. +9 −3 .scripts/package.cmd
@@ -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
@@ -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\

0 comments on commit a10ae96

Please sign in to comment.
You can’t perform that action at this time.