Commit 89f2bef1 authored by Raphael Defosseux's avatar Raphael Defosseux

trying both syntaxes

Signed-off-by: Raphael Defosseux's avatarRaphael Defosseux <raphael.defosseux@eurecom.fr>
parent 0c5388e5
Pipeline #10279 passed with stage
in 0 seconds
...@@ -101,9 +101,16 @@ pipeline { ...@@ -101,9 +101,16 @@ pipeline {
} }
} }
post { post {
always { success {
script {
copyArtifacts(projectName: 'CI-Sandbox4-slave', filter: "test-result*.txt", selector: specific("${slaveJobStatus.number}"))
if (fileExists('test-result.txt')) {
archiveArtifacts artifacts: 'test-result.txt'
}
}
}
cleanup {
script { script {
//copyArtifacts(projectName: 'CI-Sandbox4-slave', filter: "test-result*.txt", selector: specific("${slaveJobStatus.number}"))
copyArtifacts(projectName: 'CI-Sandbox4-slave', filter: "test-result*.txt", selector: lastCompleted()) copyArtifacts(projectName: 'CI-Sandbox4-slave', filter: "test-result*.txt", selector: lastCompleted())
if (fileExists('test-result.txt')) { if (fileExists('test-result.txt')) {
archiveArtifacts artifacts: 'test-result.txt' archiveArtifacts artifacts: 'test-result.txt'
......
...@@ -56,7 +56,7 @@ pipeline { ...@@ -56,7 +56,7 @@ pipeline {
if (fileExists('test-result.txt')) { if (fileExists('test-result.txt')) {
archiveArtifacts artifacts: 'test-result.txt' archiveArtifacts artifacts: 'test-result.txt'
} }
sh "sh scripts/fail.sh" //sh "sh scripts/fail.sh"
} }
} }
} }
......
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