updates certificates

This commit is contained in:
2022-08-22 07:56:43 -05:00
parent 77c096fe6b
commit 021441b708
3 changed files with 20 additions and 19 deletions

5
Jenkinsfile vendored
View File

@@ -74,7 +74,8 @@ podTemplate(
stage('Run Tests') {
container('golang') {
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getLocalRootCA())
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA())
writeFile(file: workspace + "/test-chamber-13.lan.ret.root.crt", text: functions.getRetiredRootCA())
sh """
if [ ! "/usr/bin/curl" ] || [ ! -x "/usr/bin/curl" ]; then
apk add --no-cache curl
@@ -87,7 +88,7 @@ podTemplate(
curl \
--silent \
--location \
--cacert "${workspace}/test-chamber-13.lan.root.crt" \
--cacert <( printf '%s\\n' "\$(cat "${workspace}/test-chamber-13.lan.root.crt")" "\$(cat "${workspace}/test-chamber-13.lan.ret.root.crt")" ) \
https://nexus.c.test-chamber-13.lan/repository/github-releases/jstemmer/go-junit-report/releases/download/v1.0.0/go-junit-report-v1.0.0-linux-amd64.tar.gz \
| tar -z -x -f - -C /usr/local/bin
ln -s "${workspace}" "/go/src/${env.JOB_BASE_NAME}"