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
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.,
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
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
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
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