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' } } } }
时来天地皆同力,运去英雄不自由