[Resolved] Job exit code 1 everytime at the end of script

Hello,

I have a big problem with my gitlab ci which exit code 1 when run a script.
The script never return error code and it works well.

My runner is a docker runner.

My gitlab-ci.yaml:

image: ubuntu:16.04

# SSH connect
before_script:
  - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client git -y )'
  - eval $(ssh-agent -s)
  - echo -n "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null
  - mkdir -p ~/.ssh
  - chmod 700 ~/.ssh
  - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
  - chmod 644 ~/.ssh/known_hosts

stages:
  - dependencies
  - build

cache:
  paths:
    - cots

deps:
  stage: dependencies
  script:
    - HERE="$PWD"
    - mkdir -p cots_sources
    - cd cots_sources
# Dépendances system
    - apt update && apt upgrade -y
    - apt install -y wget git sudo lbzip2
# Boost
    - wget --output-document=boost.1.61.tar.bz2  https://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.bz2/download -nv
    - tar xf boost.1.61.tar.bz2
# JSONCPP
    - wget --output-document=jsoncpp-1.7.2.tar.gz https://github.com/open-source-parsers/jsoncpp/archive/1.7.2.tar.gz -nv
    - tar xf jsoncpp-1.7.2.tar.gz
# LOGX
    - git clone git@xxx.com:/LOGX/LOGX.git
    - cd LOGX && git checkout 1.2.1 && cd ..
# EPY
    - git clone git@yyy.com:EPY/EPY.git
    - cd EPY && git checkout 1.2.1 && cd ..
# BuildCV
    - git clone git@vvv.com:VVV/BuildCV.git
    - cd BuildCV && git checkout develop && cd ..
# AVDU
    - git clone git@uuu.com:UUU/libAVDU.git
    - cp -ar BuildCV/. libAVDU/common && cd libAVDU && git checkout master && cd ..
# Script de compilation des dépendances
    - cd $HERE
    - /bin/bash build/scripts/build-deps.sh -a -d $HERE/cots_sources -o $HERE/cots -j 4
# Lancement manuel
  when: manual
# Création d'un artefact
  artifacts:
    paths:
      - cots

compile:
  stage: build
  variables:
    CI_DEBUG_TRACE: "true"
  # Script de compilation des dépendances
  script:
    - apt update && apt upgrade -y
    - apt install -y sudo 
    - /bin/bash build/scripts/build-deps.sh -a
    - git submodule init
    - git submodule update
    - . ./common/config.sh -r cots -v
    - ./common/build.sh -j 4 -v -V -i cots -g carit

This is the debug output of the runner when it run the line “. ./common/config.sh -r cots -v”:

