Skip to content
Snippets Groups Projects
Commit 52081b05 authored by florian's avatar florian
Browse files

FIX: Trigger Int Tests in dev if there is no matching f branch

parent 91220699
No related branches found
No related tags found
2 merge requests!14ENH: New functions getEnumNameFromValue() and getEnumValueFromName(),!12F consolidation
Pipeline #12267 passed
Pipeline: caosdb-cppinttest

#12269

    ......@@ -24,6 +24,7 @@ variables:
    CPPLIB_REGISTRY_IMAGE: $CI_REGISTRY/caosdb/src/caosdb-cpplib/testenv:$CI_COMMIT_REF_NAME
    CPPINTTEST_PIPELINE: https://gitlab.indiscale.com/api/v4/projects/111/trigger/pipeline
    CPPINTTEST_BRANCHES: https://gitlab.indiscale.com/api/v4/projects/111/repository/branches
    GIT_SUBMODULE_STRATEGY: normal
    ## FOR DEBUGGING
    ......@@ -101,8 +102,13 @@ trigger_inttest:
    # ... use an f-branch if posible...
    - F_BRANCH=dev
    - if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
    CPPINT_REF=$CI_COMMIT_REF_NAME ;
    F_BRANCH=$CI_COMMIT_REF_NAME ;
    if curl -o /dev/null -s -w "%{http_code}" $CPPINTTEST_BRANCHES/$CI_COMMIT_REF_NAME | grep "404"; then
    CPPINT_REF=dev ;
    F_BRANCH=dev ;
    else
    CPPINT_REF=$CI_COMMIT_REF_NAME ;
    F_BRANCH=$CI_COMMIT_REF_NAME ;
    fi
    fi;
    # ... or use main if possible...
    - if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment