revanthreddy created the topic: Creating single WAR file from multiple branches
Hi,
I am Revanth working for a product company. We are using Hudson for creating WAR files from SVN for our daily build purposes. Until these days everything went fine, but in recent days we have a change in SVN structure where I am stuck for preparing WAR file. Any help in this regard is highly appreciated.
My problem area:
We have a branch called βAβ where platform files are checked in and another branch called βBβ where product files are checked in. Through Hudson I need to prepare WAR file by combing βAβ branch files on the top it branch βBβ files. I need to checkout first βAβ branch and then on the top it βBβ branch files and build the WAR file.
Please let me know who this can be achieved by using Hudson.
Thanks&Regards,
Revanth.
rajeshkumar replied the topic: Re: Creating single WAR file from multiple branches
You can sycn the both source code using hudson β job configurationβ¦
In Source Code Management = Subversion
and add as many Repository URL you want to syncβ¦
Once sync got completed, Write one build.xmkl file and add to hudson job configurationβ¦
Snippet of code below;
More reference can be foundβ¦
ant.apache.org/manual/Tasks/war.html
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
scmuser created the topic: How to restart Hudson?
How to restart hudson if i have installed like java β jar hudson.war
rajeshkumar replied the topic: Re:How to restart Hudson?
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
Twitt me @ twitter.com/RajeshKumarIn
mnanjala replied the topic: Re:How to restart Hudson?
You can restart the service as below
Got to /etc/init/ (basically hudson service script resides here)
hudson.sh restart
rajeshkumar replied the topic: Re:How to restart Hudson?
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
Twitt me @ twitter.com/RajeshKumarIn
mnanjala replied the topic: Re:How to restart Hudson?
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 http://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β¦
amitanand123 replied the topic: Re:How to restart Hudson?
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
rajeshkumar replied the topic: Re:How to restart Hudson?
I got some good links over net as wellβ¦
weblogs.java.net/blog/2008/10/08/installβ¦udson-service-redhat
wiki.hudson-ci.org/display/HUDSON/Instalβ¦son+as+a+Unix+daemon
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
Iβm a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I am working at Cotocus. I blog tech insights at DevOps School, travel stories at Holiday Landmark, stock market tips at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at I reviewed , and SEO strategies at Wizbrand.
Do you want to learn Quantum Computing?
Please find my social handles as below;
Rajesh Kumar Personal Website
Rajesh Kumar at YOUTUBE
Rajesh Kumar at INSTAGRAM
Rajesh Kumar at X
Rajesh Kumar at FACEBOOK
Rajesh Kumar at LINKEDIN
Rajesh Kumar at PINTEREST
Rajesh Kumar at QUORA
Rajesh Kumar at WIZBRAND