Skip to content

Webhook cause duplicate jobs and enable shell-executor

Hi,

I am trying to use AWS CodeBuild as the runner for gitlab, I checked a few links:

It basically works, but for an unknow reason:

  • There are 2 jobs created, not just 1
  • The job for the webhook is in stage external even though I never defined it
  • The first of the 2 jobs is in fact using shell-executor which shouldn't be enabled (without the webhook, the pipeline is stuck and won't use the shell-executor)
workflow:
  name: HelloWorld

stages:
  - build

build-job:
  stage: build
  script:
    - echo "Hello World"
  tags:
    - codebuild-test-gitlab-runners-$CI_PROJECT_ID-$CI_PIPELINE_IID-$CI_JOB_NAME

image image

Do you know why it happens ?

Edited by David Gallay