From ee33b66afe232cb534a021a5e81087e8efbd9a50 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Thu, 28 Feb 2019 15:45:24 +0100
Subject: [PATCH] [Jenkins] Mark build as unstable if build jobs were skipped.

Helps to identify that not everything was built. Prevents empty
artifacts when browsing to
https://jenkins.opengeosys.org/job/ufz/job/ogs/job/master/lastSuccessfulBuild/artifact/
---
 Jenkinsfile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 44bbf10b8c8..6687580a6c4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -77,6 +77,9 @@ pipeline {
               }
             }
           }
+          if(!stage_required.build || !stage_required.full) {
+            currentBuild.result='UNSTABLE'
+          }
         }
       }
       // Mark build as NOT_BUILT when [ci skip] commit message was found
-- 
GitLab