bug fixed
This commit is contained in:
parent
8485b33487
commit
363ed9db57
@ -46,7 +46,7 @@ spec:
|
||||
A workspace containing CA certificates, this will be used by Git to
|
||||
verify the peer with when fetching or pushing over HTTPS.
|
||||
params:
|
||||
- name: url
|
||||
- name: repo-url
|
||||
description: Repository URL to clone from.
|
||||
type: string
|
||||
- name: revision
|
||||
@ -80,7 +80,7 @@ spec:
|
||||
- name: HOME
|
||||
value: "$(params.userHome)"
|
||||
- name: PARAM_URL
|
||||
value: $(params.url)
|
||||
value: $(params.repo-url)
|
||||
- name: PARAM_REVISION
|
||||
value: $(params.revision)
|
||||
- name: PARAM_VERBOSE
|
||||
@ -135,7 +135,7 @@ spec:
|
||||
git config --global --add safe.directory "${WORKSPACE_OUTPUT_PATH}"
|
||||
cd "${WORKSPACE_OUTPUT_PATH}"
|
||||
|
||||
git clone "$(params.url)" .
|
||||
git clone "${PARAM_URL}" .
|
||||
git checkout "${PARAM_REVISION}"
|
||||
|
||||
RESULT_SHA="$(git rev-parse HEAD)"
|
||||
@ -146,4 +146,4 @@ spec:
|
||||
RESULT_COMMITTER_DATE="$(git log -1 --pretty=%ct)"
|
||||
printf "%s" "${RESULT_COMMITTER_DATE}" > "$(results.committer-date.path)"
|
||||
printf "%s" "${RESULT_SHA}" > "$(results.commit.path)"
|
||||
printf "%s" "$(params.url)" > "$(results.url.path)"
|
||||
printf "%s" "${PARAM_URL}" > "$(results.url.path)"
|
Loading…
x
Reference in New Issue
Block a user