并行停止 运行 个作业 Gitlab CI

Stop running jobs in parallel Gitlab CI

有没有办法在 gitlab CI 中并行停止作业 运行? 我的 gitlab-ci.yml 文件是:

image: google/cloud-sdk:slim

stages: 
  - deploy

before_script:
  - echo $ENVIRONMENT
  - gcloud auth activate-service-account --key-file $GOOGLE_SERVICE_ACCOUNT_FILE
  - gcloud config set project $GOOGLE_PROJECT_ID

deploy_website:
  stage: deploy
  script:
    - sed -i -e 's/https:\/\/us-central1-ahinko-website.cloudfunctions.net\/send_contact'/$GOOGLE_CLOUD_FUNCTION_EMAIL_URL'/g' src/client-side/js/custom-script.js
    - gsutil -m rm $GOOGLE_CLOUD_BUCKET/**
    - gsutil -m cp -R src/client-side/* $GOOGLE_CLOUD_BUCKET
  environment:
    name: $ENVIRONMENT

deploy_cloud_function: 
  stage: deploy
  script:
    - gcloud functions deploy send_contact --entry-point=send_contact_form --ingress-settings=all --runtime=python37 --source=src/server-side/cf-send-email/ --trigger-http
  when: on_success
  environment:
    name: $ENVIRONMENT

两者并行运行,我不希望以这种方式..

使用阶段:它们将按照stages声明中定义的顺序执行。

image: google/cloud-sdk:slim

stages: 
  - deploy
  - cloud

before_script:
  - echo $ENVIRONMENT
  - gcloud auth activate-service-account --key-file $GOOGLE_SERVICE_ACCOUNT_FILE
  - gcloud config set project $GOOGLE_PROJECT_ID

deploy_website:
  stage: deploy
  script:
    - sed -i -e 's/https:\/\/us-central1-ahinko-website.cloudfunctions.net\/send_contact'/$GOOGLE_CLOUD_FUNCTION_EMAIL_URL'/g' src/client-side/js/custom-script.js
    - gsutil -m rm $GOOGLE_CLOUD_BUCKET/**
    - gsutil -m cp -R src/client-side/* $GOOGLE_CLOUD_BUCKET
  environment:
    name: $ENVIRONMENT

deploy_cloud_function: 
  stage: cloud
  script:
    - gcloud functions deploy send_contact --entry-point=send_contact_form --ingress-settings=all --runtime=python37 --source=src/server-side/cf-send-email/ --trigger-http
  when: on_success
  environment:
    name: $ENVIRONMENT