forked from SonarSource/sonar-scanner-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcix.sh
executable file
·17 lines (15 loc) · 797 Bytes
/
cix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
set -euo pipefail
echo "Running with SQ=$SQ_VERSION"
#deploy the version built by travis
CURRENT_VERSION=`mvn help:evaluate -Dexpression="project.version" | grep -v '^\[\|Download\w\+\:' | grep -v '\[WARNING\]'`
echo "CURRENT_VERSION=$CURRENT_VERSION"
rm -rf target
mkdir -p target
cd target
curl --user $ARTIFACTORY_QA_READER_USERNAME:$ARTIFACTORY_QA_READER_PASSWORD -sSLO https://repox.sonarsource.com/sonarsource-public-qa/org/jenkins-ci/plugins/sonar/$CURRENT_VERSION/sonar-$CURRENT_VERSION.hpi
echo "Downloaded sonar-$CURRENT_VERSION.hpi"
mv sonar-$CURRENT_VERSION.hpi sonar.hpi
cd ..
cd its
mvn -B -e -Djenkins.runtimeVersion="$JENKINS_VERSION" -Dsonar.runtimeVersion="$SQ_VERSION" -Dmaven.test.redirectTestOutputToFile=false clean verify -Dwebdriver.firefox.marionette=false