https://www.jenkins.io/doc/book/
- Docker engine
$ docker-compose build
$ docker-compose run -d
https://www.jenkins.io/doc/book/installing/docker/#setup-wizard
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
dir '.'
additionalBuildArgs '--no-cache --network host'
}
}
stages {
stage('Build') {
steps {
sh 'make build'
}
}
stage('Test') {
steps {
sh 'make test'
}
}
stage('Deploy') {
steps {
sh 'make deploy'
}
}
}
}