logging for jenkins rest api request/response

2021-02-07 Thread Hyunil Shin
Hi, How can I log request, response for jenkins rest api? What logger should I add to system log? -- 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 jenkinsci-u

Re: Jenkins Groovy with Java Stream API

2021-02-07 Thread Sverre Moe
Here is a solution that does work in both Groovy and Jenkins def foundRootNode = null for(file in files) { final def rootNode = findByContent(file.getPath()); if (rootNode != null) { foundRootNode = rootNode break; } } However it is not

Jenkins Groovy with Java Stream API

2021-02-07 Thread Sverre Moe
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) .findFir

Re: 'docker: not found' Error when building a docker image

2021-02-07 Thread Mark Waite
On Saturday, February 6, 2021 at 11:11:19 PM UTC-7 dke wrote: > Hi Mark, > > Thanks for the responds. However, I cannot find any Jenkins plugins for > the solutions proposed in the link. > Apologizes as I am a newbie in DevOps. > > I am thinking either to use a Jenkin's free style project o