Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 391859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:06:09+00:00 2026-05-12T16:06:09+00:00

I have a Hudson job that launches a .bat script file that itself launches

  • 0

I have a Hudson job that launches a .bat script file that itself launches my Jonas application server and a couple of other tasks too.

The script is properly launched from Hudson on my slave, then my application server is started but at the moment my Hudson job ends the application server is killed. This is due to the fact that all the processes launched during this process share the same pipes (stdin/sdtout/stderr) as explained here http://wiki.hudson-ci.org/display/HUDSON/Spawning+processes+from+build.

As you already understood, this is really not what I want! Actually I have another Hudson job that is launched right after the one I described above to test my application. Thus, as my application server has been killed at the same moment the Hudson jobs ended, my tests cannot run at all…

So how can I solve this?

This problem is strictly linked to the fact that it is Hudson that launches the script, if I launch the same script from the command line the problem does not occur at all…

In the link given above they propose to use the “at” command which allows to schedule a task in Windows. I don’t really want to use this solution as this implies modifications in my .bat script because I launch it from Hudson.

  • I suppose there is a way to say to my .bat file “Ok you are going to launch my application server BUT in an independent process”. Do you guys know how to do this?
  • Maybe Hudson is able to solve this issue? Do you Hudson’s guys know how?

Thanks in advance for you help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:06:09+00:00Added an answer on May 12, 2026 at 4:06 pm

    The best practice here is to clear the environment variable BUILD_ID. When cleaning up after a build job, Hudson looks at the BUILD_ID environment variable in each process, to kill off any lingering processes. So by clearing that environment variable, Hudson will not kill the process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have added a new job in my hudson server which builds the project
I have a hudson build server (Windows) that does not have Websphere installed. I
For automated testing (using Hudson) I have a script that generates a bunch of
I have a Hudson job that just does a check-out/update to a third-party library.
I have a job running under Hudson that has not progressed from Started by
I have a Jenkins (Hudson) server setup that runs tests on a variety of
I have hudson job which will do both Build (ant) / deployment(shell commands) tasks
I have such a situation : one hudson job for one project that is
We have at work a Hudson machine that acts as a build server for
In Hudson we have a job that deploys a specified subversion tag to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.