Initial Commit
All checks were successful
andreas-personal/good-old-jenkins/pipeline/head This commit looks good
All checks were successful
andreas-personal/good-old-jenkins/pipeline/head This commit looks good
This commit is contained in:
11
alpine/Dockerfile
Normal file
11
alpine/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM jenkins/jenkins:alpine
|
||||
|
||||
USER root
|
||||
RUN addgroup --gid 281 docker
|
||||
RUN addgroup jenkins docker
|
||||
|
||||
COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
|
||||
|
||||
# Install jenkins plugins
|
||||
USER jenkins
|
||||
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"
|
2
alpine/executors.groovy
Normal file
2
alpine/executors.groovy
Normal file
@ -0,0 +1,2 @@
|
||||
import jenkins.model.*
|
||||
Jenkins.instance.setNumExecutors(0)
|
Reference in New Issue
Block a user