Commit a7029b9c authored by Raphael Defosseux's avatar Raphael Defosseux 🌴

preventing to duplicate copy artifacts

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 89f2bef1
Pipeline #10280 passed with stage
in 0 seconds
......@@ -111,9 +111,11 @@ pipeline {
}
cleanup {
script {
copyArtifacts(projectName: 'CI-Sandbox4-slave', filter: "test-result*.txt", selector: lastCompleted())
if (fileExists('test-result.txt')) {
archiveArtifacts artifacts: 'test-result.txt'
if (!fileExists('test-result.txt')) {
copyArtifacts(projectName: 'CI-Sandbox4-slave', filter: "test-result*.txt", selector: lastCompleted())
if (fileExists('test-result.txt')) {
archiveArtifacts artifacts: 'test-result.txt'
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment