Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4719

Hudson environment variable EXECUTOR_NUMBER set to 1 for the first two executors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Critical Critical
    • ant-plugin
    • None
    • Platform: All, OS: Linux

      I am creating a Hudson task that uses the Hudson-defined EXECUTOR_NUMBER
      environment variable documented here:

      http://wiki.jenkins-ci.org/display/JENKINS/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.

            Unassigned Unassigned
            mdemmitt mdemmitt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: