[Issue 2898] New - Ability to change ant target depending on build trigger

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

[Issue 2898] New - Ability to change ant target depending on build trigger

schallm
https://hudson.dev.java.net/issues/show_bug.cgi?id=2898
                 Issue #|2898
                 Summary|Ability to change ant target depending on build trigge
                        |r
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|other
             Assigned to|issues@hudson
             Reported by|schallm






------- Additional comments from [hidden email] Wed Jan 21 15:22:29 +0000 2009 -------
I would like a job to build my projects, but build a different ant target
depending on how it was triggered.  For example I would like to have the normal
build run off Polling the SCM.  This does an svn update, builds the project and
runs some unit tests.  Every night at 2am I would like to do all the above, but
delete my build folder first so I get a totally clean build and also run some
integration tests.

If I could somehow tell ant to run a different target for the different build
triggers, or set an environment variable that I could look at inside the ant
build, or...

Is this currently possible?

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

Reply | Threaded
Open this post in threaded view
|

[Issue 2898] Ability to change ant target depending on build trigger

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



User mdonohue changed the following:

                What    |Old value                 |New value
================================================================================
     IssuesThisDependsOn|                          |291
--------------------------------------------------------------------------------


This issue depends on issue 291, which changed state:

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




------- Additional comments from [hidden email] Mon May 11 02:23:57 +0000 2009 -------
This could be done as a plugin.

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

Reply | Threaded
Open this post in threaded view
|

[Issue 2898] Ability to change ant target depending on build trigger

jhm-4
In reply to this post by schallm
https://hudson.dev.java.net/issues/show_bug.cgi?id=2898



User jhm changed the following:

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




------- Additional comments from [hidden email] Tue May 12 12:28:22 +0000 2009 -------
If Hudson could pass the trigger event (as text) to the builders they could
react on them. E.g.
  ant -Dhudson.trigger=manual mytarget
  ant -Dhudson.trigger=downstream mytarget
...

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