1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

Directory not handled in digest-to-results step

This will fix the issue of jib-maven task not passing digest to results
if the clone has happened in sub-directory and directory passed to
jib-maven task

It is because the directory param is not handled in path creation for digest

It will not break the existing the behaviour but fixing the issue for directory scenario
so doing the change in latest version
This commit is contained in:
Piyush Garg 2021-11-22 11:24:01 +05:30 committed by tekton-robot
parent df2232761a
commit 6a6f3543fa
5 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ spec:
name: jib-maven-test-pipeline
workspaces:
- name: shared-workspace
persistentvolumeclaim:
persistentVolumeClaim:
claimName: jib-maven-source-pvc
resources:
- name: build-image

View File

@ -61,5 +61,5 @@ spec:
name: jib-maven-test-pipeline
workspaces:
- name: shared-workspace
persistentvolumeclaim:
persistentVolumeClaim:
claimName: jib-maven-source-pvc

View File

@ -64,7 +64,7 @@ spec:
name: jib-maven-test-pipeline
workspaces:
- name: shared-workspace
persistentvolumeclaim:
persistentVolumeClaim:
claimName: jib-maven-source-pvc
- name: ssl-certs
configMap:

View File

@ -77,7 +77,7 @@ spec:
- name: digest-to-results
image: $(params.MAVEN_IMAGE)
script: cat $(workspaces.source.path)/target/jib-image.digest | tee /tekton/results/IMAGE_DIGEST
script: cat $(workspaces.source.path)/$(params.DIRECTORY)/target/jib-image.digest | tee /tekton/results/IMAGE_DIGEST
volumes:
- name: empty-dir-volume

View File

@ -64,7 +64,7 @@ spec:
name: jib-maven-test-pipeline
workspaces:
- name: shared-workspace
persistentvolumeclaim:
persistentVolumeClaim:
claimName: jib-maven-source-pvc
- name: ssl-certs
configMap: