diff --git a/.jenkins/execute-upgrade-extras-oracle.sh b/.jenkins/execute-upgrade-extras-oracle.sh new file mode 100755 index 0000000000..620af81fc6 --- /dev/null +++ b/.jenkins/execute-upgrade-extras-oracle.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +CURSNAPSHOT=$(grep ".*<.version>" -m1 pom.xml | sed -e "s/^.*"| cut -f1 -d"<") + +echo "Huidige snapshot:" $CURSNAPSHOT +echo "Verwerk extra upgrade script voor: " $1 + +export SQLPATH=./.jenkins + +if [ $CURSNAPSHOT = "1.6.4-SNAPSHOT" ] && [ $1 = "rsgb" ] +then + sqlplus -l -S jenkins_$1/jenkins_$1@192.168.1.11:1521/ORCL < ./datamodel/extra_scripts/oracle/206_bag_views.sql + sqlplus -l -S jenkins_$1/jenkins_$1@192.168.1.11:1521/ORCL < ./datamodel/extra_scripts/oracle/207_brk_views.sql +fi \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 5efad32e98..b38d71d579 100644 --- a/.travis.yml +++ b/.travis.yml @@ -224,6 +224,7 @@ script: - if [ "$TRAVIS_JOB_NAME" == "database upgrades" ]; then .travis/execute-upgrades-pgsql.sh staging; .travis/execute-upgrades-pgsql.sh rsgb; + .travis/execute-upgrade-extras-pgsql.sh rsgb; .travis/execute-upgrades-pgsql.sh rsgbbgt; mvn -e -B -P$PROFILE $MVN_ARGS -pl 'datamodel' resources:testResources compiler:testCompile surefire:test; fi diff --git a/.travis/execute-upgrade-extras-pgsql.sh b/.travis/execute-upgrade-extras-pgsql.sh new file mode 100755 index 0000000000..1b8c9e494a --- /dev/null +++ b/.travis/execute-upgrade-extras-pgsql.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +CURSNAPSHOT=$(grep ".*<.version>" -m1 pom.xml | sed -e "s/^.*"| cut -f1 -d"<") + +echo "Huidige snapshot:" $CURSNAPSHOT +echo "Verwerk extra upgrade script voor: " $1 + +if [ $CURSNAPSHOT = "1.6.4-SNAPSHOT" ] && [ $1 = "rsgb" ] +then + psql -U postgres -d $1 -f ./datamodel/extra_scripts/postgresql/206_bag_views.sql + psql -U postgres -d $1 -f ./datamodel/extra_scripts/postgresql/207_brk_views.sql +fi \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index 4c5dd0336a..3ebb694389 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -126,6 +126,7 @@ timestamps { sh ".jenkins/setup-old.sh" sh "\".jenkins/execute-upgrades-oracle.sh\" staging" sh "\".jenkins/execute-upgrades-oracle.sh\" rsgb" + sh "\".jenkins/execute-upgrade-extras-oracle.sh\" rsgb" sh "\".jenkins/execute-upgrades-oracle.sh\" rsgbbgt" sh "mvn -e -B -Poracle -pl 'datamodel' resources:testResources compiler:testCompile surefire:test" }