Skip to content
Snippets Groups Projects
Commit a1272b6c authored by Corné Lukken's avatar Corné Lukken
Browse files

Prevent duplicate job submissions and detached pipelines

parent 78f660ea
No related branches found
No related tags found
1 merge request!8Convert cookiecutter
Pipeline #59740 waiting for manual action
Pipeline: C++ project

#59741

    ...@@ -24,7 +24,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ ...@@ -24,7 +24,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \
    python3-breathe \ python3-breathe \
    python3-pip \ python3-pip \
    && \ && \
    rm -rf /var/lib/apt/lists/* \ rm -rf /var/lib/apt/lists/*
    RUN python3 -m pip install --upgrade pip RUN python3 -m pip install --upgrade pip
    RUN pip install --upgrade cookiecutter tox twine RUN pip install --upgrade cookiecutter tox twine
    \ No newline at end of file
    ...@@ -4,6 +4,13 @@ ...@@ -4,6 +4,13 @@
    default: default:
    image: $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG image: $CI_REGISTRY_IMAGE/ci-build-runner:$CI_COMMIT_REF_SLUG
    workflow:
    rules:
    # Do not create (detached) pipelines on merge request events
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    when: never
    - when: always
    stages: stages:
    - prepare - prepare
    - linting - linting
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment