bug fixed

This commit is contained in:
병준 박 2025-04-08 17:52:21 +00:00
parent 8485b33487
commit 363ed9db57

View File

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