forked from mc1arke/sonarqube-community-branch-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (11 loc) · 633 Bytes
/
Dockerfile
File metadata and controls
15 lines (11 loc) · 633 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 /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"