diff --git a/Jenkinsfile b/Jenkinsfile index 158d5eaeb..5b9a5f6e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -228,7 +228,6 @@ pipeline { export PATH="/usr/lib/ccache:$PATH" cd build sudo nice make -j\$((\$(nproc) / 2)) install - sudo chown \$(id -u):\$(id -g) . -R saunafs-tests --gtest_filter="RebalancingTests*" --gtest_output="xml:./rebalance_test_detail.xml" || true """ publishJunit("build/*test_detail.xml") @@ -242,6 +241,11 @@ pipeline { "Unit tests failed on branch ${BRANCH_NAME}, build number ${BUILD_NUMBER}" ) } + cleanup { + sh """ + sudo chown \$(id -u):\$(id -g) $WORKSPACE -R + """ + } } } stage('Build with clang') {