• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • batch-task-plugin
    • None

      Hi

      Now I want to use distributed capability of hudson and I some batchtask in order to due some specific packaging task for each job after a release on nexus.
      These task are scripted in shellscripts.

      However it does not work with master slave architecture because a batch task is only applied for the master. A job that is executed always on a slave can not have batch task that relies on local script!

      Is a way to improve this plugin, if a job must be run on a slave the a batch task executed should relies on files and remote resources.

          [JENKINS-5715] BatchTask plugin and hudson slave

          Alan Harder added a comment -

          Can you provide steps to demonstrate the problem? I'm pretty sure when I've run batch tasks they run on the same slave node where the main job ran.

          Alan Harder added a comment - Can you provide steps to demonstrate the problem? I'm pretty sure when I've run batch tasks they run on the same slave node where the main job ran.

          Alan Harder added a comment -

          bump

          Alan Harder added a comment - bump

          aeschbacher added a comment -

          I can confirm the bug (see also: JENKINS-5872).

          Step to reproduce:

          • run master on windows node
          • create linux slave (launch method = SSH)
          • create project A tied to linux node
          • create a batch task for project A doing just:
            hostname; pwd; ls -l

          aeschbacher added a comment - I can confirm the bug (see also: JENKINS-5872 ). Step to reproduce: run master on windows node create linux slave (launch method = SSH) create project A tied to linux node create a batch task for project A doing just: hostname; pwd; ls -l

          Alan Harder added a comment -

          Anything else special about the job? (custom workspace setting?)
          What versions of Hudson and Batch Task plugin do you have? Can you try the latest if not already using them?

          My simple test env on OS X has a slave node that actually runs on the same system, but in my testing the batch task does run on the "slave" (waits for the slave to launch, I see the right pwd under the slave root dir).

          Alan Harder added a comment - Anything else special about the job? (custom workspace setting?) What versions of Hudson and Batch Task plugin do you have? Can you try the latest if not already using them? My simple test env on OS X has a slave node that actually runs on the same system, but in my testing the batch task does run on the "slave" (waits for the slave to launch, I see the right pwd under the slave root dir).

            kohsuke Kohsuke Kawaguchi
            fabrice31 fabrice31
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: