mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
try to download installer from s3
This commit is contained in:
@@ -62,6 +62,7 @@ jobs:
|
|||||||
- echo "Enterprise Integrations Tests on MySQL"
|
- echo "Enterprise Integrations Tests on MySQL"
|
||||||
- name: "Community Rest API Tests"
|
- name: "Community Rest API Tests"
|
||||||
stage: Tests
|
stage: Tests
|
||||||
|
before_install: travis_wait 90 bash scripts/downloadInstaller.sh
|
||||||
install:
|
install:
|
||||||
- travis_wait 90 bash scripts/startAlfresco.sh apply-rm-community
|
- travis_wait 90 bash scripts/startAlfresco.sh apply-rm-community
|
||||||
script:
|
script:
|
||||||
|
@@ -147,14 +147,14 @@
|
|||||||
<target>
|
<target>
|
||||||
<echo>Recreating database...</echo>
|
<echo>Recreating database...</echo>
|
||||||
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
|
<sql driver="org.postgresql.Driver" url="jdbc:postgresql:template1" userid="alfresco" password="alfresco" autocommit="true">drop database if exists alfresco; create database alfresco</sql>
|
||||||
<echo>Downloading Alfresco installer...</echo>
|
<!-- <echo>Downloading Alfresco installer...</echo>-->
|
||||||
<get src="${installer.url}" dest="target/alf-installer.bin" />
|
<!-- <get src="${installer.url}" dest="target/alf-installer.bin" />-->
|
||||||
<chmod file="target/alf-installer.bin" perm="a+x" verbose="true" />
|
<chmod file="${basedir}/alfresco-content-services-installer*.bin" perm="a+x" verbose="true" />
|
||||||
<echo>Installing Alfresco...</echo>
|
<echo>Installing Alfresco...</echo>
|
||||||
<exec executable="${basedir}/target/alf-installer.bin" dir="target" failonerror="true">
|
<exec executable="${basedir}/alfresco-content-services-installer*.bin" dir="${basedir}" failonerror="true">
|
||||||
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
|
<arg line="--mode unattended --alfresco_admin_password admin --disable-components postgres,alfrescowcmqs --jdbc_username alfresco --jdbc_password alfresco --prefix ${basedir}/target/alf-installation" />
|
||||||
</exec>
|
</exec>
|
||||||
<delete file="target/alf-installer.bin" verbose="true" />
|
<delete file="${basedir}/alfresco-content-services-installer*.bin" verbose="true" />
|
||||||
</target>
|
</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
|
20
scripts/downloadInstaller.sh
Normal file
20
scripts/downloadInstaller.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# fail script immediately on any errors in external commands and print the lines
|
||||||
|
set -ev
|
||||||
|
|
||||||
|
outputFile=$HOME/rm-automation
|
||||||
|
amzFile="release/enterprise/5.2/5.2.7/5.2.7.4/alfresco-content-services-installer-5.2.7.4-linux-x64.bin"
|
||||||
|
region="eu-west-1"
|
||||||
|
bucket="eu.dl.alfresco.com"
|
||||||
|
resource="/${bucket}/${amzFile}"
|
||||||
|
contentType="binary/octet-stream"
|
||||||
|
dateValue=`TZ=GMT date -R`
|
||||||
|
stringToSign="GET\n\n${contentType}\n${dateValue}\n${resource}"
|
||||||
|
s3Key=$RELEASE_AWS_ACCESS_KEY
|
||||||
|
s3Secret=$RELEASE_AWS_SECRET_KEY
|
||||||
|
signature=`echo -en ${stringToSign} | openssl sha1 -hmac ${s3Secret} -binary | base64`
|
||||||
|
curl -H "Host: s3-${region}.amazonaws.com" \
|
||||||
|
-H "Date: ${dateValue}" \
|
||||||
|
-H "Content-Type: ${contentType}" \
|
||||||
|
-H "Authorization: AWS ${s3Key}:${signature}" \
|
||||||
|
https://s3-${region}.amazonaws.com/${bucket}/${amzFile} -o $outputFile
|
Reference in New Issue
Block a user