From 3d3607d62768b2be039c7254db26949afc065d36 Mon Sep 17 00:00:00 2001 From: rhinemann Date: Fri, 27 Dec 2024 19:28:49 +0200 Subject: [PATCH] Added Jenkinsfile. --- Jenkinsfile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Jenkinsfile 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