diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..7aa6b22 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,29 @@ +pipeline { + agent any + + stages { + stage('Checkout') { + steps { + git url: 'http://10.1.1.1:3000/Rhinemann/sys-prog-coursework-lab-4.git', credentialsId: 'access_for_jenkins' + } + } + + stage('Build') { + steps { + g++ main.cpp sort.h sort.cpp -o test -lgtest -pthread + } + } + + stage('Test') { + steps { + test --gtest_output=xml:test_report.xml + } + } + } + + post { + always { + xunit (tools: [ GoogleTest(pattern: 'test_report.xml') ]) + } +} +} \ No newline at end of file