Nitpicking, I would argue it is not a "restriction" but a feature.
BTW this is a common behaviour: exactly the same exists in shell for
instance, and I'm sure in other languages.
A feature because it's nice to not always have to add antislashes for
parameters/variables you don't want resolved by t
On Tue, Jan 3, 2017 at 10:46 PM, Dan Tran wrote:
> false alarm again, i need to double quote. Not sure if this is intended
>
> git url: "${params.gitUrl}", branch: "${params.branch}"
That's a Groovy restriction. A single-quoted string is only a
"string", but a double-quoted string is a "gstri
Thanks, the venture into pipeline, groovy, and declarative pipeline are
interesting. Take some hands on to get a hang of it
-Dan
On Tuesday, January 3, 2017 at 11:45:09 PM UTC-8, Daniel Beck wrote:
>
>
> > On 04.01.2017, at 07:46, Dan Tran >
> wrote:
> >
> > git url: "${params.gitUrl}", b
> On 04.01.2017, at 07:46, Dan Tran wrote:
>
> git url: "${params.gitUrl}", branch: "${params.branch}"
Or just `git url: params.gitUrl, branch: params.branch`
Double quoted strings are interpolated strings, single quoted strings are not.
The same in Groovy (Pipeline DSL) as in Perl, PHP, ba
false alarm again, i need to double quote. Not sure if this is intended
git url: "${params.gitUrl}", branch: "${params.branch}"
On Tuesday, January 3, 2017 at 10:41:30 PM UTC-8, Dan Tran wrote:
>
> I am trying to create pipe where user can enter their own git url and
> branch
>
> pipeline {
I am trying to create pipe where user can enter their own git url and branch
pipeline {
agent any
parameters {
stringParam(defaultValue: 'ssh:////zzz.git', description:
'', name: 'gitUrl')
stringParam(defaultValue: 'master', description: '', name:
'gitBranch')