The following piece of code works fine in Groovy, but Jenkins complains about unexpected token: ->
final def files = findFiles(glob: filePattern)
final def rootNode = files.stream()
.map(file -> findByContent(file.getPath()))
.filter(node -> node != null)
.findFirst()
To get this working in a local Groovy script the findFile is switched with a simple List of strings.
So why is it not working in Jenkins?
--
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
[hidden email].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/e6adc124-fb97-4f72-87d5-d9f9ada90ef8n%40googlegroups.com.