Carlos Sanchez | e9f9095 | 2016-03-15 19:16:56 +0100 | [diff] [blame] | 1 | node('docker') { |
Carlos Sanchez | 3e58be9 | 2016-09-16 18:32:23 -0700 | [diff] [blame] | 2 | deleteDir() |
Carlos Sanchez | e9f9095 | 2016-03-15 19:16:56 +0100 | [diff] [blame] | 3 | stage 'Checkout' |
| 4 | checkout scm |
| 5 | |
| 6 | stage 'Build' |
| 7 | docker.build('jenkins') |
| 8 | |
| 9 | stage 'Test' |
Carlos Sanchez | 3e58be9 | 2016-09-16 18:32:23 -0700 | [diff] [blame] | 10 | sh """ |
| 11 | git submodule update --init --recursive |
| 12 | git clone https://github.com/sstephenson/bats.git |
| 13 | bats/bin/bats tests |
| 14 | """ |
Carlos Sanchez | e9f9095 | 2016-03-15 19:16:56 +0100 | [diff] [blame] | 15 | } |