diff --git a/tasks/git-clone-checkout/task.yaml b/tasks/git-clone-checkout/task.yaml index 21f8b4a..f4cc7ff 100644 --- a/tasks/git-clone-checkout/task.yaml +++ b/tasks/git-clone-checkout/task.yaml @@ -16,7 +16,7 @@ spec: These Tasks are Git tasks to work with repositories used by other tasks in your Pipeline. - The git-clone Task will clone a repo from the provided url into the + The git-clone-checkout Task will clone a repo from the provided url into the output Workspace. By default the repo will be cloned into the root of your Workspace. You can clone into a subdirectory by setting this Task's subdirectory param. This Task also supports sparse checkouts. To perform @@ -54,7 +54,7 @@ spec: type: string default: "" - name: verbose - description: Log the commands that are executed during `git-clone`'s operation. + description: Log the commands that are executed during `git-clone-checkout`'s operation. type: string default: "true" - name: gitInitImage @@ -135,7 +135,7 @@ spec: git config --global --add safe.directory "${WORKSPACE_OUTPUT_PATH}" cd "${WORKSPACE_OUTPUT_PATH}" - git clone "${PARAM_URL}" . + git clone "$(params.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" "${PARAM_URL}" > "$(results.url.path)" \ No newline at end of file + printf "%s" "$(params.url)" > "$(results.url.path)" \ No newline at end of file