From 98adb8895bc56fb9a7771bdf5e9481cd1538aa28 Mon Sep 17 00:00:00 2001
From: joan <jvallve@iri.upc.edu>
Date: Fri, 3 Dec 2021 10:43:40 +0100
Subject: [PATCH] random branch name

---
 .gitlab-ci.yml | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ef04416a4..7383cf8b8 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,9 @@
+stages:
+  - license
+  - build_and_test
+  - deploy
+  - final
+
 ############ YAML ANCHORS ############
 .preliminaries_template: &preliminaries_definition
   ## Install ssh-agent if not already installed, it is required by Docker.
@@ -24,7 +30,8 @@
   - cd $CI_PROJECT_DIR
 
   # configure git
-  - export CI_NEW_BRANCH=ci_processing$CI_COMMIT_SHORT_SHA
+  - export CI_NEW_BRANCH=ci_processing$RANDOM
+  - echo creating new temporary branch... $CI_NEW_BRANCH
   - git config --global user.email "${CI_EMAIL}"
   - git config --global user.name "${CI_USERNAME}"
   - git checkout -b $CI_NEW_BRANCH # temporary branch
@@ -67,12 +74,7 @@
   - ../bin/hello_wolf_autoconf
   - make install
 
-stages:
-  - license
-  - build_and_test
-  - deploy
-  - final
-
+############ LICENSE HEADERS ############
 license_header:
   stage: license
   image: labrobotica/wolf_deps:16.04
@@ -81,6 +83,7 @@ license_header:
   script: 
     - *license_header_definition
 
+############ UBUNTU 16.04 TESTS ############
 build_and_test:xenial:
   stage: build_and_test
   image: labrobotica/wolf_deps:16.04
@@ -89,6 +92,7 @@ build_and_test:xenial:
   script:
     - *build_and_test_definition
 
+############ UBUNTU 18.04 TESTS ############
 build_and_test:bionic:
   stage: build_and_test
   image: labrobotica/wolf_deps:18.04
@@ -97,6 +101,7 @@ build_and_test:bionic:
   script:
     - *build_and_test_definition
 
+############ DEPLOY PLUGINS ############
 deploy_imu:
   stage: deploy
   variables:
@@ -145,7 +150,8 @@ deploy_bodydynamics:
     project: mobile_robotics/wolf_projects/wolf_lib/plugins/bodydynamics
     strategy: depend
 
+############ WAIT FOR PLUGINS ############
 final_all:
   stage: final
   script:
-    - echo "ALL PLUGINS PIPELINES SUCCEED!!!"
\ No newline at end of file
+    - echo "ALL PLUGINS PIPELINES SUCCEED!!!"
-- 
GitLab