pipeline 多个代码库到不同目录

pipeline {
    agent any
 
    stages {
        stage('Clone Repository 1') {
            steps {
                dir('repo1') {
                    git branch: 'main', url: 'https://github.com/example/repo1.git'
                }
            }
        }
        stage('Clone Repository 2') {
            steps {
                dir('repo2') {
                    git branch: 'main', url: 'https://github.com/example/repo2.git'
                }
            }
        }
    }

 

posted @ 2023-05-05 14:38  滴滴滴  阅读(84)  评论(0编辑  收藏  举报