V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
leiuu
V2EX  ›  DevOps

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

  •  
  •   leiuu · Jun 7, 2022 · 2910 views
    This topic created in 1428 days ago, the information mentioned may be changed or developed.
    3 replies    2022-06-08 13:42:18 +08:00
    2liuqi
        1
    2liuqi  
       Jun 8, 2022
    写个 webhooks 就行,gitlab 接口很简单
    htc555
        2
    htc555  
       Jun 8, 2022   ❤️ 1
    之前这么写的
    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
    leiuu
        3
    leiuu  
    OP
       Jun 8, 2022
    @2liuqi @htc555 👍 操作 6 哈 解决我的问题了!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2716 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 12:15 · PVG 20:15 · LAX 05:15 · JFK 08:15
    ♥ Do have faith in what you're doing.