need to get the root CA outside of the sh block
This commit is contained in:
parent
770edbab66
commit
c063bddce1
@ -32,8 +32,9 @@ podTemplate (
|
|||||||
|
|
||||||
stage ("Add Cert to Kaniko") {
|
stage ("Add Cert to Kaniko") {
|
||||||
container ("kaniko") {
|
container ("kaniko") {
|
||||||
|
def localRootCA = functions.getLocalRootCA()
|
||||||
sh """
|
sh """
|
||||||
printf '%s\\n' "${functions.getLocalRootCA}" >> /kaniko/ssl/certs/ca-certificates.crt
|
printf '%s\\n' "${localRootCA}" >> /kaniko/ssl/certs/ca-certificates.crt
|
||||||
cp "/kaniko/ssl/certs/ca-certificates.crt" "${workspace}/kaniko-chain.crt"
|
cp "/kaniko/ssl/certs/ca-certificates.crt" "${workspace}/kaniko-chain.crt"
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user