Skip to content

Commit 3de4e07

Browse files
authored
[kvm] Fix log output for buildimage-vs-test job (sonic-net#151)
buildimage-vs-image-test was overlooked by sonic-net#150. This PR brings the result archival up to date with sonic-net#149. Signed-off-by: Danny Allen <[email protected]>
1 parent a9c9022 commit 3de4e07

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

jenkins/vs/buildimage-vs-image-test/Jenkinsfile

+12-14
Original file line numberDiff line numberDiff line change
@@ -61,24 +61,22 @@ pipeline {
6161
}
6262
}
6363
}
64-
}
6564

66-
}
67-
post {
65+
post {
66+
always {
67+
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/logs/**/*.xml')
68+
archiveArtifacts(artifacts: 'sonic-mgmt/tests/logs/**')
69+
}
6870

69-
always {
70-
archiveArtifacts(artifacts: 'sonic-mgmt/tests/logs/**, sonic-mgmt/tests/results/**, kvmdump/**, ptfdump/**')
71-
junit(allowEmptyResults: true, keepLongStdio: true, testResults: 'sonic-mgmt/tests/results/**/*.xml')
71+
failure {
72+
archiveArtifacts(artifacts: 'kvmdump/**, ptfdump/**')
73+
}
74+
}
7275
}
7376

74-
fixed {
75-
slackSend(color:'#00FF00', message: "Build job back to normal: ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)")
76-
office365ConnectorSend(webhookUrl: "${env.SONIC_TEAM_TEST_WEBHOOK}")
77-
}
78-
regression {
79-
slackSend(color:'#FF0000', message: "Build job Regression: ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)")
80-
office365ConnectorSend(webhookUrl: "${env.SONIC_TEAM_TEST_WEBHOOK}")
81-
}
77+
}
78+
79+
post {
8280
cleanup {
8381
cleanWs(disableDeferredWipeout: false, deleteDirs: true, notFailBuild: true)
8482
}

0 commit comments

Comments
 (0)