Command not found error on bash build script

2015-12-02 Thread Gouri Nair
I added a simple if else statement as a part of my bash script. if [[ $xml_name = "xmlnew" ]] then partnerfolder = "update" else partnerfolder = $partner fi and when i run the build job, i get this error. + [[ xmlnew = \x\m\l\n\e\w ]] + partnerfolder =

RE: Command not found error on bash build script

2015-12-02 Thread John Mellor
Nair Sent: December-02-15 11:39 To: Jenkins Users Subject: Command not found error on bash build script I added a simple if else statement as a part of my bash script. if [[ $xml_name = "xmlnew" ]] then partnerfolder = "update" else partnerfolder = $partner fi and w

Re: Command not found error on bash build script

2015-12-02 Thread Gouri Nair
Thank you. I will keep that in mind. On Wednesday, December 2, 2015 at 9:01:02 AM UTC-8, Daniel Beck wrote: > > > On 02.12.2015, at 17:38, Gouri Nair > wrote: > > > Can someone tell me what could be wrong? > > Has absolutely nothing to do with Jenkins. It's just invalid

Re: Command not found error on bash build script

2015-12-02 Thread Gouri Nair
> > > > Why do you have spaces around the assignment operator? That’s not legal > in bash or any other normal shell language. > > > > > > *From:* jenkins...@googlegroups.com [mailto: > jenkins...@googlegroups.com ] *On Behalf Of *Gouri Nair > *Sent:* December

Re: Command not found error on bash build script

2015-12-02 Thread Daniel Beck
On 02.12.2015, at 17:38, Gouri Nair wrote: > Can someone tell me what could be wrong? Has absolutely nothing to do with Jenkins. It's just invalid bash syntax. Get rid of the space around the '=' char. In the future, try whether what you're doing works outside Jenkins