Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread Slide
You are correct. On Thu, May 2, 2019 at 6:11 AM b o b i wrote: > On Thursday, May 2, 2019 at 2:35:58 PM UTC+2, b o b i wrote: >> >> Could you explain me why "\$" worked, i.e. where it is documented? (I >> lost pretty much time with such "nonsense"). (a bash variable should be >> expanded inside

Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread Mark Waite
On Thursday, May 2, 2019 at 6:35:58 AM UTC-6, b o b i wrote: > > Thank you, that work. > > Could you explain me why "\$" worked, i.e. where it is documented? (I lost > pretty much time with such "nonsense"). (a bash variable should be expanded > inside a bash script as $var or "${var}" etc.,

Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread b o b i
On Thursday, May 2, 2019 at 2:35:58 PM UTC+2, b o b i wrote: > > Could you explain me why "\$" worked, i.e. where it is documented? (I lost > pretty much time with such "nonsense"). (a bash variable should be expanded > inside a bash script as $var or "${var}" etc., i.e. why in a bash, the vars

Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread b o b i
Thank you, that work. Could you explain me why "\$" worked, i.e. where it is documented? (I lost pretty much time with such "nonsense"). (a bash variable should be expanded inside a bash script as $var or "${var}" etc., i.e. why in a bash, the vars are not bashingly treated?) On Thursday, May

Re: scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread Daniel Butler
Replace ${mytime} with \$mytime The mytime variable you've created is a bash one. Regards Daniel On Thu, 2 May 2019, 1:16 pm b o b i, wrote: > Jenkins 2.174, in a scripted pipeline the following > > sh """#!/bin/bash >echo "TTT" >mytime="`date

scripted pipeline: bash: date -> MissingPropertyException: No such property: ... for class: groovy.lang.Binding

2019-05-02 Thread b o b i
Jenkins 2.174, in a scripted pipeline the following sh """#!/bin/bash echo "TTT" mytime="`date '+%Y_%m_%d__%H_%M_%S'`" echo ${mytime} """ produces groovy.lang.MissingPropertyException: No such property: mytime for class: groovy.lang.Binding