Skip to content

Commit 0c6933d

Browse files
syntonyzeDanieleSassoli
authored andcommitted
Install JReleaser in release-agent
In preparation to publishing directly to Maven Central rather than going through the now deprecated OSSH staging deployment. Bug: Issue 450577964 Change-Id: I8a90c7819937da4759ccefd36d7e4f902e6ba981
1 parent 043fb76 commit 0c6933d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jenkins-docker/agent-release/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,18 @@
11
FROM gerritforge/gerrit-ci-agent-bazel:debian-bookworm-nocache-latest
22

3+
ARG JRELEASER_VERSION=1.20.0
34
RUN apt-get update --allow-releaseinfo-change && \
45
apt-get install -y gnupg2 jq && \
56
export CLOUD_SDK_REPO="cloud-sdk-bookworm" && \
67
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list && \
78
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \
89
apt-get update --allow-releaseinfo-change && apt-get install -y google-cloud-sdk && \
910
apt-get clean
11+
RUN curl -fsSL -o /tmp/jr.zip \
12+
"https://github.com/jreleaser/jreleaser/releases/download/v${JRELEASER_VERSION}/jreleaser-standalone-${JRELEASER_VERSION}-linux-x86_64.zip" && \
13+
unzip /tmp/jr.zip -d /opt && \
14+
ln -sf "/opt/jreleaser-standalone-${JRELEASER_VERSION}-linux-x86_64/bin/jreleaser" /usr/local/bin/jreleaser && \
15+
rm -f /tmp/jr.zip
1016

1117
COPY gerrit-release.sh /usr/local/bin
1218
COPY gerrit-upgrade-test.sh /usr/local/bin

0 commit comments

Comments
 (0)