Change-Id: I71cb7dae8be96076340e41e369b7c650c600cf61
Signed-off-by: Felipe Vicens <felipe.vicens@atos.net>
])
}
+def archive_logs(stackName) {
+ sh """
+ docker service ls | grep ${stackname} | awk '{print $2}' | xargs -i% docker service logs "%" --timestamps > containers_logs.txt 2>&1
+ """
+ archiveArtifacts artifacts: 'containers_logs.txt'
+}
+
node("${params.NODE}") {
sh 'env'
} //else {
run_systest(container_name,container_name,"openstack_stage_4",params.HIVE_VIM_1)
//}
-
+ // Archive logs to containers_logs.txt
+ archive_logs(container_name)
if ( ! currentBuild.result.equals('UNSTABLE') && ! currentBuild.result.equals('FAILURE')) {
stage_archive = keep_artifacts
} else {