Compare commits
9 Commits
3d3607d627
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 0b6b9d5c8e | |||
| cee3f6b5ef | |||
| 54802ebcd9 | |||
| 4a14c120e8 | |||
| cc3e24b654 | |||
| 1a7d256113 | |||
| f0c7baeed8 | |||
| 3f76c5e3b8 | |||
| b6207c199a |
Vendored
+4
-5
@@ -4,26 +4,25 @@ 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') ])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user