Mailing Lists (Last 24 Hours)

Powered By Nabble

Re: does 2.5 break CliBuilder? groovy - ericksn - 51 minutes ago

If I don’t try and get fancy with this line in the original test (example) ….   builder."${opt4.opt ?: '_'}"(opt4, 'desc opt:')   and I change my code to directly ...

Re: does 2.5 break CliBuilder? groovy - ericksn - 1 hour 24 minutes ago

Test code….   println "groovy version = ${GroovySystem.getVersion()}" def builder = new CliBuilder() def opt1 = [opt:'x'] builder."${opt1.opt ?: '_'}"(opt1, '...

Re: does 2.5 break CliBuilder? groovy - paulk_asert - 2 hours 1 minute ago

Do you have a standalone example which triggers the error, i.e. with map and config already set? That will save us time reproducing.Cheers, Paul.On Sat, May 26, 2018 at 2:59 AM, Nelson, Erick <...

does 2.5 break CliBuilder? groovy - ericksn - 9 hours 3 minutes ago

Caught: groovy.lang.ReadOnlyPropertyException: Cannot set readonly property: opt for class: org.apache.commons.cli.Option groovy.lang.ReadOnlyPropertyException: Cannot set readonly propert...

RE: [ANNOUNCE] Apache Groovy 2.5.0-rc-3 released groovy - Daniel.Sun - 11 hours 57 minutes ago

Many issues are fixed in Groovy 2.5.0, but some of them still exists in 2.4.x, e.g. some critical STC issues, etc. In addition, 2.4.x will stop maintenance soon, so we encourage all users upgrade ...

Re: Help with Groovy syntax groovy - Chris Fouts - 12 hours 3 minutes ago

Makes sense. I started reading about closures before I posted, and will keep reading.On Fri, May 25, 2018 at 9:58 AM Daniel.Sun <[hidden email]> wrote:Hi Chris,       If the last parameter ...

Re: Help with Groovy syntax groovy - Daniel.Sun - 12 hours 5 minutes ago

Hi Chris,       If the last parameter of method is a closure, we can write code like as follows: someMethod("abc") {     // this is a closure } the above code is...

Re: Help with Groovy syntax groovy - Chris Fouts - 12 hours 5 minutes ago

Got'\ ya, thanks!On Fri, May 25, 2018 at 9:56 AM Schalk Cronjé <[hidden email]> wrote:On 25/05/2018 15:55, Chris Fouts wrote: > Firstly, what does the... > > def mainScmDetails ...

Re: Help with Groovy syntax groovy - ericksn - 12 hours 6 minutes ago

It just defines a variable outside the scope of the closure that is passed to stage. This variable is used in that closure.   Erick Nelson Senior Developer – IT HD Supply Facilities ...

Re: Help with Groovy syntax groovy - ysb33r - 12 hours 7 minutes ago

On 25/05/2018 15:55, Chris Fouts wrote: > Firstly, what does the... > > def mainScmDetails > Equivalent of:  Object mainScmDetails = null -- Schalk W. Cronjé Twitter / Ello / Toeter :...

Re: Help with Groovy syntax groovy - ysb33r - 12 hours 8 minutes ago

That is Jenkins pipleine which is a sandboxed Groovy DSL. Most Groovy rules still apply though. As to your question and not having looked ever at how t...

Re: Help with Groovy syntax groovy - Chris Fouts - 12 hours 8 minutes ago

Firstly, what does the...def mainScmDetails...without anything after it mean in Groovy? "stage" defines a Jenkins pipeline stage that I see in my pipeline browser, that is, I see "C...

Re: Help with Groovy syntax groovy - ericksn - 12 hours 16 minutes ago

Looks to me like stage is a method or a closure that takes 2 args. The first is a string, the second is a closure.   Erick Nelson Senior Developer – IT HD Supply Facilities Maintenan...

Help with Groovy syntax groovy - Chris Fouts - 12 hours 28 minutes ago

I'm 4 days old new to Groovy. I bought a book, but I just want to learn what this syntax mean for today.We use Groovy to run a Jenkins file in our Jenkins build. One stage has these statements...
Run by:
Login
About:

groovyblogs was first created by Glen Smith. The current version of GroovyBlogs is largely based on his work.

Read more...
Hosted by: