Jenkins运行参数:
生产环境:package -P prdMysql
测试环境:package
===============================
pom.xml配置信息如下:
<profiles>
<profile>
<id>prdMysql</id>
<properties>
<sys.environment>prd</sys.environment>
<sys.houtaiguanliDomain>web1/</sys.houtaiguanliDomain>
<sys.weixinDomain>web2/</sys.weixinDomain>
<sys.qizhiwangluoDomain>web3/</sys.qizhiwangluoDomain>
<sys.shizhantouziDomain>web4/</sys.shizhantouziDomain>
</properties>
</profile>
<profile>
<id>devMysql</id>
<properties>
<sys.environment>dev</sys.environment>
<sys.houtaiguanliDomain>localA:8082/</sys.houtaiguanliDomain>
<sys.weixinDomain>localB:8082/</sys.weixinDomain>
<sys.qizhiwangluoDomain>localC:8082/</sys.qizhiwangluoDomain>
<sys.shizhantouziDomain>localD:8082/</sys.shizhantouziDomain>
</properties>
</profile>
<profile>
<id>devMycat</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sys.environment>dev</sys.environment>
<sys.houtaiguanliDomain>localA:8082/</sys.houtaiguanliDomain>
<sys.weixinDomain>localB:8082/</sys.weixinDomain>
<sys.qizhiwangluoDomain>localC:8082/</sys.qizhiwangluoDomain>
<sys.shizhantouziDomain>localD:8082/</sys.shizhantouziDomain>
</properties>
</profile>
</profiles>