Jenkins Pipeline Groovy Script and JSON

2016-08-11 Thread Łukasz Zachulski
Please check SO thread for details regarding JSON file parsing in Jenkinsfile, http://stackoverflow.com/q/37864542/6128602. -- 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,

Loading Pipeline Library from either Git branch or tag

2017-06-28 Thread Łukasz Zachulski
Is it possible to specify branch for Pipeline Library in such a way that it would allow override default @Library version with either Git tag or branch? So far I have tried different wildcard combinations, refs/*/${library.Global.version}, but none of them works. Instead if I stop using

Re: Loading Pipeline Library from either Git branch or tag

2017-06-29 Thread Łukasz Zachulski
) W dniu środa, 28 czerwca 2017 21:42:30 UTC+2 użytkownik Łukasz Zachulski napisał: > > Is it possible to specify branch for Pipeline Library in such a way that > it would allow override default @Library version with either Git tag or > branch? > > > So far I have tried

Jenkis CLI client connection problem over CLI-Port

2017-06-21 Thread Łukasz Zachulski
Hello, I'm using Jenkins 1.642.1 and since 2 weeks I'm seeing recurring problems with Jenkins CLI client. Precisely the problem is with CLI client not able to correctly establish connection with Jenkins master and get an response. It looks like the connection hangs. Checking connections with

Jenkis CLI client connection problem over CLI-Port

2017-06-21 Thread Łukasz Zachulski
Is there a way to pinpoint the thread which holds CLOSE_WAIT connection? -- 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

Does Jenkis need the workspace in order to compare previous commits for Git repository

2017-06-07 Thread Łukasz Zachulski
I've found Jenkins article Triggering a build using hooks in Bitbucket server and it states that You need to ensure that your workspace is not deleted after every build. > The Git

Re: Jenkins pipeline build stuck forever if node doesn't exist

2017-06-10 Thread Łukasz Zachulski
Two solutions have came to my mind: First method is based on an idea of making REST call from node("master") { sh "curl ..." } to confirm if Jenkins instance contains node. Second method is only applicable if your Pipeline script is "trusted" and it's not run inside "a sandbox". Then you could

Re: Does Jenkis need the workspace in order to compare previous commits for Git repository

2017-06-10 Thread Łukasz Zachulski
Connolly <stephen.al...@gmail.com> >> wrote: >> >>> On Wed 7 Jun 2017 at 22:48, Łukasz Zachulski <lzach...@gmail.com> wrote: >>> >>>> I've found Jenkins article Triggering a build using hooks in Bitbucket >>>> ser

How to write to Console Output from Pipeline build using Jenkins API

2017-05-30 Thread Łukasz Zachulski
Hello, If it possible to write to Console Output using Jenkins API from with-in Jenkins Pipline script, ie. using TaskListener or Launcher? Looks like "currentBuild.rawBuild" doesn't provide such method. I'm having 3rd party jar which makes a calls to Jenkins API, and I would like to pass it