Merged WOLF-6 (WOLF.0.0) to 5.1.1 (5.1.1)

122186 mrogers: UTF-380 Now should update both source and target instances of alfresco.   (They are both the same but that should allow us to progress with building the rest of build.)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/services/full-installer/branches/5.1.1@123983 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2016-03-15 11:32:10 +00:00
parent 94e7c52915
commit 9431b09af8

View File

@@ -11,12 +11,24 @@
<properties> <properties>
<!-- Two installers The base installer and this installer --> <!-- This test requires two installers, the base installer e.g. 5.1.0
<!--Todo calculate this --> and this version's installer e.g. 5.1.0.4-SNAPSHOT -->
<!--Jean-Pierre will rework this for us -->
<!--Todo this should be 5.1.0 but that does not exist yet --> <!--Todo this should be 5.1.0 but that does not exist yet -->
<update.base.version>5.1.0</update.base.version> <update.base.version>5.1.0</update.base.version>
<base.alfresco.installer.url>https://nightlybuilds.alfresco.com/Enterprise-5.1/5.1/LATEST/ALL/alfresco-one-installer-20160203-SNAPSHOT-664-linux-x64.bin</base.alfresco.installer.url>
<this.alfresco.installer.url>https://nightlybuilds.alfresco.com/Enterprise-5.1/5.1/LATEST/ALL/alfresco-one-installer-20160203-SNAPSHOT-664-linux-x64.bin</this.alfresco.installer.url>
<!-- https://nightlybuilds.alfresco.com/Enterprise-5.1/5.1/LATEST/ALL/ --> <!-- Where to put the two deployed instances of alfresco -->
<base.alfresco.instance>${project.build.directory}/test-data/base-alf-installation</base.alfresco.instance>
<update.alfresco.instance>${project.build.directory}/test-data/update-alf-installation</update.alfresco.instance>
<!-- Arguments to install alfresco -->
<installer.args>--mode unattended --alfresco_admin_password admin --jdbc_username alfresco --jdbc_password alfresco
--tomcat_server_domain ${HOSTNAME}
--enable-components javaalfresco,postgres,libreofficecomponent,alfrescosolr,alfrescosolr4,aosmodule,alfrescowcmqs,alfrescogoogledocs
--alfrescocustomstack_services_startup demand
</installer.args>
<unpacked.update.package>${project.build.directory}/dependency/alfresco-enterprise-update-package-${project.version}</unpacked.update.package> <unpacked.update.package>${project.build.directory}/dependency/alfresco-enterprise-update-package-${project.version}</unpacked.update.package>
</properties> </properties>
@@ -62,7 +74,8 @@
</executions> </executions>
</plugin> </plugin>
<!-- Download and install the latest enterprise alfresco installer from bamboo --> <!-- Download and install the latest enterprise alfresco installer
from bamboo -->
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<executions> <executions>
@@ -76,6 +89,15 @@
<target> <target>
<taskdef resource="net/sf/antcontrib/antlib.xml" /> <taskdef resource="net/sf/antcontrib/antlib.xml" />
<condition property="isWindows" value="true">
<os family="windows" />
</condition>
<condition property="isLinux" value="true">
<os family="unix" />
</condition>
<!-- Download and install the base version of alfresco -->
<if> <if>
<not> <not>
<isset property="base.installer.location" /> <isset property="base.installer.location" />
@@ -85,17 +107,46 @@
location="${basedir}/target/base-alf-installer.bin" /> location="${basedir}/target/base-alf-installer.bin" />
<echo>Downloading Base Alfresco installer to <echo>Downloading Base Alfresco installer to
${base.installer.location}...</echo> ${base.installer.location}...</echo>
<get src="https://nightlybuilds.alfresco.com/Enterprise-5.1/5.1/LATEST/ALL/alfresco-one-installer-20160203-SNAPSHOT-664-linux-x64.bin" <!-- TODO Jean-Pierre will rewrite this for us -->
dest="${base.installer.location}"/> <get src="${base.alfresco.installer.url}" dest="${base.installer.location}" />
<chmod file="${base.installer.location}" perm="a+x"
verbose="true" />
</then> </then>
</if> </if>
<chmod file="${base.installer.location}" perm="a+x"
verbose="true" /> <!-- Download and install this version of alfresco -->
<echo>Installing The Base Versoion of Alfresco...</echo> <if>
<not>
<isset property="this.installer.location" />
</not>
<then>
<property name="this.installer.location"
location="${basedir}/target/this-alf-installer.bin" />
<echo>Downloading This Alfresco installer to
${this.installer.location}...</echo>
<!-- TODO Jean-Pierre will rewrite this for us -->
<get src="${this.alfresco.installer.url}" dest="${this.installer.location}" />
<chmod file="${this.installer.location}" perm="a+x"
verbose="true" />
</then>
</if>
<echo>Installing The base Version of Alfresco... to
${base.alfresco.instance}</echo>
<exec executable="${base.installer.location}" dir="target" <exec executable="${base.installer.location}" dir="target"
failonerror="true"> failonerror="true">
<arg <arg
line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/base-alf-installation --tomcat_server_domain ${HOSTNAME}" /> line="${installer.args} --prefix ${base.alfresco.instance} " />
</exec>
<echo>Installing This Version of Alfresco... to
${update.alfresco.instance}</echo>
<exec
executable="${this.installer.location}" dir="target"
failonerror="true">
<arg line="${installer.args} --prefix ${update.alfresco.instance} " />
</exec> </exec>
</target> </target>
</configuration> </configuration>