You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
561 B
18 lines
561 B
#!groovy
|
|
|
|
node {
|
|
stage 'Checkout'
|
|
checkout scm
|
|
|
|
stage 'Build'
|
|
echo "Branch is: ${env.BRANCH_NAME}"
|
|
echo "Build is: ${env.BUILD_NUMBER}"
|
|
env.DOCKER_USE_HUB = 1
|
|
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'dockerbot',
|
|
usernameVariable: 'DOCKER_USERNAME',
|
|
passwordVariable: 'DOCKER_PASSWORD']]) {
|
|
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
|
|
sh './build.sh'
|
|
}
|
|
}
|
|
}
|