fix
This commit is contained in:
@@ -113,9 +113,6 @@ spec:
|
||||
workspace: ssh
|
||||
- name: git-version
|
||||
runAfter: [git-clone]
|
||||
params:
|
||||
- name: branch
|
||||
value: $(params.branch-name)
|
||||
taskRef:
|
||||
name: git-version
|
||||
workspaces:
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user