knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmin...@apache.org
Subject [1/2] git commit: Add target to kick of a remote build.
Date Wed, 02 Oct 2013 11:48:13 GMT
Updated Branches:
  refs/heads/v0.3.0 7a6c93412 -> abbe234d1


Add target to kick of a remote build.


Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/785f376c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/785f376c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/785f376c

Branch: refs/heads/v0.3.0
Commit: 785f376cf40c095ae241a3e0da1b5ba5aaa18837
Parents: 7a6c934
Author: Kevin Minder <kevin.minder@hortonworks.com>
Authored: Tue Oct 1 17:42:19 2013 -0400
Committer: Kevin Minder <kevin.minder@hortonworks.com>
Committed: Tue Oct 1 17:42:19 2013 -0400

----------------------------------------------------------------------
 build.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/785f376c/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 2336991..5047281 100644
--- a/build.xml
+++ b/build.xml
@@ -53,6 +53,13 @@
         <os family="windows" />
     </condition>
 
+    <condition property="curl.cmd" value="curl">
+        <os family="unix" />
+    </condition>
+    <condition property="curl.cmd" value="curl">
+        <os family="windows" />
+    </condition>
+
     <condition property="rpm-builder" value="./gateway-rpm/build_knox_rpm.sh">
         <os family="unix" />
     </condition>
@@ -117,6 +124,15 @@
         <checksum file="target/${gateway-version}/${gateway-artifact}-${gateway-version}.rpm"
algorithm="SHA1" fileext=".sha" forceOverwrite="yes"/>
     </target>
 
+    <target name="remote-build">
+        <exec executable="${curl.cmd}">
+            <arg value="--silent"/>
+            <arg value="--request"/>
+            <arg value="POST"/>
+            <arg value="https://builds.apache.org/job/Knox-${gateway-version}/build?token=knox-remote-build-token"/>
+        </exec>
+    </target>
+
     <target name="download-build">
         <mkdir dir="${candidate.path}"/>
         <get dest="${candidate.path}">


Mime
View raw message