[Issue 4739] New - Build other projects: "Trigger even if the build is unstable" doesn't work

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4739] New - Build other projects: "Trigger even if the build is unstable" doesn't work

2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739
                 Issue #|4739
                 Summary|Build other projects: "Trigger even if the build is un
                        |stable" doesn't work
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|gui
             Assigned to|issues@hudson
             Reported by|2sober






------- Additional comments from [hidden email] Fri Oct 30 10:40:59 +0000 2009 -------
I have a build with maven defined in hudson which should trigger another build
by using the "Post-build Actions".
I ticked the checkbox "Build other projects" and entered the project name. I
also ticked the checkbox "Trigger even if the build is unstable".
-> Everything works fine if the first build is stable. But if the first build is
unstable the post build is not started! So the checkbox "Trigger even if the
build is unstable" has no effect.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

scm_issue_link
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739






------- Additional comments from [hidden email] Mon Nov  2 06:08:04 +0000 2009 -------
Code changed in hudson
User: : mindless
Path:
 trunk/hudson/main/test/src/test/java/hudson/tasks/BuildTriggerTest.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=23409
Log:
[HUDSON-4739] Add unit test for BuildTrigger


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

Alan Harder-2
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739



User mindless changed the following:

                What    |Old value                 |New value
================================================================================
                      CC|''                        |'mindless'
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Mon Nov  2 06:09:49 +0000 2009 -------
I added a test for the most basic setup of build trigger, and this test passes.
 I'll try with maven next.. can you describe your setup in a bit more detail?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

2sober
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739






------- Additional comments from [hidden email] Mon Nov  2 08:53:56 +0000 2009 -------
The first build checks the scm every 5 minutes for changes and then starts a
maven build with the goals clean an deploy. This maven build is a multi-modules
build with a lot of unit-tests.
When this test has run, even if it is instable, it should start a post-build.
This second project consists out of html-unit tests, which test the web-app
which was built in the first job. It is also a maven build.
-> The problem is, that the second build is not triggered if the first build is
instable because a few tests have failed.
Are these the details you wanted?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

Alan Harder-2
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739






------- Additional comments from [hidden email] Mon Nov  2 14:55:56 +0000 2009 -------
that helps.. also, are you using maven project type in Hudson or a freestyle
project with a maven build step?  what is your OS, java version, webserver
type/version, and is the job running on Hudson master or a slave node?


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

2sober
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739






------- Additional comments from [hidden email] Mon Nov  2 15:27:28 +0000 2009 -------
-we are using a maven build step
-our OS is ubuntu 9.04
-java version: 1.6
-webserver/servletcontainer: tomcat6
-deployed as war int the Hudson master


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

Alan Harder-2
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739



User mindless changed the following:

                What    |Old value                 |New value
================================================================================
             Assigned to|issues@hudson             |mindless
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Nov  3 01:14:24 +0000 2009 -------
Are you sure you mean a freestyle project with a maven build step?  I tried that
and it worked OK, but when I tried a maven type project I do see the behavior
you describe.. working on a fix for that.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

scm_issue_link
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Nov  3 04:03:12 +0000 2009 -------
Code changed in hudson
User: : mindless
Path:
 trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/AbstractMavenBuild.java
 trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenBuild.java
 trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
 trunk/hudson/main/test/src/test/java/hudson/tasks/BuildTriggerTest.java
 trunk/hudson/main/test/src/test/resources/hudson/tasks/maven-empty.zip
 trunk/hudson/main/test/src/test/resources/hudson/tasks/maven-test-failure.zip
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=23455
Log:
[FIXED HUDSON-4739] Fixed "even if unstable" option for triggering other projects
from a Maven type project; added unit test.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4739] Build other projects: "Trigger even if the build is unstable" doesn't work

2sober
In reply to this post by 2sober
https://hudson.dev.java.net/issues/show_bug.cgi?id=4739






------- Additional comments from [hidden email] Tue Nov  3 07:05:57 +0000 2009 -------
We are using a maven type project. I thought a maven build step was the same.
Sorry for not beeing precise enough!

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]