ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r1311299 - in /ant/ivy/updatesite/trunk: ./ .project build.properties build.xml
Date Mon, 09 Apr 2012 16:04:47 GMT
Author: hibou
Date: Mon Apr  9 16:04:47 2012
New Revision: 1311299

URL: http://svn.apache.org/viewvc?rev=1311299&view=rev
Log:
Re-setup a build of the updatesite for jenkins

Added:
    ant/ivy/updatesite/trunk/.project   (with props)
Modified:
    ant/ivy/updatesite/trunk/   (props changed)
    ant/ivy/updatesite/trunk/build.properties
    ant/ivy/updatesite/trunk/build.xml

Propchange: ant/ivy/updatesite/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Mon Apr  9 16:04:47 2012
@@ -1,3 +1,5 @@
 local.build.properties
 work
 dist
+build
+dependencies

Added: ant/ivy/updatesite/trunk/.project
URL: http://svn.apache.org/viewvc/ant/ivy/updatesite/trunk/.project?rev=1311299&view=auto
==============================================================================
--- ant/ivy/updatesite/trunk/.project (added)
+++ ant/ivy/updatesite/trunk/.project Mon Apr  9 16:04:47 2012
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>ivyde-updatesite</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+	</buildSpec>
+	<natures>
+	</natures>
+</projectDescription>

Propchange: ant/ivy/updatesite/trunk/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ant/ivy/updatesite/trunk/.project
------------------------------------------------------------------------------
    svn:keywords = Date Revision Author HeadURL Id

Propchange: ant/ivy/updatesite/trunk/.project
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: ant/ivy/updatesite/trunk/build.properties
URL: http://svn.apache.org/viewvc/ant/ivy/updatesite/trunk/build.properties?rev=1311299&r1=1311298&r2=1311299&view=diff
==============================================================================
--- ant/ivy/updatesite/trunk/build.properties (original)
+++ ant/ivy/updatesite/trunk/build.properties Mon Apr  9 16:04:47 2012
@@ -20,3 +20,12 @@
 # For deeper debugging of the build system, set it to true
 eclipse.consoleLog=false
 
+
+# properties for jenkins build environment
+jenkins.baseUrl=http://builds.apache.org/
+jenkins.eclipse.name=eclipse-SDK-3.7.1-win32
+jenkins.eclipse.dropFile=R-3.7.1-201109091335/${jenkins.eclipse.name}.zip
+jenkins.eclipse.download.url=http://www.eclipse.org/downloads/download.php
+jenkins.eclipse.mirror.url=http://carroll.aset.psu.edu/pub/eclipse/eclipse/downloads/drops
+jenkins.eclipse.mirror.id=546
+jenkins.eclipse.url=${jenkins.eclipse.download.url}?file=/eclipse/downloads/drops/${jenkins.eclipse.dropFile}&url=${jenkins.eclipse.mirror.url}/${jenkins.eclipse.dropFile}&mirror_id=${jenkins.eclipse.mirror.id}

Modified: ant/ivy/updatesite/trunk/build.xml
URL: http://svn.apache.org/viewvc/ant/ivy/updatesite/trunk/build.xml?rev=1311299&r1=1311298&r2=1311299&view=diff
==============================================================================
--- ant/ivy/updatesite/trunk/build.xml (original)
+++ ant/ivy/updatesite/trunk/build.xml Mon Apr  9 16:04:47 2012
@@ -385,4 +385,100 @@ ${ASL2-header}
         <echo message="SHA Checksum verify passed successfully" />
     </target>
 
+    <!-- 
+        ===================================================================================================================
+        Targets dedicated to be used by Jenkins
+        
+        The 'jenkins-prepare' have to be launched first in its own ant call: it will setup
build properties
+        Then 'jenkins-build' will do build the updatesite (it has to be called in a separate
ant call from 'jenkins-prepare')
+        ===================================================================================================================
   
