Skip to content

Commit

Permalink
extra RSGB upgrade procedures voor 1.6.4-SNAPSHOT
Browse files Browse the repository at this point in the history
  • Loading branch information
mprins committed Oct 19, 2019
1 parent 09b3b9f commit 22046d9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .jenkins/execute-upgrade-extras-oracle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
CURSNAPSHOT=$(grep "<version>.*<.version>" -m1 pom.xml | sed -e "s/^.*<version/<version/" | cut -f2 -d">"| 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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 11 additions & 0 deletions .travis/execute-upgrade-extras-pgsql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
CURSNAPSHOT=$(grep "<version>.*<.version>" -m1 pom.xml | sed -e "s/^.*<version/<version/" | cut -f2 -d">"| 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
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 22046d9

Please sign in to comment.