+++ '[' /bin/bash = ./common/config.sh ']'
++++ dirname ./common/config.sh
+++ HERE=./common
+++ [[ -n '' ]]
+++ export AVDOLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ AVDOLD_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export AVDOLD_LD_LIBRARY_PATH=
+++ AVDOLD_LD_LIBRARY_PATH=
++++ readlink -m ./common/..
+++ export AVDU_DEV_ROOT=/builds/GT-BARQUE/XSAF
+++ AVDU_DEV_ROOT=/builds/GT-BARQUE/XSAF
+++ export JAVA_HOME=/usr/java/jre1.6.0_37
+++ JAVA_HOME=/usr/java/jre1.6.0_37
+++ export PATH=/usr/java/jre1.6.0_37/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ PATH=/usr/java/jre1.6.0_37/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ export JDK_HOME=/usr/java/jdk1.6.0_37
+++ JDK_HOME=/usr/java/jdk1.6.0_37
+++ cots_global=./common/../../COTS
+++ '[' '!' -d ./common/../../COTS ']'
+++ cots_global=/data/COTS
+++ export AVDU_COTS_GLOBAL=/data/COTS
+++ AVDU_COTS_GLOBAL=/data/COTS
++++ getopt -o hl:p:r:v --long help,local,platform,root,verbose: -n parse-options -- -r cots -v
+++ OPTS=' -r '\''cots'\'' -v --'
+++ '[' 0 '!=' 0 ']'
+++ eval set -- ' -r '\''cots'\'' -v --'
++++ set -- -r cots -v --
+++ cots_local=()
+++ verbose=0
+++ AVDU_PLATFORM=
+++ true
+++ case "$1" in
+++ cots_global=cots
+++ shift 2
+++ true
+++ case "$1" in
+++ verbose=1
+++ shift
+++ true
+++ case "$1" in
+++ shift
+++ break
++++ readlink -m cots
+++ cots_global=/builds/GT-BARQUE/XSAF/cots
+++ '[' '!' -d /builds/GT-BARQUE/XSAF/cots ']'
+++ '[' -z ']'
+++ [[ -f /etc/redhat-release ]]
+++ regex_ubuntu='Ubuntu ([0-9][0-9]\.[0-9][0-9])'
++++ cat /etc/issue
+++ [[ Ubuntu 16.04.4 LTS \n \l =~ Ubuntu ([0-9][0-9]\.[0-9][0-9]) ]]
+++ version=16.04
+++ AVDU_PLATFORM=ubuntu-16.04
+++ echo 'Plateforme : Ubuntu 16.04 (ubuntu-16.04)'
Plateforme : Ubuntu 16.04 (ubuntu-16.04)
+++ '[' -z ubuntu-16.04 ']'
+++ export AVDU_PLATFORM
+++ export PATH=/builds/GT-BARQUE/XSAF/build/bin/Release:/usr/java/jre1.6.0_37/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ PATH=/builds/GT-BARQUE/XSAF/build/bin/Release:/usr/java/jre1.6.0_37/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+++ [[ ubuntu-16.04 == \c\e\n\t\o\s\-\6\.\7 ]]
+++ '[' -e /opt/rh/python27/enable ']'
+++ flag_verbose=
+++ [[ 1 == 1 ]]
+++ flag_verbose=-v
+++ flag_local=
+++ . ./common/cots_config.sh -r /builds/GT-BARQUE/XSAF/cots -p ubuntu-16.04 -v
++++ '[' /bin/bash = ./common/cots_config.sh ']'
+++++ getopt -o hl:p:r:v --long help,local,platform,root,verbose: -n parse-options -- -r /builds/GT-BARQUE/XSAF/cots -p ubuntu-16.04 -v
++++ OPTS=' -r '\''/builds/GT-BARQUE/XSAF/cots'\'' -p '\''ubuntu-16.04'\'' -v --'
++++ '[' 0 '!=' 0 ']'
++++ eval set -- ' -r '\''/builds/GT-BARQUE/XSAF/cots'\'' -p '\''ubuntu-16.04'\'' -v --'
+++++ set -- -r /builds/GT-BARQUE/XSAF/cots -p ubuntu-16.04 -v --
++++ cots_local=()
++++ verbose=0
++++ true
++++ case "$1" in
++++ cots_global=/builds/GT-BARQUE/XSAF/cots
++++ shift 2
++++ true
++++ case "$1" in
++++ platform=ubuntu-16.04
++++ shift 2
++++ true
++++ case "$1" in
++++ verbose=1
++++ shift
++++ true
++++ case "$1" in
++++ shift
++++ break
++++ [[ -z ubuntu-16.04 ]]
++++ [[ -z /builds/GT-BARQUE/XSAF/cots ]]
+++++ readlink -m /builds/GT-BARQUE/XSAF/cots
++++ cots_global=/builds/GT-BARQUE/XSAF/cots
++++ '[' '!' -d /builds/GT-BARQUE/XSAF/cots ']'
++++ declare -A cots_asked
++++ declare -A cots_version_map
++++ declare -A cots_path_map
++++ declare -A cots_group_map
++++ declare -A cots_priority
++++ priority=0
++++ get_cots /builds/GT-BARQUE/XSAF/cots 0
++++ local cots_base=/builds/GT-BARQUE/XSAF/cots
++++ local priority=0
++++ declare -A group_map
+++++ find /builds/GT-BARQUE/XSAF/cots -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
++++ for cots_group in '$(find "$cots_base" -mindepth 1 -maxdepth 1 -type d -printf "%f\n")'
++++ local cots_root=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04
++++ '[' '!' -d /builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04 ']'
++++ group_map[$cots_group]=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04
++++ for cots_group in '$(find "$cots_base" -mindepth 1 -maxdepth 1 -type d -printf "%f\n")'
++++ local cots_root=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04
++++ '[' '!' -d /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04 ']'
++++ group_map[$cots_group]=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04
++++ for cots_group in '$(find "$cots_base" -mindepth 1 -maxdepth 1 -type d -printf "%f\n")'
++++ local cots_root=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04
++++ '[' '!' -d /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04 ']'
++++ group_map[$cots_group]=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04
++++ for cots_group in '"${!group_map[@]}"'
++++ local cots_root=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04
++++ local 'regex=([a-zA-Z0-9_]+)-(.*)'
++++ read line
+++++ find /builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04 -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
++++ [[ AVDU-2.6.8 =~ ([a-zA-Z0-9_]+)-(.*) ]]
++++ local cots=AVDU
++++ local version=2.6.8
++++ local cots_path=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8
+++++ echo 2.6.8
+++++ sed -e 's/[^a-zA-Z0-9]/_/g'
++++ local cleaned_version=2_6_8
++++ export AVDU_2_6_8_ROOT=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8
++++ AVDU_2_6_8_ROOT=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib ']'
++++ local dynlib_list=
++++ local 'regex_lib=lib(.*)\.so'
++++ read dynlib
+++++ find /builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib -mindepth 1 -maxdepth 1 -type f -o -type l -name 'lib*.so' -printf '%f\n'
++++ export AVDU_LIBNAMES=
++++ AVDU_LIBNAMES=
++++ local update=0
++++ '[' '!' ']'
++++ update=1
++++ [[ 1 == 1 ]]
++++ cots_version_map[$cots]=2.6.8
++++ cots_path_map[$cots]=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8
++++ cots_group_map[$cots]=adada
++++ cots_priority[$cots]=0
++++ export AVDU_ROOT=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8
++++ AVDU_ROOT=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8
++++ read line
++++ for cots_group in '"${!group_map[@]}"'
++++ local cots_root=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04
++++ local 'regex=([a-zA-Z0-9_]+)-(.*)'
++++ read line
+++++ find /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04 -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
++++ [[ epy-1.2.1 =~ ([a-zA-Z0-9_]+)-(.*) ]]
++++ local cots=epy
++++ local version=1.2.1
++++ local cots_path=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1
+++++ echo 1.2.1
+++++ sed -e 's/[^a-zA-Z0-9]/_/g'
++++ local cleaned_version=1_2_1
++++ export epy_1_2_1_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1
++++ epy_1_2_1_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1/lib ']'
++++ local dynlib_list=
++++ local 'regex_lib=lib(.*)\.so'
++++ read dynlib
+++++ find /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1/lib -mindepth 1 -maxdepth 1 -type f -o -type l -name 'lib*.so' -printf '%f\n'
++++ export epy_LIBNAMES=
++++ epy_LIBNAMES=
++++ local update=0
++++ '[' '!' ']'
++++ update=1
++++ [[ 1 == 1 ]]
++++ cots_version_map[$cots]=1.2.1
++++ cots_path_map[$cots]=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1
++++ cots_group_map[$cots]=carit
++++ cots_priority[$cots]=0
++++ export epy_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1
++++ epy_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1
++++ read line
++++ [[ logx-1.2.1 =~ ([a-zA-Z0-9_]+)-(.*) ]]
++++ local cots=logx
++++ local version=1.2.1
++++ local cots_path=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1
+++++ echo 1.2.1
+++++ sed -e 's/[^a-zA-Z0-9]/_/g'
++++ local cleaned_version=1_2_1
++++ export logx_1_2_1_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1
++++ logx_1_2_1_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib ']'
++++ local dynlib_list=
++++ local 'regex_lib=lib(.*)\.so'
++++ read dynlib
+++++ find /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib -mindepth 1 -maxdepth 1 -type f -o -type l -name 'lib*.so' -printf '%f\n'
++++ export logx_LIBNAMES=
++++ logx_LIBNAMES=
++++ local update=0
++++ '[' '!' ']'
++++ update=1
++++ [[ 1 == 1 ]]
++++ cots_version_map[$cots]=1.2.1
++++ cots_path_map[$cots]=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1
++++ cots_group_map[$cots]=carit
++++ cots_priority[$cots]=0
++++ export logx_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1
++++ logx_ROOT=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1
++++ read line
++++ for cots_group in '"${!group_map[@]}"'
++++ local cots_root=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04
++++ local 'regex=([a-zA-Z0-9_]+)-(.*)'
++++ read line
+++++ find /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04 -mindepth 1 -maxdepth 1 -type d -printf '%f\n'
++++ [[ boost-1.61.0 =~ ([a-zA-Z0-9_]+)-(.*) ]]
++++ local cots=boost
++++ local version=1.61.0
++++ local cots_path=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0
+++++ echo 1.61.0
+++++ sed -e 's/[^a-zA-Z0-9]/_/g'
++++ local cleaned_version=1_61_0
++++ export BOOST_1_61_0_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0
++++ BOOST_1_61_0_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0/lib ']'
++++ local dynlib_list=
++++ local 'regex_lib=lib(.*)\.so'
++++ read dynlib
+++++ find /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0/lib -mindepth 1 -maxdepth 1 -type f -o -type l -name 'lib*.so' -printf '%f\n'
++++ export BOOST_LIBNAMES=
++++ BOOST_LIBNAMES=
++++ local update=0
++++ '[' '!' ']'
++++ update=1
++++ [[ 1 == 1 ]]
++++ cots_version_map[$cots]=1.61.0
++++ cots_path_map[$cots]=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0
++++ cots_group_map[$cots]=opensource
++++ cots_priority[$cots]=0
++++ export BOOST_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0
++++ BOOST_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0
++++ read line
++++ [[ jsoncpp-1.7.2 =~ ([a-zA-Z0-9_]+)-(.*) ]]
++++ local cots=jsoncpp
++++ local version=1.7.2
++++ local cots_path=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2
+++++ echo 1.7.2
+++++ sed -e 's/[^a-zA-Z0-9]/_/g'
++++ local cleaned_version=1_7_2
++++ export JSONCPP_1_7_2_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2
++++ JSONCPP_1_7_2_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2/lib ']'
++++ local dynlib_list=
++++ local 'regex_lib=lib(.*)\.so'
++++ read dynlib
+++++ find /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2/lib -mindepth 1 -maxdepth 1 -type f -o -type l -name 'lib*.so' -printf '%f\n'
++++ export JSONCPP_LIBNAMES=
++++ JSONCPP_LIBNAMES=
++++ local update=0
++++ '[' '!' ']'
++++ update=1
++++ [[ 1 == 1 ]]
++++ cots_version_map[$cots]=1.7.2
++++ cots_path_map[$cots]=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2
++++ cots_group_map[$cots]=opensource
++++ cots_priority[$cots]=0
++++ export JSONCPP_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2
++++ JSONCPP_ROOT=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2
++++ read line
++++ for cots_root in '"$cots_global"' '"${cots_local:-}"'
+++++ echo adada carit carit opensource opensource
+++++ tr ' ' '\n'
+++++ sort -u
++++ for cots_group in '$(echo ${cots_group_map[@]} | tr '\'' '\'' '\''\n'\'' | sort -u)'
++++ config_path=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/config_spec.sh
++++ '[' -f /builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/config_spec.sh ']'
++++ for cots_group in '$(echo ${cots_group_map[@]} | tr '\'' '\'' '\''\n'\'' | sort -u)'
++++ config_path=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/config_spec.sh
++++ '[' -f /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/config_spec.sh ']'
++++ for cots_group in '$(echo ${cots_group_map[@]} | tr '\'' '\'' '\''\n'\'' | sort -u)'
++++ config_path=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/config_spec.sh
++++ '[' -f /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/config_spec.sh ']'
++++ for cots_root in '"$cots_global"' '"${cots_local:-}"'
+++++ echo adada carit carit opensource opensource
+++++ tr ' ' '\n'
+++++ sort -u
++++ for cots_group in '$(echo ${cots_group_map[@]} | tr '\'' '\'' '\''\n'\'' | sort -u)'
++++ config_path=/adada/ubuntu-16.04/config_spec.sh
++++ '[' -f /adada/ubuntu-16.04/config_spec.sh ']'
++++ for cots_group in '$(echo ${cots_group_map[@]} | tr '\'' '\'' '\''\n'\'' | sort -u)'
++++ config_path=/carit/ubuntu-16.04/config_spec.sh
++++ '[' -f /carit/ubuntu-16.04/config_spec.sh ']'
++++ for cots_group in '$(echo ${cots_group_map[@]} | tr '\'' '\'' '\''\n'\'' | sort -u)'
++++ config_path=/opensource/ubuntu-16.04/config_spec.sh
++++ '[' -f /opensource/ubuntu-16.04/config_spec.sh ']'
++++ for cots in '"${!cots_path_map[@]}"'
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib ']'
++++ LD_LIBRARY_PATH=/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib:
++++ for cots in '"${!cots_path_map[@]}"'
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib ']'
++++ LD_LIBRARY_PATH=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib:
++++ for cots in '"${!cots_path_map[@]}"'
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1/lib ']'
++++ LD_LIBRARY_PATH=/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib:
++++ for cots in '"${!cots_path_map[@]}"'
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2/lib ']'
++++ LD_LIBRARY_PATH=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2/lib:/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib:
++++ for cots in '"${!cots_path_map[@]}"'
++++ '[' -d /builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0/lib ']'
++++ LD_LIBRARY_PATH=/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/boost-1.61.0/lib:/builds/GT-BARQUE/XSAF/cots/opensource/ubuntu-16.04/jsoncpp-1.7.2/lib:/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/epy-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/carit/ubuntu-16.04/logx-1.2.1/lib:/builds/GT-BARQUE/XSAF/cots/adada/ubuntu-16.04/AVDU-2.6.8/lib:
++++ export LD_LIBRARY_PATH
++++ '[' 1 == 1 ']'
++++ echo 'COTS detectes :'
COTS detectes :
++++ for cots in '"${!cots_version_map[@]}"'
++++ priority=
++++ [[ 0 -eq 1 ]]
++++ [[ 0 -gt 1 ]]
++++ echo '- AVDU 2.6.8 [adada] '
++++ for cots in '"${!cots_version_map[@]}"'
++++ priority=
++++ [[ 0 -eq 1 ]]
++++ [[ 0 -gt 1 ]]
++++ echo '- logx 1.2.1 [carit] '
++++ for cots in '"${!cots_version_map[@]}"'
++++ priority=
++++ sort
++++ [[ 0 -eq 1 ]]
++++ [[ 0 -gt 1 ]]
++++ echo '- epy 1.2.1 [carit] '
++++ for cots in '"${!cots_version_map[@]}"'
++++ priority=
++++ [[ 0 -eq 1 ]]
++++ [[ 0 -gt 1 ]]
++++ echo '- jsoncpp 1.7.2 [opensource] '
++++ for cots in '"${!cots_version_map[@]}"'
++++ priority=
++++ [[ 0 -eq 1 ]]
++++ [[ 0 -gt 1 ]]
++++ echo '- boost 1.61.0 [opensource] '
- AVDU 2.6.8 [adada] 
- boost 1.61.0 [opensource] 
- epy 1.2.1 [carit] 
- jsoncpp 1.7.2 [opensource] 
- logx 1.2.1 [carit] 
++++ unset cots_asked
++++ unset cots_version_map
++++ unset cots_path_map
++++ unset cots_group_map
++++ unset cots_priority
+++ completion_path=/builds/GT-BARQUE/XSAF/common/completion/completion.sh
+++ [[ -f /builds/GT-BARQUE/XSAF/common/completion/completion.sh ]]
+++ . /builds/GT-BARQUE/XSAF/common/completion/completion.sh
+++ complete -F _alta_clean -o filenames clean.sh
+++ complete -F _alta_build -o filenames build.sh
++++ find /builds/GT-BARQUE/XSAF/build/bin/Debug /builds/GT-BARQUE/XSAF/build/bin/Release /builds/GT-BARQUE/XSAF/build/tests/Debug /builds/GT-BARQUE/XSAF/build/tests/Release -type f
+++ exe_list=
+ set -eo pipefail
+ set +o noclobber
+ :
+ eval ''
+ exit 0
ERROR: Job failed: exit code 1

The last command is “exit 0” and the runner terminate with exit code 1. I don’t understand why.

Thank you for your help.

Hello,

To test and discard, I would comment on this line, it is possible that there was a change of directory (cd) and when returning to that line the runner does not find that script.

the second test, would be to add this line to print the error code

- ./common/build.sh -j 4 -v -V -i cots -g carit
- echo "error code -> $?"

Thank you for your help but the problem was in my “config.sh” script. An useless part of script.

I don’t understand why, perhaps an bad environment variable init. But now, I comment this part and it works fine.