diff --git a/build-sonarscanner.jenkins b/build-sonarscanner.jenkins index a3eb51f..b45eaec 100644 --- a/build-sonarscanner.jenkins +++ b/build-sonarscanner.jenkins @@ -25,7 +25,6 @@ pipeline { script { workspace = pwd() 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 LABEL org.opencontainers.image.authors="The_Spider " @@ -35,8 +34,8 @@ LABEL org.opencontainers.image.base.name="docker.io/sonarsource/sonar-scanner-cl USER root -COPY test-chamber-13.lan.root.crt test-chamber-13.lan.ret.root.crt /usr/local/share/ca-certificates/ -RUN update-ca-certificates --fresh +COPY test-chamber-13.lan.root.crt /etc/pki/ca-trust/source/anchors/ +RUN update-ca-trust USER scanner-cli """