GitLab父子管道连接器故障

时间:2020-08-10 09:24:14

标签: git continuous-integration gitlab gitlab-ci

我试图在GitLab CE上构建使用父子功能的CI / CD管道,从功能的角度来看结果还可以,但是我发现有些奇怪的GUI错误是由某些错误的yml引起的就我而言。我查看了文档并基本上使用了它们的代码,我准备插入脚本并从那里扩展,但是基本的文档示例也有问题。有没有人遇到过类似的问题?看起来是这样的: enter image description here

代码: .gitlab-ci.yml

    stages:
        - build
        - test
        - deploy
    
    job1:
        script: echo "Building..."
        only: 
            - feature/parent-child-testing
        stage: build
    
    microservice_a:
        stage: test
        only: 
            - feature/parent-child-testing
        trigger:
            include: build/pipelines/testa.yml
    
    microservice_b:
        stage: test
        only: 
            - feature/parent-child-testing
        trigger:
            include: build/pipelines/testb.yml
    
    microservice_c:
        stage: test
        only: 
            - feature/parent-child-testing
        trigger:
            include: build/pipelines/testc.yml
            
    job2:
        stage: deploy
        only: 
            - feature/parent-child-testing
        script: echo "Building..."

testa.yml / testb.yml / testc.yml:

    stages:
        - build
        - test
        - deploy
    
    build_job_1:
        stage: build
        script: echo "Running build job"
        
    build_job_2:
        stage: build
        script: echo "Running build job"
        
    build_job_3:
        stage: build
        script: echo "Running build job"
        
    snapshot_1:
        stage: test
        script: echo "Running test job"
        
    snapshot_2:
        stage: test
        script: echo "Running test job"
        
    snapshot_3:
        stage: test
        script: echo "Running test job"
    
    deploy_1:
        stage: deploy
        script: echo "Running deploy job"
        
    deploy_2:
        stage: deploy
        script: echo "Running deploy job"
        
    deploy_3:
        stage: deploy
        script: echo "Running deploy job"

0 个答案:

没有答案