Skip to content

jeff-labs/jenkins-pipeline-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • mrjeffapp/jenkins-pipeline
    • git
    • aws-cli
    • docker
    • sonar-scanner
  • mrjeffapp/jenkins-pipeline-node:8
  • mrjeffapp/jenkins-pipeline-node:10
  • mrjeffapp/jenkins-pipeline-node:12
  • mrjeffapp/jenkins-pipeline-node:14
  • mrjeffapp/jenkins-pipeline-java:8
  • mrjeffapp/jenkins-pipeline-java:11
  • mrjeffapp/jenkins-pipeline-java:14
  • 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 ."
            }
        }

    }

}