Author: nickboldt
Date: 2010-12-15 11:47:33 -0500 (Wed, 15 Dec 2010)
New Revision: 27516
Added:
trunk/build/hudson-jobs/
trunk/build/hudson-jobs/config.xml
trunk/build/hudson-jobs/pom.xml
Log:
add template config.xml and pom.xml for creating jobs on the fly
Added: trunk/build/hudson-jobs/config.xml
===================================================================
--- trunk/build/hudson-jobs/config.xml (rev 0)
+++ trunk/build/hudson-jobs/config.xml 2010-12-15 16:47:33 UTC (rev 27516)
@@ -0,0 +1,155 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <actions/>
+ <description>Nightly build using Tycho, monitoring SVN every 6 hrs for changes.
+
+<h3>REQUIRES JDK6</h3>
+
+<p>Results:
+<ul>
+
+<li>Aggregate update sites: <a
href="http://download.jboss.org/jbosstools/updates/nightly/"&am...
:: <a
href="http://download.jboss.org/jbosstools/updates/nightly/trunk/&qu...
from trunk</a>
+<li>Aggregate builds: <a
href="http://download.jboss.org/jbosstools/builds/nightly/"&...
:: <a
href="http://download.jboss.org/jbosstools/builds/nightly/latestBuil...
from trunk</a>
+
+<ul><li>Component builds: <a
href="http://download.jboss.org/jbosstools/builds/staging/"&...
+</ul>
+
+</description>
+ <logRotator>
+ <daysToKeep>5</daysToKeep>
+
+ <numToKeep>5</numToKeep>
+ <artifactDaysToKeep>-1</artifactDaysToKeep>
+ <artifactNumToKeep>-1</artifactNumToKeep>
+ </logRotator>
+ <keepDependencies>false</keepDependencies>
+ <properties>
+ <hudson.model.ParametersDefinitionProperty>
+
+ <parameterDefinitions>
+ <hudson.model.StringParameterDefinition>
+ <name>MAVEN_FLAGS</name>
+ <description>Pass in lifecycle phase and extra flags to Maven, such as:
+<pre>
+clean :: clean before building *
+integration-test :: build and test *
+install :: build, test, and install into m2 repo *
+osgi-test:test :: just (re-)run test(s)
+
+-P helios-no-target :: don't use .target file to provision target; instead generate
on the fly from MANIFEST.MF and feature.xml files
+-P galileo :: enable galileo dependencies
+-P hudson :: enable hudson build ID in feature/plugin qualifiers
+-P !helios :: disable helios target (not available)
+
+-Dmaven.test.skip :: skip compiling and running tests
+-Dmaven.test.skip.exec :: to compile but not run tests in conjunction with
integration-test or install phase
+
+-Dmaven.repo.local=${WORKSPACE}/m2-repository :: path to local m2 repo
+
+-fae :: fail at end
+-fn :: fail never
+
+-o :: offline
+-B :: batch (non-interactive) mode
+-U :: check for updates
+-e :: if error occurs, dump stack into console
+
+-q :: quieter output</pre>
+</description>
+ <defaultValue>clean install -B -U -fae -e
-Dmaven.repo.local=${WORKSPACE}/m2-repository -P
helios-local-target,jbosstools-nightly-trunk,hudson</defaultValue>
+
+ </hudson.model.StringParameterDefinition>
+ </parameterDefinitions>
+ </hudson.model.ParametersDefinitionProperty>
+ <hudson.plugins.disk__usage.DiskUsageProperty/>
+ <hudson.plugins.descriptionsetter.JobByDescription/>
+ <hudson.plugins.jira.JiraProjectProperty>
+
<
siteName>http://opensource.atlassian.com/projects/hibernate/</siteN...
+ </hudson.plugins.jira.JiraProjectProperty>
+
+ </properties>
+ <scm class="hudson.scm.SubversionSCM">
+ <locations>
+ <hudson.scm.SubversionSCM_-ModuleLocation>
+
<
remote>https://svn.jboss.org/repos/jbosstools/trunk/TESTING</remote...
+ <local>sources</local>
+ </hudson.scm.SubversionSCM_-ModuleLocation>
+ <hudson.scm.SubversionSCM_-ModuleLocation>
+
+ <
remote>https://svn.jboss.org/repos/jbosstools/trunk/build</remote>
+ </hudson.scm.SubversionSCM_-ModuleLocation>
+ </locations>
+ <useUpdate>true</useUpdate>
+ <doRevert>false</doRevert>
+ <browser class="hudson.scm.browsers.FishEyeSVN">
+ <
url>http://fisheye.jboss.com/browse/JBossTools/</url>
+
+ <rootModule/>
+ </browser>
+ <excludedRegions/>
+ <includedRegions/>
+ <excludedUsers/>
+ <excludedRevprop/>
+ <excludedCommitMessages/>
+ </scm>
+ <assignedNode>RHEL_any</assignedNode>
+
+ <canRoam>false</canRoam>
+ <disabled>false</disabled>
+ <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
+ <jdk>java16_default</jdk>
+ <triggers class="vector">
+ <hudson.triggers.SCMTrigger>
+ <spec>20 3,9,15,21 * * * </spec>
+
+ </hudson.triggers.SCMTrigger>
+ </triggers>
+ <concurrentBuild>false</concurrentBuild>
+ <builders>
+ <hudson.tasks.Maven>
+ <targets>${MAVEN_FLAGS} -DJOB_NAME=${JOB_NAME} -DBUILD_ID=${BUILD_ID}
-DBUILD_NUMBER=${BUILD_NUMBER}</targets>
+ <mavenName>maven-3.0</mavenName>
+
+ <jvmOptions>-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m</jvmOptions>
+ <usePrivateRepository>true</usePrivateRepository>
+ </hudson.tasks.Maven>
+ <hudson.tasks.Shell>
+ <command># script here:
http://anonsvn.jboss.org/repos/jbosstools/trunk/build/publish.sh
+. ${WORKSPACE}/build/publish.sh</command>
+ </hudson.tasks.Shell>
+ </builders>
+
+ <publishers>
+ <hudson.tasks.ArtifactArchiver>
+ <artifacts>**/*Update*.zip</artifacts>
+ <excludes>**/target/**</excludes>
+ <latestOnly>true</latestOnly>
+ <zip>false</zip>
+ </hudson.tasks.ArtifactArchiver>
+
+ <hudson.tasks.junit.JUnitResultArchiver>
+ <testResults>**/TEST-*.xml</testResults>
+ <keepLongStdio>false</keepLongStdio>
+ <testDataPublishers/>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.Mailer>
+ <recipients/>
+ <notifyEveryBuild>false</notifyEveryBuild>
+
+ <dontNotifyOnModules>false</dontNotifyOnModules>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ </publishers>
+ <buildWrappers>
+
+ <hudson.plugins.build__timeout.BuildTimeoutWrapper>
+ <timeoutMinutes>120</timeoutMinutes>
+ <failBuild>false</failBuild>
+ </hudson.plugins.build__timeout.BuildTimeoutWrapper>
+ <hudson.plugins.xvnc.Xvnc>
+ <takeScreenshot>false</takeScreenshot>
+ </hudson.plugins.xvnc.Xvnc>
+
+ </buildWrappers>
+</project>
\ No newline at end of file
Added: trunk/build/hudson-jobs/pom.xml
===================================================================
--- trunk/build/hudson-jobs/pom.xml (rev 0)
+++ trunk/build/hudson-jobs/pom.xml 2010-12-15 16:47:33 UTC (rev 27516)
@@ -0,0 +1,84 @@
+<project
+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
+
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.hudson.jobs.all</artifactId>
+ <name>org.jboss.tools.hudson.jobs.all</name>
+ <version>0.0.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.maven.plugin</groupId>
+ <artifactId>hudson-job-publisher-plugin</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>install</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+<!--
+To be able to connect to server, must first import certificate or you may get this
error:
+
+ javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable
to find valid certification path to requested target
+
+AS USER (with Firefox):
+
+Browse to
https://hudson.qa.jboss.com/hudson & accept the cert.
+
+ Edit > Preferences > Advanced > Encryption > View Certificates > find
hudson cert > Export to file /tmp/hudson.qa.jboss.com.cert
+
+AS ROOT (default password is "changeit"):
+
+ # /opt/sun-java2-6.0/jre/bin/keytool -list -keystore
/opt/sun-java2-6.0/jre/lib/security/cacerts | grep hudson
+ # /opt/sun-java2-6.0/jre/bin/keytool -import -alias hudson.qa -keystore
/opt/sun-java2-6.0/jre/lib/security/cacerts -file /tmp/hudson.qa.jboss.com.cert
+ # /opt/sun-java2-6.0/jre/bin/keytool -list -keystore
/opt/sun-java2-6.0/jre/lib/security/cacerts | grep hudson
+
+To run, make sure that JAVA_HOME is set to the path where you imported the cert, eg.:
+
+ $ export JAVA_HOME=/opt/sun-java2-6.0/; mvn clean install
+-->
+ <!-- more output w/ verbose; default false -->
+ <verbose>true</verbose>
+
+ <!-- server and connection details -->
+ <hudsonURL>http://localhost:8080/</hudsonURL>
+ <!-- <
hudsonURL>https://hudson.qa.jboss.com/hudson/</hudsonURL>
-->
+ <username>SET USERNAME HERE</username>
+ <password>SET PASSWORD HERE</password>
+
+ <!-- default true: existing jobs will be overwritten; set false to throw
+ an error if job exists -->
+ <replaceExistingJob>true</replaceExistingJob>
+
+ <!-- local file path to use as template when publishing jobs -->
+ <jobTemplateFile>config.xml</jobTemplateFile>
+
+ <!-- job configuration: one buildURL -->
+ <
buildURL>https://svn.jboss.org/repos/jbosstools/trunk/build</buildU...
+ <!-- then many identically configured components -->
+ <components>TESTING</components>
+ <!-- <components>archives, as, birt, bpel, bpmn, cdi, common, deltacloud,
+ esb, examples, flow, freemarker, gwt, hibernatetools, jbpm, jmx, jsf, jst,
+ maven, modeshape, portlet, profiler, runtime, seam, smooks, struts, tptp,
+ usage, vpe, ws</components> -->
+
+ <componentJobNameSuffix>-TESTTESTTEST</componentJobNameSuffix>
+ <!-- then some special-case components (not in JBT tree) -->
+ <!--<properties> <property>
<name>jbosstools-pi4soa-stable-branch</name>
+ <
value>https://pi4soa.svn.sourceforge.net/svnroot/pi4soa/branches/pi4so...
+ </property> <property>
<name>jbosstools-teiid-designer-stable-branch</name>
+ <
value>http://anonsvn.jboss.org/repos/tdesigner/branches/7.1</value>
</property>
+ <property> <name>jbosstools-savara-stable-branch</name>
<
value>http://anonsvn.jboss.org/repos/savara/branches/1.1.x</value>
+ </property> </properties> -->
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+