我有2个属性文件,我希望通过邮件发送其内容。我要做的就是这样:覆盖在Jenkins本地创建的环境变量
- 阅读与EnvInject
- 使用这些可变因素为使通过邮件发送:
这些配置文件包含不同的链接和日期,我在电子邮件中看到相同的输出:
Android Mobile Client Release Notes CH
Link: ftp://testlink_CH
Date: 28/06/2016
Android Mobile Client Release Notes PL
Link: ftp://testlink_CH
Date: 28/06/2016
即使我尝试“取消设置”命令,将$ {Link}设置为非oereriden时,它表示意思。
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path 'AndroidDev/CH/config.properties'
[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting as environment variables the properties content
LINK_CH=${Link}
DATE_CH=${Date}
[EnvInject] - Variables injected successfully.
[mvandroid] $ /bin/sh -xe /tmp/hudson108948632979693109.sh
+ unset Link
+ unset Date
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path 'AndroidDev/PL/config.properties'
[EnvInject] - Variables injected successfully.
[EnvInject] - Injecting as environment variables the properties content
LINK_PL=ftp://testlink_CH
DATE_PL=28/06/2016
您能否帮我解决这个问题,或者让我煽动你呢?
您不能取消设置系统环境变量。您只能删除继承的环境变量。 – CSchulz
请你详细说明一下吗?我对此比较陌生......我正在设置系统环境变量?什么是继承的环境变量? – Dim