Wrap test-cookiecutter-reclass-chunk into fancy stage.
Change-Id: I63a4ddf10de8888b3b8452e2c7f19607302c9da5
diff --git a/test-cookiecutter-reclass-chunk.groovy b/test-cookiecutter-reclass-chunk.groovy
index 9e34cea..58355c1 100644
--- a/test-cookiecutter-reclass-chunk.groovy
+++ b/test-cookiecutter-reclass-chunk.groovy
@@ -12,16 +12,18 @@
slaveNode = env.SLAVE_NODE ?: 'python&&docker'
timeout(time: 1, unit: 'HOURS') {
- node(slaveNode) {
- try {
- extraVars = readYaml text: EXTRA_VARIABLES_YAML
- currentBuild.description = extraVars.modelFile
- saltModelTesting.testCCModel(extraVars)
- } catch (Throwable e) {
- // If there was an error or exception thrown, the build failed
- currentBuild.result = "FAILURE"
- currentBuild.description = currentBuild.description ? e.message + " " + currentBuild.description : e.message
- throw e
+ node(slaveNode) {
+ stage("RunTest") {
+ try {
+ extraVars = readYaml text: EXTRA_VARIABLES_YAML
+ currentBuild.description = extraVars.modelFile
+ saltModelTesting.testCCModel(extraVars)
+ } catch (Throwable e) {
+ // If there was an error or exception thrown, the build failed
+ currentBuild.result = "FAILURE"
+ currentBuild.description = currentBuild.description ? e.message + " " + currentBuild.description : e.message
+ throw e
+ }
+ }
}
- }
}