在执行外壳中获取Jenkins环境变量 [英] Get Jenkins environment variables in execute shell
本文介绍了在执行外壳中获取Jenkins环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以在configure build中的执行shell中访问Jenkins环境变量?如果可以,请给我一个例子吗?我需要将环境信息与测试的某些输出结合起来,以提供运行的完整报告(不使用插件).
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).
推荐答案
请检查http://yourjenkins-url/env-vars.html/
.可以将所有环境变量与${}
一起使用
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:
这篇关于在执行外壳中获取Jenkins环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文