On our environment, the vars is camelCase without any problems. But we
are using is as block :
for example :
JaliosPlugin{
        mailrecipients : [email protected]
}
Others elements are designed as classes and in our case are used with
new operator , like :
new com.jalios.build.MailNotifier().send(config.mailRecipients)
Perhaps to use a function, you need to have class which can be
instanciated and vars in only pipeline steps ?
-- 


Ludovic SMADJA
R&D engineer - build process and development
JALIOS SA
http://www.jalios.com

Le mardi 31 mai 2016 à 04:38 -0700, Sverre Moe a écrit :
> Well if it is a bug. I was not entirely sure as I have just begun
> using Pipeline.
> I will create a bug report of this problem.
> 
> > 
> > > On 31.05.2016, at 12:01, Sverre Moe <[email protected]> wrote: 
> > > 
> > > This naming does not work: 
> > > vars/packageInformation.groovy 
> > > 
> > > I get the following exception when calling a function
> > packageInformation.init() 
> > > java.lang.NullPointerException: Cannot invoke method init() on
> > null object 
> > > 
> > > This works 
> > > vars/packageinformation.groovy 
> > > 
> > 
> > Bug reports should go into JIRA: 
> > https://wiki.jenkins-ci.org/display/JENKINS/How+to+report+an+issue 
> > 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/15440b57-4f2f-4594-99a1-
> c06a765ab36d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/1464774443.3454.25.camel%40jalios.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to