Re: SCMCheckout in WorkflowRun

2019-07-10 Thread Jesse Glick
On Wed, Jul 10, 2019 at 5:14 PM Ullrich Hafner wrote: > 1. Checkout from SCM > 2a Build > 2b Record warnings and blame authors in affected files Yet there is a `dir` step in there. So are you talking about this? dir('src') { checkout scm sh 'mvn install' parseWarnings() } In this case

Re: SCMCheckout in WorkflowRun

2019-07-10 Thread Ullrich Hafner
>> Is there a public API to obtain the actual subfolder of the Git repositories >> of a pipeline? > Anyway how would that even work if the > checkout is done, say, in a Kubernetes pod which is then discarded? > You would have to implement `SCMListener.onCheckout` and do your > analysis the

Re: SCMCheckout in WorkflowRun

2019-07-10 Thread Jesse Glick
On Wed, Jul 10, 2019 at 4:07 PM Ullrich Hafner wrote: > Is there a public API to obtain the actual subfolder of the Git repositories > of a pipeline? Not as such. (You could work your way to more or less that information by inspecting the flow graph.) Anyway how would that even work if the

SCMCheckout in WorkflowRun

2019-07-10 Thread Ullrich Hafner
In the warnings plugin I am visualizing the authors of a warning by querying the associated SCM. This works quite well for Git if the Jenkinsfile checks out the source code into the top level folder. However, if the checkout is placed within a directory, the plugin cannot find the git

Re: [EVENT]: DevOps World Jenkins World San Francisco volunteers needed

2019-07-10 Thread Alyssa Tong
Hi Lloyd, Thank you for your email. Would you be interested in being part of the Ask the Experts? If so, what are your area(s) of expertise specific to Jenkins? Ask the Experts are staffed at the community booth within the expo hall. The booth is open during breakfast, lunch, breaks and evening

Re: [EVENT]: DevOps World Jenkins World San Francisco volunteers needed

2019-07-10 Thread Alyssa Tong
received. Thank you Martin. I'll work on getting the community booth sessions together and will work to get it on the event website soon. Thank you again for sending over your content. On Fri, Jun 21, 2019 at 9:15 PM martinda wrote: > Hi Alyssa, > > Demo Title: Jenkins-Rest, A JClouds Java

Re: Trouble verifying build history deletion with mock Jobs

2019-07-10 Thread Matt Sicker
On Tue, Jul 9, 2019 at 5:20 PM Jesse Glick wrote: > > On Tue, Jul 9, 2019 at 4:47 PM Ullrich Hafner > wrote: > > This topic reminds me of one of my architecture guidelines I’m presenting > > students in my testing lecture: > > An application should always provide a way to change (or inject)

Re: How to run tests on slave/agent

2019-07-10 Thread Rajeev Ranjan
Thanks Jesse and Ullrich, Neat and organised at such large scale. :) I did something like this at crux. DumbSlave node = jenkins.createSlave("node", "", null); project.setAssignedNode(node); *project*.getBuildersList().add(*builder*); FreeStyleBuild build =