Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a text file from Jenkins TextParameter

Tags:

jenkins

I would like to create a text file from TextParameter value in Jenkins job. My parameter value contains multiple lines. I have tried to echo the parameter but only first line is printing.

like image 882
Praneeth Avatar asked Nov 08 '22 17:11

Praneeth


1 Answers

Add build step -> Execute Shell -> echo $PARAMNAMEHERE > file.txt

like image 101
Idan Matityahu Avatar answered Nov 15 '22 06:11

Idan Matityahu