Author: nickboldt
Date: 2011-03-29 11:59:19 -0400 (Tue, 29 Mar 2011)
New Revision: 30109
Added:
trunk/build/hudson-jobs/cache/
trunk/build/hudson-jobs/cache/https/
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt...
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt...
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt...
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt...
trunk/build/hudson-jobs/pom-sync.xml
Log:
new sync tool - pom-sync.xml + sample config.xml
Added:
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt...
===================================================================
---
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt...
(rev 0)
+++
trunk/build/hudson-jobs/cache/https/hudson.qa.jboss.com/hudson/view/DevSt... 2011-03-29
15:59:19 UTC (rev 30109)
@@ -0,0 +1,143 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <actions/>
+ <description>Nightly build using Tycho, monitoring SVN every 6 hrs for changes.
+
+<h2><a style="color:#FF9933"
href="http://download.jboss.org/jbosstools/builds/cascade/trunk.html...
Job Cascade &amp; Results</a></h2>
+</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 hudson :: enable hudson build ID in feature/plugin qualifiers
+
+-Dmaven.test.skip :: skip compiling and running tests
+
+-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 hudson</defaultValue>
+ </hudson.model.StringParameterDefinition>
+ </parameterDefinitions>
+ </hudson.model.ParametersDefinitionProperty>
+ <hudson.plugins.descriptionsetter.JobByDescription/>
+ <hudson.plugins.disk__usage.DiskUsageProperty/>
+ <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>http://anonsvn.jboss.org/repos/jbosstools/trunk/FIXME</remot...
+ <local>sources</local>
+ </hudson.scm.SubversionSCM_-ModuleLocation>
+ <hudson.scm.SubversionSCM_-ModuleLocation>
+
<
remote>http://anonsvn.jboss.org/repos/jbosstools/trunk/build</remot...
+ </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>true</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}</targets>
+ <mavenName>maven-3.0.1</mavenName>
+ <jvmOptions>-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m</jvmOptions>
+ <pom>${WORKSPACE}/build/parent/pom.xml</pom>
+ <usePrivateRepository>false</usePrivateRepository>
+ </hudson.tasks.Maven>
+ <hudson.tasks.Maven>
+ <targets>${MAVEN_FLAGS} -DJOB_NAME=${JOB_NAME} -DBUILD_ID=${BUILD_ID}
-DBUILD_NUMBER=${BUILD_NUMBER}</targets>
+ <mavenName>maven-3.0.1</mavenName>
+ <jvmOptions>-Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m</jvmOptions>
+ <pom>${WORKSPACE}/sources/pom.xml</pom>
+ <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.junit.JUnitResultArchiver>
+ <testResults>**/TEST-*.xml</testResults>
+ <keepLongStdio>false</keepLongStdio>
+ <testDataPublishers/>
+ </hudson.tasks.junit.JUnitResultArchiver>
+ <hudson.tasks.ArtifactArchiver>
+ <artifacts>**/*Update*.zip</artifacts>
+ <excludes>**/target/**</excludes>
+ <latestOnly>true</latestOnly>
+ <zip>false</zip>
+ </hudson.tasks.ArtifactArchiver>
+ <hudson.plugins.textfinder.TextFinderPublisher>
+
<fileSet>results/*/logs/ERRORLOG.txt,results/*/logs/FAIL_LOG.txt</fileSet>
+ <regexp>ERROR|AILURE</regexp>
+ <succeedIfFound>false</succeedIfFound>
+ <unstableIfFound>true</unstableIfFound>
+ <alsoCheckConsoleOutput>false</alsoCheckConsoleOutput>
+ </hudson.plugins.textfinder.TextFinderPublisher>
+ <hudson.tasks.Mailer>
+ <recipients/>
+ <notifyEveryBuild>false</notifyEveryBuild>
+ <dontNotifyOnModules>false</dontNotifyOnModules>
+ <dontNotifyEveryUnstableBuild>false</dontNotifyEveryUnstableBuild>
+ <sendToIndividuals>true</sendToIndividuals>
+ </hudson.tasks.Mailer>
+ <hudson.plugins.emotional__hudson.EmotionalHudsonPublisher/>
+ </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>
Added: trunk/build/hudson-jobs/pom-sync.xml
===================================================================
--- trunk/build/hudson-jobs/pom-sync.xml (rev 0)
+++ trunk/build/hudson-jobs/pom-sync.xml 2011-03-29 15:59:19 UTC (rev 30109)
@@ -0,0 +1,76 @@
+<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-sync-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>false</verbose>
+
+ <!-- server and connection details -->
+ <!-- <
hudsonURL>https://hudson.qa.jboss.com/hudson/</hudsonURL>
-->
+ <hudsonURL>http://localhost:8080/</hudsonURL>
+ <username>SET USERNAME HERE</username>
+ <password>SET PASSWORD HERE</password>
+
+ <!-- to select a subset of jobs, use these filters; default none (all jobs on
server!) -->
+ <!-- <viewFilter>view/DevStudio_Stable_Branch/</viewFilter> -->
+ <viewFilter>view/DevStudio_Trunk/</viewFilter>
+
+ <!-- default .* to select all -->
+ <regexFilter>.*</regexFilter>
+
+ <!-- if there's an existing config.xml (not config.$timestamp.xml) then
overwrite it if true -->
+ <overwriteExistingConfigXMLFile>true</overwriteExistingConfigXMLFile>
+
+ <!-- either "pull" updated job config.xml file(s) from the server
(default, reads only & stores a copy locally), or
+ "push" updates from local to the server (replacing existing
job config.xml on server :: CAUTION!)
+ -->
+ <operation>push</operation>
+
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
+