Jenkins 通过参数 发布微服务

前面讲解了发布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 设置参数的值


二,构建环境

注意:这里使用 $cloudserver


三,构建

excute windows batch command 

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


四,构建后操作

注意:这里使用 $cloudserver


完成如下:

原文地址:https://www.cnblogs.com/hanjun0612/p/12146044.html