2021-11-29 07:46:08 +01:00
|
|
|
pipeline {
|
2021-11-29 08:27:58 +01:00
|
|
|
agent any
|
2021-11-29 07:46:08 +01:00
|
|
|
stages {
|
|
|
|
stage('Test') {
|
|
|
|
steps {
|
2021-11-29 08:29:13 +01:00
|
|
|
script {
|
2021-11-29 08:27:58 +01:00
|
|
|
def customImage = docker.build("paper-cutter:${env.BUILD_ID}")
|
|
|
|
customImage.inside() {
|
|
|
|
dir('test') {
|
2021-11-29 11:14:21 +01:00
|
|
|
sh 'git clone https://git.wmi.amu.edu.pl/filipg/paper-cutter.git'
|
|
|
|
sh 'ls -l paper-cutter'
|
2021-11-29 10:55:38 +01:00
|
|
|
sh 'bash run_tests.sh'
|
2021-11-29 08:27:58 +01:00
|
|
|
}
|
2021-11-29 07:46:08 +01:00
|
|
|
}
|
2021-11-29 08:29:13 +01:00
|
|
|
}
|
2021-11-29 07:46:08 +01:00
|
|
|
}
|
2021-11-29 07:47:05 +01:00
|
|
|
}
|
|
|
|
}
|
2021-11-29 07:46:08 +01:00
|
|
|
}
|