sys-prog-coursework-lab-4/Jenkinsfile

28 lines
646 B
Plaintext
Raw Permalink Normal View History

2024-12-27 19:28:49 +02:00
pipeline {
agent any
2024-12-27 19:58:52 +02:00
2024-12-27 19:28:49 +02:00
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:54:40 +02:00
sh "./test --gtest_output=xml:test_report.xml"
2024-12-27 19:28:49 +02:00
}
}
}
post {
2024-12-27 19:58:52 +02:00
always {
xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ])
}
2024-12-27 19:28:49 +02:00
}
}