All properties and methods from BoxCommon are valid in addition to the properties and methods documented here.
Calls docker-compose build
on the specified profile
Calls docker-compose up
on the specified profile
Calls docker-compose down
on the specified profile
Pushes images configured to matching registries, and writes event to build-versions repository
jenkins.yaml:
common:
images:
- test/a
- test/b
build:
composeProfileMap:
dev: ./docker/dev
prod: ./docker/prod
pullImages:
- nginx
Jenkinsfile:
@Library('jenkins-shared-library@master')
import com.boxboat.jenkins.pipeline.build.*
def build = new BoxBuild()
node() {
build.wrap {
stage('Test'){
sh './build/ci/test.sh'
sh './build/ci/test-api.sh'
}
stage('Build'){
build.composeUp("prod")
}
stage ('Push'){
build.push()
}
}
}