+      -->
+
+    <target name="jenkins-prepare" depends="jenkins-prepare-eclipse">
+        <!-- we don't want to modify the checked in updatesite, so we will make it build
in another place -->
+        <echo file="local.build.properties">
+dist.dev.dir=${basedir}/build
+dist.release.dir=${basedir}/build
+mirrors.url=
+updatesite.url=http://builds.apache.org/job/IvyDE-updatesite/lastSuccessfulBuild/artifact/trunk/build
+baseLocation=${basedir}/dependencies/${jenkins.eclipse.name}
+</echo>
+        <delete dir="${basedir}/build" />
+    </target>
+
+    <target name="jenkins-prepare-eclipse" depends="jenkins-get-eclipse,jenkins-unzip-eclipse"
/>
+
+    <target name="jenkins-check-download-eclipse">
+        <condition property="jenkins.eclipse.downloaded">
+            <available file="${basedir}/dependencies/${jenkins.eclipse.name}.zip" />
+        </condition>
+    </target>
+
+    <target name="jenkins-get-eclipse" depends="jenkins-check-download-eclipse" unless="jenkins.eclipse.downloaded">
+        <mkdir dir="${basedir}/dependencies" />
+        <get src="${jenkins.eclipse.url}" dest="${basedir}/dependencies/${jenkins.eclipse.name}.zip"
verbose="yes" />
+    </target>
+
+    <target name="jenkins-check-unzip-eclipse">
+        <condition property="jenkins.eclipse.unzipped">
+            <available file="${basedir}/dependencies/${jenkins.eclipse.name}" />
+        </condition>
+    </target>
+
+    <target name="jenkins-unzip-eclipse" depends="jenkins-check-unzip-eclipse" unless="jenkins.eclipse.unzipped">
+        <unzip src="${basedir}/dependencies/${jenkins.eclipse.name}.zip" dest="${basedir}/dependencies"
/>
+        <move file="${basedir}/dependencies/eclipse" tofile="${basedir}/dependencies/${jenkins.eclipse.name}"
/>
+    </target>
+
+    <target name="jenkins-find-ivy-jar">
+        <get src="${jenkins.baseUrl}/job/Ivy/lastSuccessfulBuild/artifact/trunk/build/artifact/jars/ivy.jar"
dest="${basedir}/dependencies/ivy-jenkins.jar" verbose="yes" />
+        <property name="ivy.jar" value="${basedir}/dependencies/ivy-jenkins.jar" />
+    </target>
+
+    <target name="jenkins-find-ivyde-zip">
+        <!-- get the last successful version -->
+        <get src="${jenkins.baseUrl}/job/IvyDE/lastSuccessfulBuild/artifact/trunk/dist/version.properties"
dest="${basedir}/dependencies/ivyde-jenkins-version.properties" verbose="yes" />
+        <property file="${basedir}/dependencies/ivyde-jenkins-version.properties" />
+        <!-- get the actual zip -->
+        <get src="${jenkins.baseUrl}/job/IvyDE/lastSuccessfulBuild/artifact/trunk/dist/apache-ivyde-${ivyde.build.version}.zip"
dest="${basedir}/dependencies/apache-ivyde-jenkins.zip" verbose="yes" />
+        <property name="ivyde.zip" value="${basedir}/dependencies/apache-ivyde-jenkins.zip"
/>
+    </target>
+
+    <target name="build-jenkins-p2-repo">
+        <mkdir dir="${dist.release.dir}" />
+        <script language="javascript">project.setProperty("timestamp",java.lang.System.currentTimeMillis());</script>
+        <loadfile property="ASL2-header" srcFile="${basedir}/ASL2-header.xml"/>
+
+        <echo file="${dist.release.dir}/compositeArtifacts.xml"><![CDATA[<?xml
version='1.0' encoding='UTF-8'?>
+<?compositeArtifactRepository version='1.0.0'?>
+${ASL2-header}
+<repository name='Apache IvyDE Repository' type='org.eclipse.equinox.internal.p2.artifact.repository.CompositeArtifactRepository'
version='1.0.0'>
+  <properties size='2'>
+    <property name='p2.timestamp' value='${timestamp}'/>
+    <property name='p2.compressed' value='false'/>
+  </properties>
+  <children size='2'>
+    <child location='ivy-${ivy.version}'/>
+    <child location='ivyde-${ivyde.build.version}'/>
+  </children>
+</repository>
+]]></echo>
+        <echo file="${dist.release.dir}/compositeContent.xml"><![CDATA[<?xml
version='1.0' encoding='UTF-8'?>
+<?compositeArtifactRepository version='1.0.0'?>
+${ASL2-header}
+<repository name='Apache IvyDE Repository' type='org.eclipse.equinox.internal.p2.metadata.repository.CompositeMetadataRepository'
version='1.0.0'>
+  <properties size='2'>
+    <property name='p2.timestamp' value='${timestamp}'/>
+    <property name='p2.compressed' value='false'/>
+  </properties>
+  <children size='2'>
+    <child location='ivy-${ivy.version}'/>
+    <child location='ivyde-${ivyde.build.version}'/>
+  </children>
+</repository>
+]]></echo>
+    </target>
+
+    <target name="jenkins-build" depends="clean,jenkins-find-ivy-jar,jenkins-find-ivyde-zip,build-ivy-p2-repo,build-ivyde-p2-repo,build-jenkins-p2-repo"
/>
+
 </project>
\ No newline at end of file



Mime
View raw message