<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>branches Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/branches/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/branches/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:29:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Creating single WAR file from multiple branches</title>
		<link>https://www.scmgalaxy.com/tutorials/creating-single-war-file-from-multiple-branches/</link>
					<comments>https://www.scmgalaxy.com/tutorials/creating-single-war-file-from-multiple-branches/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Thu, 07 Dec 2017 10:28:05 +0000</pubDate>
				<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[branches]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/?p=2096</guid>

					<description><![CDATA[<p>revanthreddy created the topic: Creating single WAR file from multiple branches Hi, I am Revanth working for a product company. [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/creating-single-war-file-from-multiple-branches/">Creating single WAR file from multiple branches</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>revanthreddy created the topic: Creating single WAR file from multiple branches</strong><br />
Hi,</p>
<p>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.</p>
<p>My problem area:</p>
<p>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.</p>
<p>Please let me know who this can be achieved by using Hudson.</p>
<p>Thanks&#038;Regards,<br />
Revanth.</p>
<p><strong>rajeshkumar replied the topic: Re: Creating single WAR file from multiple branches</strong><br />
You can sycn the both source code using hudson &#8211; job configuration&#8230;</p>
<p>In Source Code Management = Subversion<br />
and add as many Repository URL you want to sync&#8230;</p>
<p>Once sync got completed, Write one build.xmkl file and add to hudson job configuration&#8230;</p>
<p>Snippet of code below;<br />
<war destfile="myapp.war" webxml="src/metadata/myapp.xml"><br />
<fileset dir="src/html/myapp"/><br />
<fileset dir="src/jsp/myapp"/>
<lib dir="thirdparty/libs">
<exclude name="jdbc1.jar"/>
</lib>
<classes dir="build/main"/><br />
<zipfileset dir="src/graphics/images/gifs"
prefix="images"/><br />
</war></p>
<p>More reference can be found&#8230;<br />
<a href="http://ant.apache.org/manual/Tasks/war.html">ant.apache.org/manual/Tasks/war.html</a><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>scmuser created the topic: How to restart Hudson?</strong><br />
How to restart hudson if i have installed like java &#8211; jar hudson.war</p>
<p><strong>rajeshkumar replied the topic: Re:How to restart Hudson?</strong><br />
Reply from Hudson community&#8230;</p>
<p>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:</p>
<p>I do this:</p>
<p>start:<br />
nohup $JAVA_HOME/bin/java $HUDSON_JAVA_OPTS -jar $HOME/wars/hudson.war &#8211;controlPort=8001 > $HOME/logs/hudson.log 2>&#038;1 &#038;</p>
<p>restart:<br />
java -cp $HOME/bin/winstone-0.9.10.jar winstone.tools.WinstoneControl reload: &#8211;host=localhost &#8211;port=8001</p>
<p>shutdown:<br />
java -cp $HOME/bin/winstone-0.9.10.jar winstone.tools.WinstoneControl reload: &#8211;host=localhost &#8211;port=8001<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @<a href="http://twitter.com/RajeshKumarIn"> twitter.com/RajeshKumarIn</a></p>
<p><strong>mnanjala replied the topic: Re:How to restart Hudson?</strong><br />
You can restart the service as below</p>
<p>Got to /etc/init/ (basically hudson service script resides here)</p>
<p>hudson.sh restart</p>
<p><strong>rajeshkumar replied the topic: Re:How to restart Hudson?</strong><br />
What about in Windows?</p>
<p>Can you please provide small notes on What are the ways to start &#8211; stop hudson in Linux and Windows?<br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p><strong>mnanjala replied the topic: Re:How to restart Hudson?</strong><br />
Well in windows you make it as a service is the best bet else from GUI itself you can restart.</p>
<p>Command Line would be like this and here windows istreated as a slave.<br />
sc.exe create HudsonSlave binPath= &#8220;C:\WINDOWS\system32\java.exe -jar C:\hudson\slave.jar<br />
-jnlpUrl http://SERVER:PORT/computer/MACHINE/slave-agent.jnlp&#8221; start= auto</p>
<p>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&#8230;</p>
<p><strong>amitanand123 replied the topic: Re:How to restart Hudson?</strong><br />
You can create .bat file<br />
cd d:\Program Files\Hudson<br />
java -DHUDSON_HOME=d:\Hudson -jar hudson.war</p>
<p>or you can use plugins to install as a service</p>
<p>&#8220;Install as Windows Service&#8221;</p>
<p>Installation Directory=d:\Hudson\.hudson</p>
<p><strong>rajeshkumar replied the topic: Re:How to restart Hudson?</strong><br />
I got some good links over net as well&#8230;</p>
<p><a href="http://weblogs.java.net/blog/2008/10/08/install...udson-service-redhat">weblogs.java.net/blog/2008/10/08/install&#8230;udson-service-redhat </a><br />
<a href="http://wiki.hudson-ci.org/display/HUDSON/Instal...son+as+a+Unix+daemon">wiki.hudson-ci.org/display/HUDSON/Instal&#8230;son+as+a+Unix+daemon</a><br />
Regards,<br />
Rajesh Kumar<br />
Twitt me @ <a href="http://twitter.com/RajeshKumarIn">twitter.com/RajeshKumarIn</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/creating-single-war-file-from-multiple-branches/">Creating single WAR file from multiple branches</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/creating-single-war-file-from-multiple-branches/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
