diff --git a/.gitlab-ci/default.yml b/.gitlab-ci/default.yml index d43d7898cc2ae30e2be8805739277f6844a14498..4aa22c270e8d13bf69c06f25f2edd182ae069cf8 100644 --- a/.gitlab-ci/default.yml +++ b/.gitlab-ci/default.yml @@ -10,9 +10,10 @@ workflow: rules: - if: $CI_PIPELINE_SOURCE=="parent_pipeline" +# variables that may be overwritten by the trigger variables: - TRIGGER_SOURCE: "unknown" - MR_TARGET_BRANCH_NAME: "master" + TRIGGER_SOURCE: "undefined" + MR_TARGET_BRANCH_NAME: "undefined" select tests: stage: configure @@ -20,7 +21,7 @@ select tests: - | dunecontrol --opts=$DUNE_OPTS_FILE --current all if [[ "$TRIGGER_SOURCE" == "merge_request_event" ]]; then - echo "Detecting changes w.r.t to branch $MR_TARGET_BRANCH_NAME" + echo "Detecting changes w.r.t to target branch '$MR_TARGET_BRANCH_NAME'" python3 bin/testing/getchangedfiles.py -o changedfiles.txt -t origin/$MR_TARGET_BRANCH_NAME python3 bin/testing/findtests.py -o affectedtests.json --file-list changedfiles.txt --build-dir build-cmake else