Skip to content

Commit e7b9bc7

Browse files
Copilotchefgs
andauthored
Tighten Sonar and PMD install steps
Agent-Logs-Url: https://github.com/cloudengine-labs/devops_os/sessions/5a7ec5cb-5911-4929-a875-d57261636b95 Co-authored-by: chefgs <7605658+chefgs@users.noreply.github.com>
1 parent bf5eb15 commit e7b9bc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ RUN if [ "$INSTALL_ANT" = "true" ]; then \
249249
# SonarQube Scanner
250250
RUN if [ "$INSTALL_SONARQUBE" = "true" ]; then \
251251
curl -fsSLo /tmp/sonar-scanner-cli.zip "https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-${SONAR_SCANNER_VERSION}-linux.zip" \
252-
&& rm -rf /opt/sonar-scanner /tmp/sonar-scanner \
252+
&& rm -rf /opt/sonar-scanner \
253253
&& mkdir -p /tmp/sonar-scanner \
254254
&& unzip /tmp/sonar-scanner-cli.zip -d /tmp/sonar-scanner \
255255
&& mv "/tmp/sonar-scanner/sonar-scanner-${SONAR_SCANNER_VERSION}-linux" /opt/sonar-scanner \
@@ -270,7 +270,7 @@ RUN if [ "$INSTALL_PMD" = "true" ]; then \
270270
mkdir -p /opt/pmd \
271271
&& curl -fsSLo /opt/pmd.zip "https://github.com/pmd/pmd/releases/download/pmd_releases/${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip" \
272272
&& unzip /opt/pmd.zip -d /opt \
273-
&& mv /opt/pmd-* /opt/pmd \
273+
&& mv "/opt/pmd-bin-${PMD_VERSION}" /opt/pmd \
274274
&& rm /opt/pmd.zip \
275275
&& echo 'export PATH=$PATH:/opt/pmd/bin' >> /etc/bash.bashrc; \
276276
fi

0 commit comments

Comments
 (0)