sys-prog-coursework-lab-4/Jenkinsfile

29 lines
608 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:49:20 +02:00
git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git', credentialsId: 'jenkins'
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 {
2024-12-27 19:34:19 +02:00
xunit (tools: [ GoogleTest(pattern: './test_report.xml') ])
2024-12-27 19:28:49 +02:00
}
}
}