Change-Id: I0f60913b040df80f0a96cd88d485a2f6692ffdc5
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
}
def archive_logs(stackName) {
}
def archive_logs(stackName) {
- sh "docker service ls |grep \"${stackName}\"| awk '{print \$2}'| xargs -iy docker service logs y --timestamps > containers_logs.txt 2>&1"
+ sh "docker service ls |grep \"${stackName}\"| awk '{print \$2}'| xargs -iy docker service logs y --timestamps &> containers_logs.txt"
archiveArtifacts artifacts: 'containers_logs.txt'
}
archiveArtifacts artifacts: 'containers_logs.txt'
}