#!/usr/bin/env groovy | |
node('docker') { | |
deleteDir() | |
stage('Checkout') { | |
checkout scm | |
} | |
stage('Build') { | |
docker.build('jenkins') | |
} | |
stage('Test') { | |
sh """ | |
git submodule update --init --recursive | |
git clone https://github.com/sstephenson/bats.git | |
bats/bin/bats tests | |
""" | |
} | |
} |