This commit is contained in:
2024-04-21 17:47:05 +02:00
parent e33e48e984
commit dd86eca939
2 changed files with 2 additions and 8 deletions

View File

@@ -29,13 +29,10 @@ spec:
- name: set-git-version
image: $(params.gitversion-image)
workingDir: $(workspaces.source.path)
securityContext:
runAsUser: 0
env:
- name: PARAM_BRANCH
value: $(params.branch)
script: |
#!/usr/bin/env ash
git branch
git log
ShortSha=$(/tools/dotnet-gitversion . /showvariable ShortSha)
echo -n "${ShortSha}" | tee $(results.shortSHA.path)
FullSemVer=$(/tools/dotnet-gitversion . /showvariable FullSemVer)