[Issue 4719] New - Hudson environment variable EXECUTOR_NUMBER set to 1 for the first two executors

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

[Issue 4719] New - Hudson environment variable EXECUTOR_NUMBER set to 1 for the first two executors

mdemmitt
https://hudson.dev.java.net/issues/show_bug.cgi?id=4719
                 Issue #|4719
                 Summary|Hudson environment variable EXECUTOR_NUMBER set to 1 f
                        |or the first two executors
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Linux
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|ant
             Assigned to|issues@hudson
             Reported by|mdemmitt






------- Additional comments from [hidden email] Tue Oct 27 01:20:50 +0000 2009 -------
I am creating a Hudson task that uses the Hudson-defined EXECUTOR_NUMBER
environment variable documented here:

http://wiki.hudson-ci.org/display/HUDSON/Building+a+software+project#Buildingasoftwareproject-below

When configuring the task, I click on the "Advanced" button under the "Invoking
Ant" section.  I then set "Properties" to EXECUTOR_NUMBER=$EXECUTOR_NUMBER.
When Hudson is configured to run N executors (where N > 2), the first two
executors that run have EXECUTOR_NUMBER=1.  All subsequent executors have
EXECUTOR_NUMBER=(N-1).

In the documentation, EXECUTOR_NUMBER is said to be unique to for each executor,
however the first two executors always have the same EXECUTOR_NUMBER.

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

Reply | Threaded
Open this post in threaded view
|

[Issue 4719] Hudson environment variable EXECUTOR_NUMBER set to 1 for the first two executors

Alan Harder-2
https://hudson.dev.java.net/issues/show_bug.cgi?id=4719



User mindless changed the following:

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




------- Additional comments from [hidden email] Fri Oct 30 06:17:48 +0000 2009 -------
Is ant required to see this problem?  I wasn't able to reproduce the problem
with a simple shell script:

Current svn on OSX:
1) Set Hudson master node to 4 executors
2) Create 4 freestyle jobs, each with 1 shell step that does "echo
$EXECUTOR_NUMBER; sleep 30"
3) Run the 4 jobs

I saw the numbers 0, 1, 3, 2.  Also tried a single job with the "concurrent
builds (beta)" option checked, and that worked too.

Are you able to reproduce this problem from a new Hudson install?  If so, can
you post the steps to do so?

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

Reply | Threaded
Open this post in threaded view
|

[Issue 4719] Hudson environment variable EXECUTOR_NUMBER set to 1 for the first two executors

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



User mdemmitt changed the following:

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




------- Additional comments from [hidden email] Fri Oct 30 20:22:43 +0000 2009 -------
This issue is fixed in version 1.330

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