blob: 1e79e64eda29c85eb8fa1c6e050c9b8f8f9d6e51 [file] [log] [blame]
Carlos Sancheze9f90952016-03-15 19:16:56 +01001node('docker') {
Carlos Sanchez3e58be92016-09-16 18:32:23 -07002 deleteDir()
Carlos Sancheze9f90952016-03-15 19:16:56 +01003 stage 'Checkout'
4 checkout scm
5
6 stage 'Build'
7 docker.build('jenkins')
8
9 stage 'Test'
Carlos Sanchez3e58be92016-09-16 18:32:23 -070010 sh """
11 git submodule update --init --recursive
12 git clone https://github.com/sstephenson/bats.git
13 bats/bin/bats tests
14 """
Carlos Sancheze9f90952016-03-15 19:16:56 +010015}