[Issue 4004] New - Updating configuration of multi-configuration jobs causes dependency loss

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

[Issue 4004] New - Updating configuration of multi-configuration jobs causes dependency loss

pajp
https://hudson.dev.java.net/issues/show_bug.cgi?id=4004
                 Issue #|4004
                 Summary|Updating configuration of multi-configuration jobs cau
                        |ses dependency loss
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|other
             Assigned to|issues@hudson
             Reported by|pajp






------- Additional comments from [hidden email] Thu Jul  9 12:57:53 +0000 2009 -------
To reproduce:

Create up a Hudson multi-configuration job, called "Test Job 1". In the Configuration Matrix check "Axes" and
enter e.g. "CLIENT" in the "Name" field and "foo bar" in the "Values" field. In the build steps, add an "Execute shell"
step and enter a simple shell script, e.g. "echo `date` $CLIENT > dummy-artifact.txt"-

Create a new Hudson job, called "Test Job 2", by copying "Test Job 1".

Go back to the configuration of "Test Job 1", and under "Post-build Actions", check "Build other projects", and enter
"Test Job 2" in the "Projects to build" text field. Save the configuration.

You will now see that "Test Job 2" is a downstream project of "Test Job 1".

Click "Build Now" of Test Job 1 to test the build triggers. Both configurations of Test Job 1 should be built, and then
both configurations of Test Job 2.

Now, go to the Configure page for Test Job 2. Verify that under "Build triggers", "Test Job 1" is listed under "Build
after other projects are built", but don't touch this value. Instead, go to (for example) the Description field there
and write anything. "Gazonk" is a good value. Click "Save".

EXPECTED RESULT: The description of "Test Job 2" reads "Gazonk". The main page of "Test Job 2" still lists "Test Job
1" as an upstream project, and the main page of "Test Job 1" lists "Test Job 2" as a downstream project.

OBSERVED RESULT: The description of "Test Job 2" reads "Gazonk" as expected. But the build
triggers/dependencies of "Test Job 1" and "Test Job 2" are gone. From now on, building Test Job 1 will not trigger a
build of Test Job 2, even though the only thing that was changed was the Description field of Test Job 2.

Re-adding "Test Job 2" as a downstream to "Test Job 1" solves the problem, but the build trigger goes away the
next time the configuration of "Test Job 2" is changed (but NOT when the configuration of Test Job 1 is changed).
Description was chosen as an example here because it should be unrelated to most other configuration items, but
the problems happen with other (if not all) configuration fields as well.

Reproduced on Hudson v.1.311 (Linux) and v.1.314 (Mac OS X)

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

Reply | Threaded
Open this post in threaded view
|

[Issue 4004] Updating configuration of multi-configuration jobs causes dependency loss

mdonohue
https://hudson.dev.java.net/issues/show_bug.cgi?id=4004



User mdonohue changed the following:

                What    |Old value                 |New value
================================================================================
            Subcomponent|other                     |matrix
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Thu Jul  9 14:08:24 +0000 2009 -------
Moving to 'matrix' subcomponent

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

Reply | Threaded
Open this post in threaded view
|

[Issue 4004] Updating configuration of multi-configuration jobs causes dependency loss

mdonohue
In reply to this post by pajp
https://hudson.dev.java.net/issues/show_bug.cgi?id=4004



User mdonohue changed the following:

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




------- Additional comments from [hidden email] Thu Jul  9 14:10:44 +0000 2009 -------
Duplicate

*** This issue has been marked as a duplicate of 3607 ***

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