Develop

젠킨스 파이프라인에서 다른 job 실행

작은이야기 2022. 4. 1. 14:16

1. 파이프라인 생성.

 

 

2. 호출 될 Job 생성

 

 

3. 파이프라인 설정 

파이프라인 스크립터 문법

pipeline {
    agent any 
    stages 
    {
        stage('Start') {
            steps {
                echo 'Hello'
            }
        }
        stage ('Invoke_testA') {
            steps {
                build job: 'testA', parameters: []
            }
        }
        stage ('Invoke_testB') {
            steps {
                build job: 'testB', parameters: []
            }
        }
        stage('End') {
            steps {
                echo 'Bye'
            }
        }
    }
}

 

4. 실행 결과