Welcome, Guest
Username Password: Remember me

How to restart Hudson?
(1 viewing) (1) Guest
Hudson
  • Page:
  • 1

TOPIC: How to restart Hudson?

How to restart Hudson? 2 years, 1 month ago #195

  • scmuser
  • OFFLINE
  • Gold Boarder
  • scm master
  • Posts: 237
  • Points: 3427
  • Karma: 0
  • Honor Medal 2009
How to restart hudson if i have installed like java - jar hudson.war

Re:How to restart Hudson? 2 years, 1 month ago #196

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44553
  • Karma: 4
  • Honor Medal 2009
Reply from Hudson community...

Running hudson directly like that runs it under the built-in Winstone web server. You can use some commands that it has to control your app:

I do this:

start:
nohup $JAVA_HOME/bin/java $HUDSON_JAVA_OPTS -jar $HOME/wars/hudson.war --controlPort=8001 > $HOME/logs/hudson.log 2>&1 &

restart:
java -cp $HOME/bin/winstone-0.9.10.jar winstone.tools.WinstoneControl reload: --host=localhost --port=8001

shutdown:
java -cp $HOME/bin/winstone-0.9.10.jar winstone.tools.WinstoneControl reload: --host=localhost --port=8001
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar

Re:How to restart Hudson? 2 years, 1 month ago #209

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3561
  • Karma: 0
  • Honor Medal 2009
You can restart the service as below

Got to /etc/init/ (basically hudson service script resides here)

hudson.sh restart

Re:How to restart Hudson? 2 years, 1 month ago #212

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44553
  • Karma: 4
  • Honor Medal 2009
What about in Windows?

Can you please provide small notes on What are the ways to start - stop hudson in Linux and Windows?
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar

Re:How to restart Hudson? 2 years, 1 month ago #214

  • praveen
  • OFFLINE
  • Moderator
  • Posts: 43
  • Points: 3561
  • Karma: 0
  • Honor Medal 2009
Well in windows you make it as a service is the best bet else from GUI itself you can restart.

Command Line would be like this and here windows istreated as a slave.
sc.exe create HudsonSlave binPath= "C:\WINDOWS\system32\java.exe -jar C:\hudson\slave.jar
-jnlpUrl SERVER:PORT/computer/MACHINE/slave-agent.jnlp" start= auto

This is a very simple version, you can elaborate start scripts which use some program to hide the CMD window, select the good server and try to ping it, get the MACHINE variable with %computername% ,etc...

Re:How to restart Hudson? 2 years ago #217

  • amitanand123
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Points: 22
  • Karma: 0
You can create .bat file
cd d:\Program Files\Hudson
java -DHUDSON_HOME=d:\Hudson -jar hudson.war


or you can use plugins to install as a service


"Install as Windows Service"

Installation Directory=d:\Hudson\.hudson

Re:How to restart Hudson? 1 year, 4 months ago #552

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44553
  • Karma: 4
  • Honor Medal 2009
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar
  • Page:
  • 1
Time to create page: 0.90 seconds

     
    
Home Forum