17 lines
440 B
Groovy
17 lines
440 B
Groovy
node {
|
|
stage('Checkout') {
|
|
checkout scm
|
|
}
|
|
stage('Build docker') {
|
|
customImage = docker.build("public/privoxy_whitelist:${env.BUILD_ID}")
|
|
}
|
|
stage('Push to registry') {
|
|
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
|
|
docker.withRegistry('https://docker.briq.it', 'briq-docker-cred') {
|
|
customImage.push("${env.BRANCH_NAME}")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|