From 6e5fb5a9fc5902fc4d366ecf777b1efa1327d01c Mon Sep 17 00:00:00 2001 From: Vibhav Pant Date: Tue, 21 Nov 2023 18:14:29 +0530 Subject: [PATCH] Run chmod in the post block. --- jenkinsfile/Jenkinsfile_MR_linux | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/jenkinsfile/Jenkinsfile_MR_linux b/jenkinsfile/Jenkinsfile_MR_linux index 870ecb6e..bfc3ea73 100644 --- a/jenkinsfile/Jenkinsfile_MR_linux +++ b/jenkinsfile/Jenkinsfile_MR_linux @@ -140,12 +140,6 @@ pipeline { } } } - - stage("Fix test-results permissions"){ - steps{ - sh "chmod -R 777 ${megacmd_sources_workspace}/test-results" - } - } } post{ @@ -168,6 +162,7 @@ pipeline { updateGitlabCommitStatus(name: 'Build linux', state: 'failed') } } + sh "chmod -R 777 ${megacmd_sources_workspace}/test-results" junit "**/test-results/*.xml" archiveArtifacts artifacts: "**/test-results/megacmd-*-tests-asan-report.*" }