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:
parent
df2232761a
commit
6a6f3543fa
@ -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
|
||||
|
@ -61,5 +61,5 @@ spec:
|
||||
name: jib-maven-test-pipeline
|
||||
workspaces:
|
||||
- name: shared-workspace
|
||||
persistentvolumeclaim:
|
||||
persistentVolumeClaim:
|
||||
claimName: jib-maven-source-pvc
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user