MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Creating single WAR file from multiple branches

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

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Team Foundation Build 2010: Architecture, Build Definitions, and Migration from TFS 2008

Team Foundation Build 2010 introduced a controller/agent build architecture, richer build definitions, and gated check-in workflows for TFS teams. This revised guide turns the original topic list into a practical reference for setup, customization, and migration planning.

Read More

Build and Release Engineer Training: Objectives, Curriculum, Tools, and Enrollment Details

A structured overview of the original Build and Release Engineer training post, including target audience, learning objectives, tool coverage, schedule, fees, and enrollment links. This revised version keeps the original details while organizing them into a practical reference format.

Read More

Build and Release Management in the SDLC: SCM Concepts, Workflow, and Practical Examples

This guide explains how build and release management fits into the software development lifecycle and how SCM keeps delivery reproducible. It covers core concepts, a practical workflow, and example Git and CI pipeline patterns.

Read More

IBM Rational Build Forge Training Guide: Curriculum, Workflow, and Hands-On Labs

This revised guide turns a brief course outline into a practical IBM Rational Build Forge training reference. It covers the core objects, execution workflow, admin topics, and realistic lab commands teams can use in corporate training.

Read More

.NET Build and Release Training: Curriculum, Toolchain, Workflow, and Enrollment

A structured, engineer-friendly rewrite of the original .NET Build and Release course page. Review objectives, tool coverage, CI/CD workflow, prerequisites, fees, and key links in one place.

Read More

NAnt Training Guide for Build and Release Engineers: Syllabus, Labs, and Workflow

A revised NAnt training page focused on practical skills for SCM, build, and release engineers. It includes the original syllabus topics, delivery options, a CI workflow diagram, and hands-on NAnt examples.

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x