Oh, right. I was thinking in another language :-)
On Sun, Jun 25, 2017 at 9:22 AM Idan Adar wrote:
> Thanks, ".substring(16)" did the trick for what I needed in addition to
> the variables suggestion.
>
>
> On Sunday, June 25, 2017 at 3:25:06 PM UTC+3, slide wrote:
>
>> Groovy will not replace a
Thanks, ".substring(16)" did the trick for what I needed in addition to the
variables suggestion.
On Sunday, June 25, 2017 at 3:25:06 PM UTC+3, slide wrote:
>
> Groovy will not replace anything if you use single quotes. The problem is
> that you are mixing shell variables and groovy variables, s
Groovy will not replace anything if you use single quotes. The problem is
that you are mixing shell variables and groovy variables, so you need to be
careful. Try something like this:
datacenter=repoName.substring(0, 16)
sh """
export
KUBECONFIG=/home/bluemix/.bluemix/p
I'm having difficulty passing parameters into a multiple lines sh section
like below.
Can someone help with spotting the problem?
Specifically,
1. $datacenter is empty
2. $clusterName is empty
3. I suspect $repoName is empty too
stage ("Update Deployments") {
steps {