Look into the msbuild plugin on the Jenkins wiki.

Sent from my Windows Phone
------------------------------
From: Steve Berg
Sent: 5/31/2012 2:07 PM
To: jenkinsci-users@googlegroups.com
Subject: Re: Jenkins not catching Build errors

Using Visual Studio solutions files sounds promising.  Where can I found
out how to do that from Jenkins?

On Thursday, May 31, 2012 3:59:36 PM UTC-5, slide wrote:

> If you are using C# code, I might recommend installing the msbuild
> plugin and setting up an msbuild project file for building your
> source. You can even use Visual Studio solutions or csproj files.
>
> On Thu, May 31, 2012 at 1:57 PM, Steve Berg wrote:
> > OK, I'm seeing a section call Build with a button labeled Add build
> step,
> > and I hadn't put anything there.  I'll check around with my team to see
> if
> > they can help me use Ant or something to set up the Build.
> > Thanks for your help.
> >
> > On Thursday, May 31, 2012 3:44:07 PM UTC-5, slide wrote:
> >>
> >> This looks like its only polling the SCM, but not actually building
> >> the code. You need to add build steps to the job to actually build the
> >> code.
> >>
> >> On Thu, May 31, 2012 at 1:41 PM, Steve Berg wrote:
> >> > Here is my Console Output:
> >> >
> >> > Started by timer
> >> > Building in workspace /var/lib/jenkins/jobs/TestingJenkins/workspace
> >> > Updating https://... (hiding the URL for security)
> >> > At revision 2026
> >> > no change for https://... since the previous build
> >> > Finished: SUCCESS
> >> >
> >> >
> >> >
> >> > I followed the URL link and looked at the code, and it is the
> >> >
> >> > incorrect code I placed in Subversion.  What evidence should I
> >> >
> >> > be looking for that Jenkins is running the build?
> >> >
> >> >
> >> > On Thursday, May 31, 2012 3:33:16 PM UTC-5, Bob Dixon wrote:
> >> >>
> >> >>   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
> >>
> >>
> >>
> >> --
> >> Website: http://earl-of-code.com
>
>
>
> --
> Website: http://earl-of-code.com
>

Reply via email to