2024-12-27 19:28:49 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
2024-12-27 19:40:40 +02:00
|
|
|
echo 'Pulling... ' + env.GIT_BRANCH
|
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 {
|
2024-12-27 19:34:19 +02:00
|
|
|
xunit (tools: [ GoogleTest(pattern: './test_report.xml') ])
|
2024-12-27 19:28:49 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|