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' } } } }
标签:pipeline,git,Repository,Clone,库到,branch,main,目录 From: https://www.cnblogs.com/gaoyuechen/p/17374108.html