1
0
mirror of https://github.com/mc1arke/sonarqube-community-branch-plugin.git synced 2025-02-21 19:20:09 +02:00
Michael Clarke 182911d6d6 Upgrade to the latest Gradle version
Bumps to Gradle 8.9. Includes moving to the `Jammy` JDK Docker image
rather than the `Alpine` image to allow building on Arm architectures.
2024-08-11 12:16:24 +01:00

16 lines
643 B
Docker

ARG SONARQUBE_VERSION
FROM gradle:8.9-jdk17-jammy as builder
COPY . /home/build/project
WORKDIR /home/build/project
RUN gradle build -x test
FROM sonarqube:${SONARQUBE_VERSION}
COPY --from=builder --chown=sonarqube:sonarqube /home/build/project/build/libs/sonarqube-community-branch-plugin-*.jar /opt/sonarqube/extensions/plugins/
ARG PLUGIN_VERSION
ENV PLUGIN_VERSION=${PLUGIN_VERSION}
ENV SONAR_WEB_JAVAADDITIONALOPTS="-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-${PLUGIN_VERSION}.jar=web"
ENV SONAR_CE_JAVAADDITIONALOPTS="-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-${PLUGIN_VERSION}.jar=ce"