Build just docker cli and set built in executors to 0

This commit is contained in:
Andreas Fahrecker 2023-04-02 17:29:08 +02:00
parent c6c2a53333
commit fe3fd6d640
2 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,9 @@ RUN echo \
tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update
RUN apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
RUN apt-get install -y docker-ce-cli
COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
USER jenkins
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"

2
executors.groovy Normal file
View File

@ -0,0 +1,2 @@
import jenkins.model.*
Jenkins.instance.setNumExecutors(0)