Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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

Maven Learning Resources: A Practical Study Plan with the Better Builds with Maven PDF

The original post shared one Maven book link. This revised guide preserves that resource and adds a practical learning workflow, comparison table, and hands-on Maven commands.

Read More

Maven CLI Options Reference: Practical Flags, Comparisons, and Command Examples

A structured Maven command-line reference for CI/CD and local builds, including option comparisons, workflow guidance, and ready-to-use mvn commands. Based on the original 2013 cheatsheet, updated for readability and operational use.

Read More

Maven2 Web Application Setup: Legacy Step-by-Step Guide with Build, Jetty, and Site Reporting

A practical Maven2-era walkthrough for creating a Java web app, running core build goals, and generating docs and reports from pom.xml. This revision keeps the original workflow but adds structure, comparisons, and implementation-ready snippets.

Read More

Maven Clover for Distributed Java Applications: Instrument, Collect, and Aggregate Coverage

Learn a practical Clover + Maven workflow for distributed test environments. This walkthrough covers instrumentation, remote execution, coverage file collection, and final report generation.

Read More

Maven Reporting Plugins: Configure Site Reports in pom.xml (All, Selective, and reportSets)

Maven reporting plugins generate project documentation during the site lifecycle and are configured in the reporting section of pom.xml. This guide shows how to run all reports, select specific ones, and structure reportSets cleanly.

Read More

Maven Properties Reference: project.*, settings.*, env.*, and Custom POM Values

Maven properties are the backbone of reusable, environment-aware builds. This revised reference explains major property sources, interpolation flow, and practical commands for inspecting real values.

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