CI: publish artifacts conly if build is successful stx-8.0.0
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sat, 12 May 2018 05:58:09 +0100
branchstx-8.0.0
changeset 231 9ba1d7cc7c61
parent 230 a9a00961f2b5
child 233 2aff5346b62c
CI: publish artifacts conly if build is successful
ci/steps.groovy
--- a/ci/steps.groovy	Fri May 11 12:10:26 2018 +0100
+++ b/ci/steps.groovy	Sat May 12 05:58:09 2018 +0100
@@ -116,8 +116,10 @@
      * a need to build it itself
      */
     artifacts();
-    input(message: 'Publish artifacts?')
-    publish("8.0.0-rc")
+    println "Smalltalk/X built, job status is: ${currentBuild.result}"
+    if ( currentBuild.result == 'SUCCESS' ) {
+        publish("8.0.0-rc")
+    }
 }
 
 /*