aboutsummaryrefslogtreecommitdiffstats
path: root/cix.sh
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2018-02-05 22:06:35 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2018-02-06 20:18:25 +0100
commit75873f6400090795cefd51f8e469900d1df938f4 (patch)
treee29c992e51df434a90c9c264a01cda117de04023 /cix.sh
parentcf9eb2f6a2bc594e3007eff1494817a42a6f2d35 (diff)
downloadsonarqube-75873f6400090795cefd51f8e469900d1df938f4.tar.gz
sonarqube-75873f6400090795cefd51f8e469900d1df938f4.zip
Add PR properties to Artifactory build info
Diffstat (limited to 'cix.sh')
-rwxr-xr-xcix.sh20
1 files changed, 14 insertions, 6 deletions
diff --git a/cix.sh b/cix.sh
index 024e4164539..942625d8a90 100755
--- a/cix.sh
+++ b/cix.sh
@@ -14,12 +14,18 @@ case "$RUN_ACTIVITY" in
DB_ENGINE=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 1)
CATEGORY_GROUP=$(sed "s/run-db-integration-tests-//g" <<< $RUN_ACTIVITY | cut -d \- -f 2)
- if [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
- # execute PR QA only on postgres
+ if [[ "$GITHUB_BRANCH" != "PULLREQUEST-"* ]] && [[ "$GITHUB_BRANCH" != "master" ]] && [[ "$GITHUB_BRANCH" != "branch-"* ]] && [[ "$GITHUB_BRANCH" != "dogfood-on-next" ]]; then
+ # do not execute QA tests on feature branch outside pull request
exit 0
- elif [[ "$GITHUB_BRANCH" == "dogfood-on-next" ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
- # execute dogfood QA only on postgres
+
+ elif [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
+ # restrict QA tests to PostgreSQL on pull requests
+ exit 0
+
+ elif [[ "$GITHUB_BRANCH" == "dogfood-on-next" ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
+ # restrict QA tests to PostgreSQL on dogfood branch
exit 0
+
else
mvn clean package -B -e -V -f tests/plugins/pom.xml
@@ -73,8 +79,10 @@ case "$RUN_ACTIVITY" in
run-upgrade-tests-*)
DB_ENGINE=$(sed "s/run-upgrade-tests-//g" <<< $RUN_ACTIVITY)
- if [[ "$GITHUB_BRANCH" == "PULLREQUEST-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
- exit 0
+ if [[ "$GITHUB_BRANCH" != "master" ]] && [[ "$GITHUB_BRANCH" != "branch-"* ]] && [[ "$DB_ENGINE" != "postgresql93" ]]; then
+ # restrict upgrade tests to PostgreSQL on feature branches and dogfood
+ exit 0
+
else
./run-upgrade-tests.sh "http://infra.internal.sonarsource.com/jenkins/orch-${DB_ENGINE}.properties"
fi