Guest User

Untitled

a guest
Jan 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # Docker container: gittools/gitversion-dotnetcore:linux-4.0.1
  2. # NugetPackageVersion is a variable defined for the Azure DevOps pipeline
  3.  
  4. NEXTVERSION="$(docker run --rm -v "$(pwd):$BUILD_SOURCESDIRECTORY/path-to-repo" gittools/gitversion-dotnetcore:linux-4.0.1 $BUILD_SOURCESDIRECTORY/path-to-repo /output json /showvariable MajorMinorPatch)"
  5.  
  6. # the following command sets the pipeline variable's value to NEXTVERSION
  7. echo "##vso[task.setvariable variable=NugetPackageVersion]$NEXTVERSION"
Add Comment
Please, Sign In to add comment