Re: Append the value of variable into text file

2019-06-12 Thread Danny Jacob
String interpolation is being used incorrectly here. Use just buildnumber instead of $buildnumber. If you using $buildnumber, use ‘$buildnumber’ instead(in quotes as shown). On Wed, 12 Jun 2019 at 11:13 PM, panneerrselvam natarajan < panne...@gmail.com> wrote: > Hi All, > > > I am new to Jenkin a

Append the value of variable into text file

2019-06-12 Thread panneerrselvam natarajan
Hi All, I am new to Jenkin and executing the pipeline.. Here i want to store the build number and result in text file. Here my scripts f = new file ('pan2.txt") f.append('newline added!\n) echo "My file " +f println f.text The above scripts adding the content but now i want add the env..bui