diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..8802056 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,18 @@ +#!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' + } + } +}