Re: SVN: ignore post commit hooks on maven release

2013-07-19 Thread Dean Yu
Hi Steffen, The Subversion plugin gives you some options for specifying exclusions, if you click the Advanced button on the job configuration page. My first thought was that the appropriate thing to exclude by is a revision property, but I don't think you get that level of control over the Maven

Re: How does the SVN polling work (internally)?

2013-07-05 Thread Dean Yu
Having you considered using a Subversion post-commit hook to trigger your jobs? https://wiki.jenkins-ci.org/display/JENKINS/Subversion+Plugin While this still requires the jobs to be configured with SCM polling, the frequency can be greatly reduced. -- Dean On 7/5/13 6:07 AM, "Steffen Breit

Re: GitHub Webhook to Jenkins "Cross Site Scripting"

2013-05-17 Thread Dean Yu
Just noticing this thread. With respect to your original question about Git and Jenkin's CSRF setting, as you've surmised, Jenkins protects all POST requests when this feature is enabled. There's a snippet in the Subversion plugin wiki[1] about how to make Subversion's commit hook work with the CS

Re: Concurrent builds with SCM polling

2013-05-13 Thread Dean Yu
May 10, 2013, at 5:39 PM, Dean Yu wrote: > >> On Thursday, May 9, 2013 1:02:58 PM UTC-7, Mandeville, Rob wrote: >> I believe that the behavior you are seeing is by design. The >>concurrent builds checkbox allows you to run multiple instances of that >>job at all, but

Re: Concurrent builds with SCM polling

2013-05-10 Thread Dean Yu
On Thursday, May 9, 2013 1:02:58 PM UTC-7, Mandeville, Rob wrote: > > I believe that the behavior you are seeing is by design. The concurrent > builds checkbox allows you to run multiple instances of that job at all, > but the SCM poller will only launch one at a time. Basically, with the > ch

Re: Running slave in a chroot

2013-05-08 Thread Dean Yu
When I was working at Yahoo!, and we started working with Hudson/Jenkins, we originally went down this path. The issue we had was that by running the slave inside the chroot, multiple slaves would be contending for the same resources and capacity. We ultimately took the approach of running the

Re: nar-plugin integration

2013-05-06 Thread Dean Yu
ok into outputting test results in a format consumable > by the xUnit plugin, but is there another hook I could use? > > On Monday, May 6, 2013 1:19:45 PM UTC-4, Dean Yu wrote: >> >> Hi Rob, >> Usually, build steps that return with a non-zero exit code is what >> m

Re: nar-plugin integration

2013-05-06 Thread Dean Yu
Hi Rob, Usually, build steps that return with a non-zero exit code is what marks a build as failed. Test reporters, like the built in Junit reporter, can downgrade a build from successful to unstable if it discovers failed tests in the test results. It sounds like the maven-nar-plugin might be

Re: Proper approach for creating pipeline builds that use standalone jobs as build steps

2013-03-29 Thread Dean Yu
Have you guys looked at the Build Flow plugin? https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin -- Dean From: Pete Akey mailto:pja...@gmail.com>> Reply-To: "jenkinsci-users@googlegroups.com" mailto:jenkinsci-users@googlegroups.com>> Date:

RE: AbstractTestResultAction#getFailedTests()

2013-01-24 Thread Dean Yu
w one. On Wed, Jan 23, 2013 at 10:56 AM, Dean Yu mailto:d...@shutterfly.com>> wrote: Here's the commit where this was added: https://github.com/jenkinsci/jenkins/commit/f9823e39d17debd2e914ce13cdeec3b43581f09e I would call this a case of poor abstraction. Seems like the signature sho

Re: AbstractTestResultAction#getFailedTests()

2013-01-23 Thread Dean Yu
Here's the commit where this was added: https://github.com/jenkinsci/jenkins/commit/f9823e39d17debd2e914ce13cdeec3b43581f09e I would call this a case of poor abstraction. Seems like the signature should return List. -- Dean From: Nalin Makar mailto:nalin.ma...@gmail.com>> Reply-To: "jenkins

RE: Creating a FreeStyleProject outside JUnit?

2013-01-16 Thread Dean Yu
I think your problem is the manner in which you are trying to create the object: you're calling a utility method on HudsonTestCase which extends JUnit's TestCase class. HudsonTestCase assumes its being used from JUnit. -- Dean From: jenkinsci-users@goo

Re: Creating a FreeStyleProject outside JUnit?

2013-01-15 Thread Dean Yu
IIRC, you need to use a Junit TestRunner to run the test, so that Junit's test lifecycle is followed. -- Dean On 1/15/13 11:22 AM, "jserup" wrote: >I am creating a FreeStyleProject using this test class: > >import org.jvnet.hudson.test.HudsonTestCase; >import org.apache.commons.io.FileUtils;

Re: Read-only configurations plugin for latest jenkins

2013-01-09 Thread Dean Yu
I'm curious what this plugin does that's different than enabling the Extended Read permission, which is built-in. The extended read permission grants read-only access to the standard configuration pages. -- Dean From: Alex Earl mailto:slide.o@gmail.com>> Reply-To: "jenkinsci-users@google

Re: Collapsing Console Section

2012-10-18 Thread Dean Yu
Or, you can enhance the existing plugin to support the use cases you have. -- Dean From: sandy mailto:sandeep.thak...@enterprisedb.com>> Reply-To: "jenkinsci-users@googlegroups.com" mailto:jenkinsci-users@googlegroups.com>> Date: Wednesday, October 17

Re: Multiple JUnit reporters

2012-05-23 Thread Dean Yu
Hi Jens, See if the Labeled Test Groups plugin will work for you: https://wiki.jenkins-ci.org/display/JENKINS/LabeledTestGroupsPublisher+Plug in -- Dean On 5/22/12 1:21 PM , "Jens Müller" wrote: >Hi, > >it's easy to publish JUnit test results and get a nice chart. > >Is it possible to hav

Re: Displaying test results before job is finished

2012-05-15 Thread Dean Yu
Unfortunately not. As a post-build action, test results are processed after all the build steps are completed. -- Dean On 5/15/12 5:54 AM , "bl0ck3r" wrote: >I have hundreds of tests in a job, and it can take several hours to >complete. Is there a way to have Jenkins display the test results

Re: Need help with a hudson.util.IOException2

2012-05-07 Thread Dean Yu
A class was compiled using a newer version of Java than you have installed on that slave. -- Dean From: 7se7en7 mailto:ah...@hotmail.com>> Reply-To: "jenkinsci-users@googlegroups.com" mailto:jenkinsci-users@googlegroups.com>> To: "jenkinsci-users@goog

Re: Jenkins build validated by web call

2012-04-19 Thread Dean Yu
Wouldn't you have the same requirement for deployments that are performed manually? If so, it would make more sense to put this into your deployment tool, not in Jenkins. -- Dean On 4/19/12 1:26 AM , "Michele Sacchetti" wrote: > Hi all > > I'd like to introduce a sort of external validation

Re: Extension points: When to use the Describable/Descriptor pattern

2012-03-13 Thread Dean Yu
Hi Chris, You use the Describable/Descriptor pattern if you want to allow for configuration through the UI. Otherwise, you just need to use the ExtensionPoint marker interface. hudson.tasks.MailAddressResolver is an example of an extension point that doesn’t use Describables. -- Dean On 3

Re: custom build environments?

2012-02-22 Thread Dean Yu
We have an internal plugin that manages chroots for exactly this scenario. We set up the chroot through a BuildWrapper, and we override the launch method so that each build step enters the chroot before it executes. There’s a lot of internal-only code in here, so it’s not something we can open s