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

Use bash instead on sh in jib-maven

This will fix the issue of task failing with some MAVEN_IMAGE
like 3.6.3-adoptopenjdk-11 etc because of [[ not found
This commit is contained in:
Piyush Garg 2021-04-19 15:11:54 +05:30 committed by tekton-robot
parent 6bd8c3165b
commit fdd4499dd3

View File

@ -48,7 +48,7 @@ spec:
image: $(params.MAVEN_IMAGE)
# Make sh evaluate $HOME.
script: |
#!/bin/sh
#!/bin/bash
[[ -f /etc/ssl/certs/$(params.CACERTFILE) ]] && \
keytool -import -keystore $JAVA_HOME/lib/security/cacerts -storepass "changeit" -file /etc/ssl/certs/$(params.CACERTFILE) -noprompt