Does the build log show an error that would result in a non-zero return code? Do you have evidence Jenkins is even running the build?
From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Steve Berg Sent: Thursday, May 31, 2012 4:29 PM To: jenkinsci-users@googlegroups.com Subject: Re: Jenkins not catching Build errors I am new at this, so I hope I can provide you with enough information. I have a project called TestingJenkins. I used the Configure link to schedule the Builds. I checked "build periodically" (and right now the schedule is 35 * * * *). On Thursday, May 31, 2012 3:18:21 PM UTC-5, slide wrote: How are you running the build? Are you using the msbuild plugin, a batch build step? More information would be needed in order to help. If the command that runs the build returns a 0 as the return code, Jenkins will normally treat this as a successful build. On Thu, May 31, 2012 at 1:13 PM, Steve Berg wrote: > I am charged with piloting Jenkins for our development team. I wrote a > Hello-World type C# app for initial testing. It contains a Build error, but > Jenkins reports a successful build. Any clues? (Build error is a missing > semi-colon after "Second box". Jenkins is reading the code file from > Subversion.) > > namespace TestingJenkins > { > public partial class MainForm : Form > { > public MainForm() > { > InitializeComponent(); > } > private void btn_Exit_Click(object sender, EventArgs e) > { > MessageBox.Show("First box"); > MessageBox.Show("Second box") > if (MessageBox.Show("Are you sure you want to exit the > program?", > "Verify Exit", MessageBoxButtons.OKCancel) == > DialogResult.OK) > { > if (MessageBox.Show("Really?", > "Second Check", MessageBoxButtons.OKCancel) == > DialogResult.OK) > { > this.Close(); > } > else > { > MessageBox.Show("Not exiting - B"); > } > } > else > { > MessageBox.Show("Not exiting - A"); > } > } > } > } -- Website: http://earl-of-code.com