我正在使用Jenkins流水线插件与Jenkinsfile。
在一个名为vms.git的存储库中,我有Jenkinsfile和其构建的应用程序。
我还有另一个名为deploy.git的存储库,其中包含我想要用来部署vms.git中的应用程序的脚本。
目前我的Jenkinsfile只长成这样
node {
stage 'build'
checkout scm
我正在工作配置中定义vms.git存储库。
因此,我想要做的是检出这两个存储库,然后使用vms.git中的Jenkinsfile来定义其余的构建过程。我希望在其他流水线中重用deploy.git脚本,所以我不想在那里放置Jenkinsfile。
*/master
的含义在 Jenkinsfile dsl 参考文档中有更详细的解释,网址为http://jenkinshost:8080/workflow-cps-snippetizer/dslReference
。 - Linus Arver