I was wondering if it is possible to access Jenkins environment variables inside the execute shell in configure build? If so can you show me an example please? I need to combine the environment information with some output of the test to give a full report of a run (not using plugins).
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Please check http://yourjenkins-url/env-vars.html/
. All the environment variable can be used by surrounding with ${}
After successfully built, You can see output like this: