Declarative pipeline: set environment variables from script
21 views
Skip to first unread message
Tin Tvrtković
unread,
Mar 30, 2017, 7:36:50 AM3/30/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Hello,
I'm playing around with porting our old-style jobs to the new declarative pipeline format.
We currently use https://wiki.jenkins-ci.org/display/JENKINS/Environment+Script+Plugin that executes a Python script which sets up half a dozen environment variables which are later used. Can I somehow invoke this from the pipeline, and if not, what would be the new way of achieving something like this?