Passing parameters between build steps/tasks

21 views
Skip to first unread message

mai...@gmail.com

unread,
Dec 7, 2014, 1:54:50 AM12/7/14
to jenkins...@googlegroups.com
Hello,

I'm using Jenkins 1.557 on Linux with a Windows slave and part of my build steps are scripts that create files that I would like to email and I was wondering if there is a way for the script (python and bash) to save the path to the created file in a variable/parameter that will be accessed by another task like the "Editable Email Notification" for me to include as an attachment or content.

I imagine having something like the following flow will solve my problem:

Task 1) Run script that creates a file with random name and saves the file name in a jenkins variable.
Task 2) Read file path from variable to send it as an email attachment.

or

Task 1) Run script that creates a file with random name, copy that file to to a web server and save the file name in a jenkins variable.
Task 2) Read the path where the file was saved from a variable and embed it as a link in the email content.
Reply all
Reply to author
Forward
0 new messages