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

10 years ago
  1. #!groovy
  2. node {
  3. stage 'Checkout'
  4. checkout scm
  5. stage 'Build'
  6. echo "Branch is: ${env.BRANCH_NAME}"
  7. echo "Build is: ${env.BUILD_NUMBER}"
  8. env.DOCKER_USE_HUB = 1
  9. withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'dockerbot',
  10. usernameVariable: 'DOCKER_USERNAME',
  11. passwordVariable: 'DOCKER_PASSWORD']]) {
  12. wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
  13. sh './build.sh'
  14. }
  15. }
  16. }