View on GitHub

jenkins-pipeline-image

Jenkins pipeline images

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

Build and push images

Images

jenkins-pipeline

jenkins-pipeline-node

jenkins-pipeline-java

jenkins-pipeline-php

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 ."
            }
        }

    }

}