fix
This commit is contained in:
parent
ccd282b741
commit
e4e1ab3f24
@ -30,8 +30,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Archive file') {
|
stage('Archive file') {
|
||||||
steps {
|
steps {
|
||||||
def containerId = sh(script: "docker ps -aq -f status=exited -f ancestor=nbrt10/ium:v1 | head -n 1", returnStdout: true).trim()
|
script {
|
||||||
sh "docker cp ${containerId}:/app/output.txt ${env.WORKSPACE}"
|
def containerId = sh(script: "docker ps -aq -f status=exited -f ancestor=nbrt10/ium:v1 | head -n 1", returnStdout: true).trim()
|
||||||
|
sh "docker cp ${containerId}:/app/output.txt ${env.WORKSPACE}"
|
||||||
|
}
|
||||||
archiveArtifacts artifacts: 'output.txt', fingerprint: true
|
archiveArtifacts artifacts: 'output.txt', fingerprint: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user