user1423277
user1423277

Reputation: 109

Passing parameter string UPTO jenkins

I am looking for how to pass a string into jenkins so I can use it when sending mail.

So let say I have a file with a string inside and I want to read that file and use it inside jenkins when I send an email after finished succesfully - is that possible?

Upvotes: 0

Views: 134

Answers (1)

Gonen
Gonen

Reputation: 4075

If looking for a simple string to pass, like a one-liner,
the easiest way is probably to use Inject parameters Plugin -
it accepts files in INI-file format, so you could write something like this:

MY_PARAM1=My Line to Show in the Email

Then you can use ${MY_PARAM1} in your mail-template.

Upvotes: 1

Related Questions