Category : gitversion

I would like to use Jenkins docker.Image.run() to run GitVersion. From a bash shell, if I run docker run –rm -v "$(pwd):/repo" gittools/gitversion:5.6.6 /repo …a JSON-format string gets sent to stdout. I’d like my Jenkinsfile to consume this stdout. I know that I can run this docker container from my Jenkinsfile as follows: pipeline { ..

Read more

I was trying to get FullSemVer value from GitVersion running on docker in Travis-CI build. My codes looks something like this in .travis.yml: services: – docker script: – docker pull gittools/gitversion:5.3.5-linux-alpine.3.10-x64-netcoreapp3.1 – export GitVersion_FullSemVer=$(docker run –rm -v "$(pwd):/repo" gittools/gitversion:5.3.5-linux-alpine.3.10-x64-netcoreapp3.1 /repo -output json -showvariable FullSemVer) Assume that I can successfully get the FullSemver value and assign ..

Read more