Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jenkins:通过groovy脚本以编程方式在jenkins管道中配置github项目_Jenkins_Github_Groovy - Fatal编程技术网

jenkins:通过groovy脚本以编程方式在jenkins管道中配置github项目

jenkins:通过groovy脚本以编程方式在jenkins管道中配置github项目,jenkins,github,groovy,Jenkins,Github,Groovy,嘿,我想用管道作业编程配置Jenkins管道,您可以在以下位置找到: 这个很好。但是现在,我也喜欢通过编程配置管道的其他部分,我不知道从哪里开始。例如,我喜欢配置repo的github url,我可以在以下位置手动进行配置: 我也喜欢自动检查Build触发器,但不知道在哪里搜索正确的groovy配置命令:正如您在这里看到的 您可以在pipelineJob指令中添加以下块以添加github项目url properties{ githubProjectUrl("url to repo")

嘿,我想用管道作业编程配置Jenkins管道,您可以在以下位置找到:

这个很好。但是现在,我也喜欢通过编程配置管道的其他部分,我不知道从哪里开始。例如,我喜欢配置repo的github url,我可以在以下位置手动进行配置:

我也喜欢自动检查Build触发器,但不知道在哪里搜索正确的groovy配置命令:正如您在这里看到的


您可以在pipelineJob指令中添加以下块以添加github项目url

 properties{
   githubProjectUrl("url to repo")
 }
要添加触发器,您可以浏览

 properties{
   githubProjectUrl("url to repo")
 }