本文介绍了指向Git存储库作为Jenkins Job DSL作业的源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以选择文件系统或嵌入式脚本-如何指向Git存储库?

I have the option of file system or embedded script - how can I point to a Git repo?

我专门询问的是Job DSL,而不是多分支管道.

I am asking specifically about the Job DSL not Multibranch Pipelines.

推荐答案

只需在您的作业配置中添加标准SCM步骤.在该步骤中,签出包含DSL脚本的所需存储库和分支.

Just add a standard SCM step to your job configuration. In that step, check out the needed repository and branch that contains the DSL script.

然后,"DSL脚本"参数必须指向您在该步骤中签出的脚本.

The "DSL Scripts" argument then has to point to the script that you checked out in that step.

这篇关于指向Git存储库作为Jenkins Job DSL作业的源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-12 02:28