4.3.1、按照4.2配置gitlab自动提交流水线

4.3.2、优化

{按照4.2的报文增加描述信息便可}

Post content parameters

4.3、gitlab提交流水线优化-增加构建描述信息 - 图1

4.3、gitlab提交流水线优化-增加构建描述信息 - 图2

4.3、gitlab提交流水线优化-增加构建描述信息 - 图3

4.3、gitlab提交流水线优化-增加构建描述信息 - 图4

  1. branch
  2. $.ref
  3. userName
  4. $.user_username
  5. ssh_url
  6. $.project.ssh_url

4.3、gitlab提交流水线优化-增加构建描述信息 - 图5

  1. Contributing variables:
  2. branch = refs/heads/master
  3. runOpts = GitlanPush
  4. runOpts_0 = GitlanPush
  5. ssh_url = git@39.105.58.61:root/jenkinslib.git
  6. userName = root

使用test01分支进行提交测试

  1. Contributing variables:
  2. branch = refs/heads/test01
  3. runOpts = GitlanPush
  4. runOpts_0 = GitlanPush
  5. ssh_url = git@39.105.58.61:root/demo-maven-service.git
  6. userName = root

4.3、gitlab提交流水线优化-增加构建描述信息 - 图6

========================================================================