knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmin...@apache.org
Subject knox git commit: Provide a way to pass credentials to release automation tasks.
Date Tue, 14 Apr 2015 19:13:10 GMT
Repository: knox
Updated Branches:
  refs/heads/v0.6.0 3a8103c64 -> 464c5a155


Provide a way to pass credentials to release automation tasks.


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

Branch: refs/heads/v0.6.0
Commit: 464c5a155e2cd44fc776a1cbe1116e3cefe72769
Parents: 3a8103c
Author: Kevin Minder <kevin.minder@hortonworks.com>
Authored: Tue Apr 14 15:12:52 2015 -0400
Committer: Kevin Minder <kevin.minder@hortonworks.com>
Committed: Tue Apr 14 15:12:52 2015 -0400

----------------------------------------------------------------------
 build.xml | 264 ++++++++++++++++++++++++++++++---------------------------
 1 file changed, 141 insertions(+), 123 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/464c5a15/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index 0bb48dc..8ab226f 100644
--- a/build.xml
+++ b/build.xml
@@ -1,134 +1,134 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-  Licensed to the Apache Software Foundation (ASF) under one or more
-  contributor license agreements.  See the NOTICE file distributed with
-  this work for additional information regarding copyright ownership.
-  The ASF licenses this file to You under the Apache License, Version 2.0
-  (the "License"); you may not use this file except in compliance with
-  the License.  You may obtain a copy of the License at
-
-      http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an "AS IS" BASIS,
-  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  See the License for the specific language governing permissions and
-  limitations under the License.
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
 -->
 <project name="Apache Knox Gateway" default="build" basedir=".">
 
-    <description>
-        Release build file for the Apache Knox Gateway
-    </description>
-
-    <property name="gateway-name" value="Apache Knox"/>
-    <property name="gateway-project" value="knox"/>
-    <property name="gateway-artifact" value="knox"/>
-    <property name="gateway-version" value="0.6.0"/>
-    <property name="release-manager" value="kminder"/>
-
-    <property name="gateway-home" value="${gateway-artifact}-${gateway-version}"/>
-
-    <property name="build-url" value="https://builds.apache.org/job/Knox-${gateway-version}/ws/target/${gateway-version}"/>
-
-    <property name="install.dir" value="install"/>
-    <property name="candidate.dir" value="candidate"/>
-
-    <property name="svn.release.path" value="https://dist.apache.org/repos/dist/release/${gateway-project}"
/>
-    <property name="svn.staging.path" value="https://dist.apache.org/repos/dist/dev/${gateway-project}"
/>
-
-    <condition property="isUnix">
-        <os family="unix"/>
-    </condition>
-
-    <condition property="isWindows">
-        <os family="windows"/>
-    </condition>
-
-    <condition property="mvn.cmd" value="mvn">
-        <os family="unix" />
-    </condition>
-    <condition property="mvn.cmd" value="mvn.bat">
-        <os family="windows" />
-    </condition>
-
-    <condition property="svn.cmd" value="svn">
-        <os family="unix" />
-    </condition>
-    <condition property="svn.cmd" value="svn">
-        <os family="windows" />
-    </condition>
-
-    <condition property="curl.cmd" value="curl">
-        <os family="unix" />
-    </condition>
-    <condition property="curl.cmd" value="curl">
-        <os family="windows" />
-    </condition>
-
-    <target name="_init" description="Initialize the build.">
-    </target>
-
-    <target name="clean" depends="_init" description="Clean up any build artifacts.">
-        <delete dir="target"/>
-        <delete dir="${install.dir}"/>
-        <delete dir="${candidate.dir}"/>
-    </target>
-
-    <target name="build" depends="_init" description="Build the product.">
-        <exec executable="${mvn.cmd}">
-            <arg value="clean"/>
-            <arg value="install"/>
-        </exec>
-    </target>
-
-    <target name="build-notest" depends="_init" description="Build the product without
running tests.">
-        <exec executable="${mvn.cmd}">
-            <arg value="-DskipTests"/>
-            <arg value="clean"/>
-            <arg value="install"/>
-        </exec>
-    </target>
-
-    <target name="verify" depends="package" description="Perform the verification build."/>
-    <target name="package" depends="_init" description="Build and package the product
(aka verify).">
-        <exec executable="${mvn.cmd}">
-            <arg value="-Prelease"/>
-            <arg value="clean"/>
-            <arg value="install"/>
-        </exec>
-        <copy todir="target/${gateway-version}">
-            <fileset file="CHANGES"/>
-        </copy>
-    </target>
-
-    <target name="daily" depends="full" description="Perform the daily build."/>
-    <target name="full" depends="_init" description="Perform a full build (aka daily).">
-        <exec executable="${mvn.cmd}">
-            <arg value="-Panalyze"/>
-            <arg value="-Prelease"/>
-            <arg value="site"/>
-        </exec>
-    </target>
-
-    <target name="post-build" depends="_init,_changes"/>
-
-    <target name="_changes" depends="_init">
-        <copy file="CHANGES" todir="target/${gateway-version}"/>
-    </target>
-
-    <target name="build-candidate">
-        <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>
+<description>
+Release build file for the Apache Knox Gateway
+</description>
+
+<property name="gateway-name" value="Apache Knox"/>
+<property name="gateway-project" value="knox"/>
+<property name="gateway-artifact" value="knox"/>
+<property name="gateway-version" value="0.6.0"/>
+<property name="release-manager" value="kminder"/>
+
+<property name="gateway-home" value="${gateway-artifact}-${gateway-version}"/>
+
+<property name="build-url" value="https://builds.apache.org/job/Knox-${gateway-version}/ws/target/${gateway-version}"/>
+
+<property name="install.dir" value="install"/>
+<property name="candidate.dir" value="candidate"/>
+
+<property name="svn.release.path" value="https://dist.apache.org/repos/dist/release/${gateway-project}"
/>
+<property name="svn.staging.path" value="https://dist.apache.org/repos/dist/dev/${gateway-project}"
/>
+
+<condition property="isUnix">
+<os family="unix"/>
+</condition>
+
+<condition property="isWindows">
+<os family="windows"/>
+</condition>
+
+<condition property="mvn.cmd" value="mvn">
+<os family="unix" />
+</condition>
+<condition property="mvn.cmd" value="mvn.bat">
+<os family="windows" />
+</condition>
+
+<condition property="svn.cmd" value="svn">
+<os family="unix" />
+</condition>
+<condition property="svn.cmd" value="svn">
+<os family="windows" />
+</condition>
+
+<condition property="curl.cmd" value="curl">
+<os family="unix" />
+</condition>
+<condition property="curl.cmd" value="curl">
+<os family="windows" />
+</condition>
+
+<target name="_init" description="Initialize the build.">
+</target>
+
+<target name="clean" depends="_init" description="Clean up any build artifacts.">
+<delete dir="target"/>
+<delete dir="${install.dir}"/>
+<delete dir="${candidate.dir}"/>
+</target>
+
+<target name="build" depends="_init" description="Build the product.">
+<exec executable="${mvn.cmd}">
+    <arg value="clean"/>
+    <arg value="install"/>
+</exec>
+</target>
+
+<target name="build-notest" depends="_init" description="Build the product without running
tests.">
+<exec executable="${mvn.cmd}">
+    <arg value="-DskipTests"/>
+    <arg value="clean"/>
+    <arg value="install"/>
+</exec>
+</target>
+
+<target name="verify" depends="package" description="Perform the verification build."/>
+<target name="package" depends="_init" description="Build and package the product (aka
verify).">
+<exec executable="${mvn.cmd}">
+    <arg value="-Prelease"/>
+    <arg value="clean"/>
+    <arg value="install"/>
+</exec>
+<copy todir="target/${gateway-version}">
+    <fileset file="CHANGES"/>
+</copy>
+</target>
+
+<target name="daily" depends="full" description="Perform the daily build."/>
+<target name="full" depends="_init" description="Perform a full build (aka daily).">
+<exec executable="${mvn.cmd}">
+    <arg value="-Panalyze"/>
+    <arg value="-Prelease"/>
+    <arg value="site"/>
+</exec>
+</target>
+
+<target name="post-build" depends="_init,_changes"/>
+
+<target name="_changes" depends="_init">
+<copy file="CHANGES" todir="target/${gateway-version}"/>
+</target>
+
+<target name="build-candidate">
+<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-candidate">
         <mkdir dir="${candidate.dir}"/>
