We have a gitlab ci pipeline which has multiple stages and jobs. First, I have a config push stage and I have a job that sends config to 6 different clusters. Then I have many different stages for deployment. In the last stage, I have a stage that notifies the slack channel. It has 2 different jobs.
What I want to do is exactly this:
After running any of the 3 specific config push jobs on the first stage, I want to auto-trigger the slack notification jobs on the announce stage.
Any job marked with green in the config-push stage visible in the drawing should auto-trigger both jobs in the announce slack.
my announce-slack job is :
slack-config-push-announce:
stage: announce
extends: .slack_announce
only:
- master
variables:
EMOJI_LEFT: ":config-push:"
EMOJI_RIGHT: ":config-push:"
MESSAGE: "Config Push"
GITLAB_SLACK_DEPLOY_CHANNEL: $GITLAB_SLACK_DEPLOY_CHANNEL
Also, when I trigger any of the config push jobs for the 2nd time, I want the announce jobs to run again, but it doesn't trigger again because it works once.
thanks in advance for the help...