Passing env variable bettween different pipeline

15 views
Skip to first unread message

Alfredo De Luca

unread,
Aug 19, 2019, 5:37:14 AM8/19/19
to jenkins...@googlegroups.com
Hi all.

we are using Jenkins 2.176 and  with blu ocean. 
We have different pipelines each one does different things but in the near future we ll need to pass some env variables between them.

How can I do that? 

Cheers

--
Alfredo

Yeikel Santana

unread,
Aug 19, 2019, 11:36:45 AM8/19/19
to Jenkins Users
In Jenkins UI you can configure credentials[1] . Environment variables are inherited from the system and can be used in your pipeline with env[2]

Example : env.host

Alfredo De Luca

unread,
Aug 20, 2019, 8:38:30 AM8/20/19
to jenkins...@googlegroups.com
thanks heaps

Alfredo
--
Alfredo

Reply all
Reply to author
Forward
0 new messages