stages: - build job-a: stage: build script: - echo a needs: - job-b job-b: stage: build script: - echo b needs: - job-a