fix
This commit is contained in:
@@ -113,9 +113,6 @@ spec:
|
|||||||
workspace: ssh
|
workspace: ssh
|
||||||
- name: git-version
|
- name: git-version
|
||||||
runAfter: [git-clone]
|
runAfter: [git-clone]
|
||||||
params:
|
|
||||||
- name: branch
|
|
||||||
value: $(params.branch-name)
|
|
||||||
taskRef:
|
taskRef:
|
||||||
name: git-version
|
name: git-version
|
||||||
workspaces:
|
workspaces:
|
||||||
|
|||||||
@@ -29,13 +29,10 @@ spec:
|
|||||||
- name: set-git-version
|
- name: set-git-version
|
||||||
image: $(params.gitversion-image)
|
image: $(params.gitversion-image)
|
||||||
workingDir: $(workspaces.source.path)
|
workingDir: $(workspaces.source.path)
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
env:
|
|
||||||
- name: PARAM_BRANCH
|
|
||||||
value: $(params.branch)
|
|
||||||
script: |
|
script: |
|
||||||
#!/usr/bin/env ash
|
#!/usr/bin/env ash
|
||||||
|
git branch
|
||||||
|
git log
|
||||||
ShortSha=$(/tools/dotnet-gitversion . /showvariable ShortSha)
|
ShortSha=$(/tools/dotnet-gitversion . /showvariable ShortSha)
|
||||||
echo -n "${ShortSha}" | tee $(results.shortSHA.path)
|
echo -n "${ShortSha}" | tee $(results.shortSHA.path)
|
||||||
FullSemVer=$(/tools/dotnet-gitversion . /showvariable FullSemVer)
|
FullSemVer=$(/tools/dotnet-gitversion . /showvariable FullSemVer)
|
||||||
|
|||||||
Reference in New Issue
Block a user