gpt4 book ai didi

java - 检测到新的 GitHub 存储库时创建 Jenkins 作业

转载 作者:行者123 更新时间:2023-11-30 06:38:47 24 4
gpt4 key购买 nike

如果指定的用户/组织创建了一个新的存储库,Jenkins 有没有办法根据某种形式的模板来完成工作?

最佳答案

参见GitHub Webhooks, Events :

| repository | Any time a Repository is created, deleted (organization hooks only), made public, or made private. |

参见Jenkins Plugin: create a new job programmaticallyRemote access API :

Remote API can be used to do things like these:

  1. ...

  2. ...

  3. create/copy jobs

打开http://Your Jenkins/api以获取更多信息:

Create Job

To create a new job, post config.xml to this URL [http://Your Jenkins/createItem] ...

另请参阅Job Generator Plugin :

This plugin is a good fit for generating pipelines based on parameterized templates.

关于java - 检测到新的 GitHub 存储库时创建 Jenkins 作业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44764624/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com