We have a three stages pipeline with one manual job in the second stage. And the third stage
needs the second one.
stages: - test - prepare - publish compile-and-test: stage: test script: - echo "Compile and test" prepare-artifacts: stage: prepare script: - echo "Prepare and package compiled sources" when: manual publish-artifacts: stage: publish needs: - prepare-artifacts script: - echo "Publishing prepared artifacts"
With that configuration we are able to manually publish an artifact (more details on https://github.com/gervaisb/gervaisb.github.io/blob/master/Manual_stages_and_dependencies_in_GitLab.md) . However, when we do not trigger the
prepare-artifacts job pipeline remains “Running” forever.
How can we terminate the pipeline when the manual job is not triggered ?