-        <get dest="${candidate.dir}">
+        <get username="${username}" password="${password}" dest="${candidate.dir}">
             <url url="${build-url}/knox-${gateway-version}.zip"/>
             <url url="${build-url}/knox-${gateway-version}.zip.md5"/>
             <url url="${build-url}/knox-${gateway-version}.zip.sha"/>
@@ -200,16 +200,22 @@
         </delete>
         <exec executable="gpg" dir="${candidate.dir}">
             <arg value="--armor"/>
+            <arg value="--passphrase"/>
+            <arg value="${passphrase}"/>
             <arg value="--detach-sig"/>
             <arg value="${gateway-artifact}-${gateway-version}.zip"/>
         </exec>
         <exec executable="gpg" dir="${candidate.dir}">
             <arg value="--armor"/>
+            <arg value="--passphrase"/>
+            <arg value="${passphrase}"/>
             <arg value="--detach-sig"/>
             <arg value="${gateway-artifact}-${gateway-version}-src.zip"/>
         </exec>
         <exec executable="gpg" dir="${candidate.dir}">
             <arg value="--armor"/>
+            <arg value="--passphrase"/>
+            <arg value="${passphrase}"/>
             <arg value="--detach-sig"/>
             <arg value="${gateway-artifact}-${gateway-version}.tar.gz"/>
         </exec>
@@ -235,6 +241,10 @@
             <arg value="${svn.staging.path}/${gateway-artifact}-${gateway-version}/"/>
             <arg value="-m"/>
             <arg value="Staging Apache Knox Gateway version ${gateway-version}."/>
+            <arg value="--username" />
+            <arg value="${username}" />
+            <arg value="--password" />
+            <arg value="${password}" />
         </exec>
     </target>
 
@@ -244,6 +254,10 @@
             <arg value="${svn.staging.path}/${gateway-artifact}-${gateway-version}/"/>
             <arg value="-m"/>
             <arg value="Removing Apache Knox Gateway version ${gateway-version} from staging."/>
+            <arg value="--username" />
+            <arg value="${username}" />
+            <arg value="--password" />
+            <arg value="${password}" />
         </exec>
     </target>
 
@@ -254,6 +268,10 @@
             <arg value="${svn.release.path}/${gateway-version}"/>
             <arg value="-m"/>
             <arg value="Releasing Apache Knox Gateway version ${gateway-version}." />
+            <arg value="--username" />
+            <arg value="${username}" />
+            <arg value="--password" />
+            <arg value="${password}" />
         </exec>
     </target>
 


Mime
View raw message