前面讲解了发布docker和tomcat。

https://blog.csdn.net/hanjun0612/article/details/103666299

https://blog.csdn.net/hanjun0612/article/details/103731048

 

今天我研究了一下  通过参数发布单个docker

比如我现在有 3 个 微服务:apieq,apiwms,apipo

 

一,General

1 选择 this project is parameterized

2 设置参数名称

3 设置参数的值

Jenkins 通过参数 发布微服务

 

二,构建环境

注意:这里使用 $cloudserver

Jenkins 通过参数 发布微服务

 

三,构建

excute windows batch command 

注意:这里使用 "%cloudserver%"

Jenkins 通过参数 发布微服务

 

四,构建后操作

注意:这里使用 $cloudserver

Jenkins 通过参数 发布微服务

 

完成如下:

Jenkins 通过参数 发布微服务

相关文章:

  • 2022-12-23
  • 2022-01-02
  • 2021-11-01
  • 2022-12-23
  • 2021-07-27
  • 2021-07-31
  • 2017-12-22
猜你喜欢
  • 2022-03-04
  • 2021-06-23
  • 2021-11-17
  • 2021-05-28
  • 2021-11-13
相关资源
相似解决方案