xiaoba25
V2EX  ›  DevOps

jenkins 有无插件可以创建 gitlab merge request

  •  
  •   xiaoba25 · Jun 7, 2022 · 3514 views
    This topic created in 1630 days ago, the information mentioned may be changed or developed.
    3 replies  •  2022-06-08 13:42:18 +08:00
    2liuqi
    2liuqi
    Jun 8, 2022
    1
    写个 webhooks 就行,gitlab 接口很简单
    htc555
    htc555
    Jun 8, 2022❤️1
    2
    之前这么写的
    curl -X POST -H "Content-Type: application/json" -H "PRIVATE-TOKEN: 访问令牌" -d '{"title": "上线","assignee_id":"用户 id","source_branch": '\"$branch\"',"target_branch":"master","squash":"1"}' http://域名 /api/v4/projects/项目组%2f 项目地址 /merge_requests
    xiaoba25
    xiaoba25
    OP
    Jun 8, 2022
    3
    @2liuqi @htc555 👍 操作 6 哈 解决我的问题了!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4342 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:59 · PVG 13:59 · LAX 21:59 · JFK 00:59
    ♥ Do have faith in what you're doing.