sys-prog-coursework-lab-4/Jenkinsfile

29 lines
580 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:32:29 +02:00
git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git'
2024-12-27 19:28:49 +02:00
}
}
stage('Build') {
steps {
2024-12-27 19:31:34 +02:00
sh "g++ main.cpp sort.h sort.cpp -o test -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 {
xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ])
}
}
}