This commit is contained in:
Norbert Walkowiak 2023-04-18 08:44:12 +02:00
parent 181da9d9dc
commit ef06772389

View File

@ -30,7 +30,7 @@ pipeline {
}
stage('Archive file') {
steps {
sh "docker cp \$(docker ps -l -q):/app/output.txt ${env.WORKSPACE}"
sh "docker cp $(docker ps -aq -f status=exited -f ancestor=nbrt10/ium:v1 | head -n 1):/app/output.txt ${env.WORKSPACE}"
archiveArtifacts artifacts: 'output.txt', fingerprint: true
}
}