Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Docker container: gittools/gitversion-dotnetcore:linux-4.0.1
- # NugetPackageVersion is a variable defined for the Azure DevOps pipeline
- 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)"
- # the following command sets the pipeline variable's value to NEXTVERSION
- echo "##vso[task.setvariable variable=NugetPackageVersion]$NEXTVERSION"
Add Comment
Please, Sign In to add comment