updates sonarscanner

This commit is contained in:
Hyatt 2024-09-29 07:30:53 -05:00
parent d175825beb
commit fa8a289f67
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -25,7 +25,6 @@ pipeline {
script { script {
workspace = pwd() workspace = pwd()
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA()) 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())
dockerFile = """FROM ${repository}/dockerhub/sonarsource/sonar-scanner-cli:latest dockerFile = """FROM ${repository}/dockerhub/sonarsource/sonar-scanner-cli:latest
LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>" LABEL org.opencontainers.image.authors="The_Spider <spider@smoothnet.org>"
@ -35,8 +34,8 @@ LABEL org.opencontainers.image.base.name="docker.io/sonarsource/sonar-scanner-cl
USER root USER root
COPY test-chamber-13.lan.root.crt test-chamber-13.lan.ret.root.crt /usr/local/share/ca-certificates/ COPY test-chamber-13.lan.root.crt /etc/pki/ca-trust/source/anchors/
RUN update-ca-certificates --fresh RUN update-ca-trust
USER scanner-cli USER scanner-cli
""" """