ci: added echo to highlight the current branch

This commit is contained in:
2024-05-13 12:52:36 +02:00
parent 53fda6fdca
commit 68b593f20d

View File

@ -5,7 +5,7 @@ image: $CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX/python:3.10
variables:
BEC_CORE_BRANCH: "main"
CHILD_PIPELINE_BRANCH: "main"
CHILD_PIPELINE_BRANCH: $CI_DEFAULT_BRANCH
CSAXS_BEC_BRANCH: "main"
PXIII_BEC_BRANCH: "main"
DEBYE_BEC_BRANCH: "main"
@ -38,7 +38,8 @@ include:
#commands to run in the Docker container before starting each job.
before_script:
- if [[ "$CI_PROJECT_PATH" != "bec/ophyd_devices" ]]; then
- if [[ "$CI_PROJECT_PATH" != "bec/ophyd_devices" ]]; then
echo -e "\033[35;1m Using branch $CHILD_PIPELINE_BRANCH of Ophyd Devices \033[0;m";
test -d ophyd_devices || git clone --branch $CHILD_PIPELINE_BRANCH https://gitlab.psi.ch/bec/ophyd_devices.git; cd ophyd_devices;
fi
- pip install -e .[dev]