TODO forcefail stage
authorStefan Metzmacher <metze@samba.org>
Tue, 16 Apr 2019 13:22:59 +0000 (15:22 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 29 Apr 2019 09:17:14 +0000 (11:17 +0200)
.gitlab-ci.yml
bootstrap/.gitlab-ci.yml

index 01ef8e0e6b91a0496af7ee5d8f78efff26b48af8..90e02c9c7a746907836d6ca841629a97629c52af 100644 (file)
@@ -3,6 +3,7 @@
 stages:
   - images
   - build
+  - forcefail
 
 variables:
   GIT_STRATEGY: fetch
index ac2557719538ad762c348c6f3d6c6073ad7e4772..88d9c2bf9771d2a90b5f31575f60313cfc50ca1f 100644 (file)
@@ -67,6 +67,26 @@ services:
       #
       - $SAMBA_CI_REBUILD_IMAGES == "yes"
 
+#
+# We add allow_failure: true to
+# .build_image_template_force_broken
+#  # doesn't work yet
+#  allow_failure: true
+fail_image_template_force_broken:
+  image: docker:latest
+  stage: forcefail
+  tags:
+    - docker
+  before_script:
+    - uname -a
+    - cat /etc/os-release
+  script:
+    - echo "Force to fail at the end..."
+    - /bin/false
+  only:
+    variables:
+      - $SAMBA_CI_REBUILD_BROKEN_IMAGES == "yes"
+
 .build_image_template_force_broken:
   extends: .build_image_template
   variables: