Implement fully automated Jenkins HW8 setup with Ansible, JCasC and JJB
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
FROM jenkins/jenkins:2.541.3-lts-jdk21
|
||||
|
||||
USER root
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
curl \
|
||||
git \
|
||||
docker.io \
|
||||
python3 \
|
||||
python3-pip \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG ALLURE_VERSION=2.29.0
|
||||
RUN curl -fsSL -o /tmp/allure.zip \
|
||||
"https://github.com/allure-framework/allure2/releases/download/${ALLURE_VERSION}/allure-${ALLURE_VERSION}.zip" \
|
||||
&& unzip -q /tmp/allure.zip -d /opt \
|
||||
&& ln -s "/opt/allure-${ALLURE_VERSION}" /opt/allure \
|
||||
&& ln -s /opt/allure/bin/allure /usr/local/bin/allure \
|
||||
&& rm -f /tmp/allure.zip
|
||||
|
||||
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
|
||||
RUN jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt
|
||||
|
||||
USER jenkins
|
||||
Reference in New Issue
Block a user