sys-prog-coursework-lab-4/Jenkinsfile

29 lines
625 B
Plaintext
Raw Normal View History

2024-12-27 19:28:49 +02:00
pipeline {
agent any
stages {
stage('Checkout') {
steps {
2024-12-27 19:50:56 +02:00
git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git', credentialsId: 'jenkins', branch: 'main'
2024-12-27 19:28:49 +02:00
}
}
stage('Build') {
steps {
2024-12-27 19:53:21 +02:00
sh "g++ main.cpp sort.h sort.cpp -o test -w -lgtest -pthread"
2024-12-27 19:28:49 +02:00
}
}
stage('Test') {
steps {
2024-12-27 19:31:34 +02:00
sh "test --gtest_output=xml:test_report.xml"
2024-12-27 19:28:49 +02:00
}
}
}
post {
always {
2024-12-27 19:53:21 +02:00
xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ])
2024-12-27 19:28:49 +02:00
}
}
}