Re: Does Slack Notification plugin know to autodetect build status?

2020-04-03 Thread lesterp
There was an excellent post on the Jenkins blog that had some great examples, here: https://jenkins.io/blog/2017/02/15/declarative-notifications/ On Thursday, April 2, 2020 at 4:40:18 AM UTC-7, Vitaly Karasik wrote: > > Question regarding Slack Notification plugin in declarative pipeline: is >

Re: Post build actions (e.g. comments) using bitbucket branch source plugin

2020-04-03 Thread Yeikel
If you are using a multi branch pipeline, you can add one last step at the end to do that activity. stage('Add pull request comment') { steps { /// API call } } On Fri, Apr 3, 2020 at 11:35 AM Jamie Johnson wrote: > Thanks for the suggestion, how

Re: Post build actions (e.g. comments) using bitbucket branch source plugin

2020-04-03 Thread Jamie Johnson
Thanks for the suggestion, how would I invoke this as I don't see a way to do a post build action currently? On Friday, April 3, 2020 at 11:00:17 AM UTC-4, Yeikel wrote: > > I don't know if it is best way but there is a rest API in bitbucket[1] to > support this activity and more. > > [1] > ht

Re: Post build actions (e.g. comments) using bitbucket branch source plugin

2020-04-03 Thread Yeikel
I don't know if it is best way but there is a rest API in bitbucket[1] to support this activity and more. [1] https://community.atlassian.com/t5/Bitbucket-questions/Add-comments-to-Pull-Requests-from-API/qaq-p/81069 On Fri, Apr 3, 2020, 10:42 AM Jamie Johnson wrote: > I am trying to setup a mul

Post build actions (e.g. comments) using bitbucket branch source plugin

2020-04-03 Thread Jamie Johnson
I am trying to setup a multi branch pipeline and want to be able to support custom comments such as was possible in the to bitbucket. This was possible using the stash pull request builder. What is the best way to accomplish this? -- You received this message because you are subscribed to t

RE: CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-03 Thread Jérôme Godbout
Hi, maybe not what you are looking for, but I do run my cppcheck with the following command (bat or sh): def RunCppCheck(scriptConfig, outputXml, otherOptions = "") { String cmd = “cppcheck --project=${scriptConfig} --xml --xml-version=2 ${otherOptions} 2> ${outputXml}”; if(isUnix()) { sh(cmd)

Capturing output of an aborting build?

2020-04-03 Thread Stephan Bergmann
LibreOffice's Jenkins instance at uses to abort hanging builds. At least on Linux, the actual build is wrapped in a kill-wrapper process to make sure that Jenkins' attempt at terminating a to-be-aborted build reliably ki

Re: CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-03 Thread Ahmed Rafiq
Thanks for the reply. What I've done is, put this, echo ' ' inside *execute shell command*, under *Build*. Set Tools *CPPCheck* and *Build*. I was waiting that the * * would produce *new** line* where used. But they didn't. On Fri, Apr 3, 2020 at 10:14 AM Ullrich Hafner wro

RE: Command line acccess to build actions in muti branch pipeline

2020-04-03 Thread BCT Roel de Wildt
Hi, My thanks for the solution you gave me. I have implemented this solution with the cron entry and the resource lock. Now the pipelines are triggered at 19:00 and executed sequential, but my concerns are when we create a branch of them that they are also executed daily. That is not what I wa

Re: CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-03 Thread Ullrich Hafner
> Am 03.04.2020 um 09:07 schrieb 'Christoph Fetzer' via Jenkins Users > : > > For me that looks like an issue of your shell command and not of the plugin. Exactly! > [CPPCheck] Skipping execution of recorder since overall result is 'FAILURE' > Finished: FAILURE > The log indicates that my

Re: CppCheck(XML parsing) with Warning-Next-Generation plugins

2020-04-03 Thread 'Christoph Fetzer' via Jenkins Users
For me that looks like an issue of your shell command and not of the plugin. Can you try to store the actual file to your workspace and make the plugin parse that? For me the warnings.ng.plugin is just working in conjunction with cppcheck. What I am doing looks like this: The cppcheck-call: cp