Compare commits

...

9 Commits

Author SHA1 Message Date
Rhinemann 0b6b9d5c8e Jenkinsfile updated. 2024-12-27 19:58:52 +02:00
Rhinemann cee3f6b5ef Jenkinsfile updated. 2024-12-27 19:54:40 +02:00
Rhinemann 54802ebcd9 Jenkinsfile updated. 2024-12-27 19:53:21 +02:00
Rhinemann 4a14c120e8 Jenkinsfile updated. 2024-12-27 19:50:56 +02:00
Rhinemann cc3e24b654 Jenkinsfile updated. 2024-12-27 19:49:20 +02:00
Rhinemann 1a7d256113 Jenkinsfile updated. 2024-12-27 19:40:40 +02:00
Rhinemann f0c7baeed8 Jenkinsfile updated. 2024-12-27 19:34:19 +02:00
Rhinemann 3f76c5e3b8 Jenkinsfile updated. 2024-12-27 19:32:29 +02:00
Rhinemann b6207c199a Jenkinsfile updated. 2024-12-27 19:31:34 +02:00
Vendored
+3 -4
View File
@@ -4,23 +4,22 @@ pipeline {
stages { stages {
stage('Checkout') { stage('Checkout') {
steps { steps {
git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git', credentialsId: 'access_for_jenkins' git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git', credentialsId: 'jenkins', branch: 'main'
} }
} }
stage('Build') { stage('Build') {
steps { steps {
g++ main.cpp sort.h sort.cpp -o test -lgtest -pthread sh "g++ main.cpp sort.h sort.cpp -o test -w -lgtest -pthread"
} }
} }
stage('Test') { stage('Test') {
steps { steps {
test --gtest_output=xml:test_report.xml sh "./test --gtest_output=xml:test_report.xml"
} }
} }
} }
post { post {
always { always {
xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ]) xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ])