Skip to content
Snippets Groups Projects
Verified Commit f05483f7 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

PIPELINE

parent 463f880b
Branches
Tags
2 merge requests!42Release 0.2.0,!41F octave logging
Checking pipeline status
...@@ -25,6 +25,7 @@ variables: ...@@ -25,6 +25,7 @@ variables:
CPPINTTEST_BRANCHES: https://gitlab.indiscale.com/api/v4/projects/111/repository/branches CPPINTTEST_BRANCHES: https://gitlab.indiscale.com/api/v4/projects/111/repository/branches
OCTAVELIB_BRANCHES: https://gitlab.indiscale.com/api/v4/projects/117/repository/branches OCTAVELIB_BRANCHES: https://gitlab.indiscale.com/api/v4/projects/117/repository/branches
JULIALIB_BRANCHES: https://gitlab.indiscale.com/api/v4/projects/116/repository/branches
GIT_SUBMODULE_STRATEGY: normal GIT_SUBMODULE_STRATEGY: normal
## FOR DEBUGGING ## FOR DEBUGGING
...@@ -115,25 +116,34 @@ trigger_prepare: ...@@ -115,25 +116,34 @@ trigger_prepare:
else else
OCTAVELIB_REF=$CI_COMMIT_REF_NAME ; OCTAVELIB_REF=$CI_COMMIT_REF_NAME ;
fi; fi;
if curl -o /dev/null -s -w "%{http_code}" $JULIALIB_BRANCHES/$CI_COMMIT_REF_NAME | grep "404"; then
JULIALIB_REF=dev ;
else
JULIALIB_REF=$CI_COMMIT_REF_NAME ;
fi;
fi; fi;
# ... or use main if possible... # ... or use main if possible...
- if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then - if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
CPPINT_REF=main ; CPPINT_REF=main ;
OCTAVELIB_REF=main ; OCTAVELIB_REF=main ;
JULIALIB_REF=main
F_BRANCH=main ; F_BRANCH=main ;
fi fi
- if echo "$CI_COMMIT_REF_NAME" | grep -c "^v" ; then - if echo "$CI_COMMIT_REF_NAME" | grep -c "^v" ; then
CPPINT_REF=main ; CPPINT_REF=main ;
OCTAVELIB_REF=main ; OCTAVELIB_REF=main ;
JULIALIB_REF=main ;
F_BRANCH=main ; F_BRANCH=main ;
fi fi
# ... and fall-back to dev # ... and fall-back to dev
- CPPINT_REF=${CPPINT_REF:-dev} - CPPINT_REF=${CPPINT_REF:-dev}
- OCTAVELIB_REF=${OCTAVELIB_REF:-dev} - OCTAVELIB_REF=${OCTAVELIB_REF:-dev}
- JULIALIB_REF=${JULIALIB_REF:-dev}
# Write to dotenv # Write to dotenv
- echo "CPPINT_REF=${CPPINT_REF}" >> "$DOTENV" - echo "CPPINT_REF=${CPPINT_REF}" >> "$DOTENV"
- echo "OCTAVELIB_REF=${OCTAVELIB_REF}" >> "$DOTENV" - echo "OCTAVELIB_REF=${OCTAVELIB_REF}" >> "$DOTENV"
- echo "JULIALIB_REF=${JULIALIB_REF}" >> "$DOTENV"
- echo "F_BRANCH=${F_BRANCH}" >> "$DOTENV" - echo "F_BRANCH=${F_BRANCH}" >> "$DOTENV"
- cat "$DOTENV" - cat "$DOTENV"
artifacts: artifacts:
...@@ -181,6 +191,24 @@ trigger_octavelib: ...@@ -181,6 +191,24 @@ trigger_octavelib:
project: caosdb/src/caosdb-octavelib project: caosdb/src/caosdb-octavelib
branch: $OCTAVELIB_REF branch: $OCTAVELIB_REF
trigger_julialib:
stage: deploy
needs: [ trigger_prepare ]
inherit:
variables:
# List the variables that shall be inherited, which also means they will override any equally
# named varibles in child pipelines.
- TRIGGERED_BY_REPO
- TRIGGERED_BY_REF
- TRIGGERED_BY_HASH
- CPPLIB_REGISTRY_IMAGE
variables:
# dotenv variables must be set again here.
F_BRANCH: $F_BRANCH
trigger:
project: caosdb/src/caosdb-julialib
branch: $JULIALIB_REF
# Build the sphinx documentation and make it ready for deployment by Gitlab Pages # Build the sphinx documentation and make it ready for deployment by Gitlab Pages
# Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages # Special job for serving a static website. See https://docs.gitlab.com/ee/ci/yaml/README.html#pages
.pages_prepare: &pages_prepare .pages_prepare: &pages_prepare
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment