---
sourceDocument: Zurich IT Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/pt-BR/zurich/it-service-management

 Release :

    - zurich

ft:locale :

    - pt-BR

ft:publication_title :

    - Zurich IT Service Management

ft:clusterId :

    - itsm

bundleId :

    - itsm

workflow :

    - Technology


---

# GitLab pipelines com trabalhos paralelos

# GitLab pipelines com trabalhos paralelos {#ariaid-title1}

* Versão de lançamento: Zurich
* 
* Atualizado 31 de jul. de 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

GitLab A imagem do Docker é compatível com a criação de mudanças no GitLab pipelines que contêm trabalhos paralelos.
Nota:  
. GitLab o pipeline tem trabalhos paralelos, é melhor usar o. GitLab Imagem do Docker, em vez de when:manual. Para obter informações detalhadas sobre GitLab Imagem do Docker, consulte [Implemente ações personalizadas para pipelines usando a imagem genérica do contêiner do Docker](https://www.servicenow.com/docs/kQ~05LhlaWVCj2mq~2x~1g "Use ServiceNow Ações personalizadas para coletar dados relacionados à criação de solicitação de mudança, verificação do sonar, registro de artefato e registro de pacote em seu pipeline com a ajuda do genérico Docker Imagem do contêiner.").  
Pipeline yaml de amostra demonstrando trabalhos paralelos:


    image: servicenowdocker/sndevops:3.1.0  # Update docker version per your current version.
    stages:
      - pre-build
      - build
      - test
      - pre-prod
      - prod


    Scan PreProd:
      stage: pre-build
      script:
        - echo $CI_JOB_NAME

    Check policies in PreProd:
      stage: build
      needs: 
        - job: "Scan PreProd"
      script:
        - exit 1  # Simulating a failed test job
      allow_failure: true  # Allow this job to fail without stopping the pipeline

    Check policies in Prod:
      stage: build
      needs: 
        - job: "Scan PreProd"
      script:
        - echo $CI_JOB_NAME

    Deploy App in Test:
      stage: test
      needs: 
        - job: "Scan PreProd"
      script: 
        - echo $CI_JOB_NAME

    Deploy App in PreProd:
      stage: pre-prod
      needs:
        - job: "Deploy App in Test"
        - job: "Check policies in PreProd"
      allow_failure: false
      script:
        - echo $CI_JOB_NAME
        - sndevopscli create change -p "{\"changeStepDetails\":{\"timeout\":3600,\"interval\":100},\"autoCloseChange\":true}"



    Deploy App in Prod:
      stage: prod
      needs:
        - job: "Deploy App in PreProd"
        - job: "Check policies in Prod"
      allow_failure: false
      script:
        - echo $CI_JOB_NAME
        - sndevopscli create change -p "{\"changeStepDetails\":{\"timeout\":3600,\"interval\":100},\"autoCloseChange\":true}"


