Groups
Groups
Sign in
Groups
Groups
Jenkins Users
Conversations
About
Send feedback
Help
Capturing Data From a Script File and Setting Environment Variables
15 views
Skip to first unread message
John Bobinyec
unread,
Mar 9, 2016, 2:13:41 PM
3/9/16
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
I have several perl scripts which develop information which is to be used as environmental variables in subsequent parts of the build.
How do I:
Pass the information back from the perl script to the main build program?
Once the main program has the information, set up environment variables with these values so subsequent script files can use them?
Thanks,
jb
Ioannis Moutsatsos
unread,
Mar 14, 2016, 1:14:48 PM
3/14/16
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
I would start with the
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin
if your perl scripts write a simple key-value properties file, this plugin can read it to create environment variables that you can use in subsequent tasks or builds.
hope this helps
Ioannis
Reply all
Reply to author
Forward
0 new messages