项目作者: jeff-labs

项目描述 :
Jenkins pipeline images
高级语言: Makefile
项目地址: git://github.com/jeff-labs/jenkins-pipeline-image.git
创建时间: 2020-04-02T07:17:16Z
项目社区:https://github.com/jeff-labs/jenkins-pipeline-image

开源协议:MIT License

下载


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

  • 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

  1. pipeline {
  2. agent {
  3. docker { image 'mrjeffapp/jenkins-pipeline-node:8' }
  4. }
  5. stages {
  6. stage('Install') {
  7. steps {
  8. sh "yarn install"
  9. }
  10. }
  11. }
  12. }

Node pipeline with docker support

  1. pipeline {
  2. agent {
  3. docker {
  4. image 'mrjeffapp/jenkins-pipeline-node:12'
  5. args '--group-add docker -v /var/run/docker.sock:/var/run/docker.sock'
  6. }
  7. }
  8. stages {
  9. stage('Install') {
  10. steps {
  11. sh "yarn install"
  12. }
  13. }
  14. stage('Build') {
  15. steps {
  16. sh "docker build ."
  17. }
  18. }
  19. }
  20. }