Hiding on_stop jobs from normal pipeline view

So I’m trying to figure out if there is a way to hide a job AND use it for on_stop actions. It seems like it doesn’t find it if I use a . before the job name. And it will show up in the normal pipeline as a job / manual run if I don’t.

Is there any way to hide this from view, UNLESS the on_stop action is called via the environments tab.

Hi @jwhittem-spireon

Jobs that start with a . are templates that can be reused, so you might have something like:

.deploy: &deploy
    stage: deploy
    ...

deploy:staging:
    <<: *deploy
    ...

deploy:production
    <<: *deploy
    ...

I don’t believe that there’s a way to hide a job from view like this, unless you can do something with CI_PIPELINE_SOURCE to ensure that the job only runs if it’s triggered by an event outside the normal pipeline.

I have the same issue, it should not be visible. For some reason, the whole pipeline ends up as “Blocked” despite it deploying successfully…