shmuliar-sp-kr-lab4/Jenkinsfile

38 lines
854 B
Plaintext
Raw Permalink Normal View History

2024-12-12 00:43:02 +02:00
pipeline {
agent any
stages {
stage('Checkout') {
steps {
git url: 'http://10.1.1.1:3000/hasslesstech/shmuliar-sp-kr-lab4.git'
}
}
2024-12-12 20:28:12 +02:00
2024-12-12 00:43:02 +02:00
stage('Build') {
steps {
2024-12-12 20:28:12 +02:00
sh 'make -j$(nproc) build test'
2024-12-12 00:43:02 +02:00
}
}
stage('Test') {
steps {
2024-12-12 20:28:12 +02:00
sh './tester test/testcases_sort_official'
sh './tester test/testcases_sort_custom'
script {
try {
sh './tester test/testcases_sort_wrong'
error("Wrong test indicates success!")
} catch (Exception e) {}
}
}
}
stage('Clean Up') {
steps {
sh 'make clean'
2024-12-12 00:43:02 +02:00
}
}
}
}