Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Jenkins environment variables in execute shell

Tags:

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).

like image 399
Ian Avatar asked Jun 23 '15 17:06

Ian


1 Answers

Please check http://yourjenkins-url/env-vars.html/. All the environment variable can be used by surrounding with ${} enter image description here

After successfully built, You can see output like this:

enter image description here

like image 68
mainframer Avatar answered Oct 19 '22 22:10

mainframer