commit | 420d7ff14cf171fdf2af5098071420c54b6621eb | [log] [tgz] |
---|---|---|
author | Tomáš Kukrál <tomkukral@users.noreply.github.com> | Tue Mar 21 11:38:33 2017 +0100 |
committer | Tomáš Kukrál <tomkukral@users.noreply.github.com> | Tue Mar 21 11:39:42 2017 +0100 |
tree | 1f92e5b51cce79ca7eefa1d3c14245aae709ad4d | |
parent | 396ba5441e3dcc5c97bf03b740347bd9f7f64049 [diff] |
add finalize stage Change-Id: I3608a45a3a00409f4ee17247a01597f3d4a64225
diff --git a/lab-pipeline.groovy b/lab-pipeline.groovy index 6dba9f6..00ba743 100644 --- a/lab-pipeline.groovy +++ b/lab-pipeline.groovy
@@ -526,6 +526,13 @@ } } + stage('Finalize') { + try { + salt.runSaltProcessStep(saltMaster, '*', 'state.apply', [], null, true) + } catch (Exception e) { + common.warningMsg('State apply failed but we should continue to run') + } + } } catch (Throwable e) { currentBuild.result = 'FAILURE'