18 lines
446 B
Groovy
18 lines
446 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Test') {
|
|
steps {
|
|
script {
|
|
def customImage = docker.build("paper-cutter:${env.BUILD_ID}")
|
|
customImage.inside() {
|
|
dir('test') {
|
|
sh 'touch foo.txt'
|
|
sh 'bash run_tests.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |