Jenkins pipeline images
Docker images to use as an agent in Jenkins pipelines.
Based in the CircleCI images project and the Bitbucket pipelines default image
Status
Images
jenkins-pipeline
mrjeffapp/jenkins-pipeline
- git
- aws-cli
- docker
- sonar-scanner
jenkins-pipeline-node
mrjeffapp/jenkins-pipeline-node:8
mrjeffapp/jenkins-pipeline-node:10
mrjeffapp/jenkins-pipeline-node:12
mrjeffapp/jenkins-pipeline-node:14
jenkins-pipeline-java
mrjeffapp/jenkins-pipeline-java:8
mrjeffapp/jenkins-pipeline-java:11
mrjeffapp/jenkins-pipeline-java:14
jenkins-pipeline-php
mrjeffapp/jenkins-pipeline-php:7.2
mrjeffapp/jenkins-pipeline-php:7.4
Examples
Node pipeline
pipeline {
agent {
docker { image 'mrjeffapp/jenkins-pipeline-node:8' }
}
stages {
stage('Install') {
steps {
sh "yarn install"
}
}
}
}
Node pipeline with docker support
pipeline {
agent {
docker {
image 'mrjeffapp/jenkins-pipeline-node:12'
args '--group-add docker -v /var/run/docker.sock:/var/run/docker.sock'
}
}
stages {
stage('Install') {
steps {
sh "yarn install"
}
}
stage('Build') {
steps {
sh "docker build ."
}
}
}
}