Skip to content

Commit 6c05dd7

Browse files
authored
Merge pull request #2367 from tronprotocol/hotFix/jipackSupport
jipackSupport
2 parents 25e5a92 + 7f52fd4 commit 6c05dd7

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

.travis.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
sudo: required
2+
dist: trusty
23
language: java
34
jdk: oraclejdk8
45
addons:
56
ssh_known_hosts:
6-
- 47.93.42.145:22008
7-
- 47.93.42.145:22008
8-
- 47.93.42.145:22008
9-
- 47.93.18.60:22008
10-
- 47.93.18.60:22008
11-
- 47.93.18.60:22008
7+
- 47.93.42.145:22008
8+
- 47.93.42.145:22008
9+
- 47.93.42.145:22008
10+
- 47.93.18.60:22008
11+
- 47.93.18.60:22008
12+
- 47.93.18.60:22008
1213
sonarcloud:
1314
organization: tron-zhaohong
1415
token:
1516
secure: "KXWEeQ1elAoQ0XfR54TQWfhrIdDP0+2CYPv2X9aWpU/YDl7hqZBAjcCOAUGvlbyM54jtG6YMaWwG48jlrOwwl5l/VjWSnUXF+7ixQy5ki0Ci9s7Y1pTQwV9SpL8TLIK2TYqabN8Mw+FJULASXLjYr9GerbbcUbCPTmcL6mQKw6ivxxpNPmz4eNoKAEuOzruO9fTXGAV3yr8Nn85c+mVxV8EUhkR17zpE9O8fvzOtSnYArWNOSCgDBn0EG45UNNPF2vn44s1c3h3gX1m3WK6PeCXPgy3hPqRn3wTG+xglnbqthGpo2wt1rJ83af+BwdYwvPEcUq84yLgXcE/aMkTKcVAfPWBP/6vblaoI90jxCeFji+MdMimKZAqIXt7oLqDZVmIq65de5YC5s7QTSbzJNY/tsAu3dqzSfbUJY6CRNFDcoenVpvgQkqb37TkDah4mJM8EUjbu2A9Q2HSFbyCVsQJtdasuu9cBOf6azK3U0XgFNBc0y2aziZrTnX30q7bi+5L/mbTnRdXrDqBOqyPeGtT77UZfcajHHmEWU/e6gYWiA/c+K25n13DD53Au6gpnnQ6ALeUl/1gDwz3fPBebJ5bVWrkIcLj7bbysjzfOvQmDS6G13RNz58Hm0/B7bVtZTr1E1q6Z1zEJwbuJYEJASNcezAfK5x/hIfZTGNqT3M8="
1617
cache:
1718
directories:
18-
- '$HOME/.sonar/cache'
19+
- '$HOME/.sonar/cache'
1920
matrix:
2021
include:
2122
- name: build

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ apply plugin: 'com.github.johnrengelman.shadow'
2323
apply plugin: "jacoco"
2424
apply plugin: 'maven-publish'
2525

26-
jar.enabled = false
26+
jar.enabled = true
2727
shadowJar.enabled = true
2828

2929
sourceCompatibility = 1.8

querySonar.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
2-
PassFlag=`curl -s 'https://sonarcloud.io/api/project_badges/measure?project=java-tron&metric=alert_status'|grep -A4 "quality gate"|grep "pass"|wc -l`
3-
echo "Please visit https://sonarcloud.io/dashboard?id=java-tron for more details"
4-
if [ $PassFlag -eq 0 ]; then
1+
echo "current branch is : "$BUILDKITE_PIPELINE_DEFAULT_BRANCH
2+
SonarStatus_Url="https://sonarcloud.io/api/qualitygates/project_status?projectKey=java-tron&branch="$BUILDKITE_PIPELINE_DEFAULT_BRANCH
3+
Status=`curl -s $SonarStatus_Url | jq '.projectStatus.status'`
4+
echo "current branch sonarcloud status is : "$Status
5+
if [ "$Status"x = "ERROR"x ]; then
56
echo "Sonar Check Failed"
7+
echo "Please visit https://sonarcloud.io/dashboard?branch="$BUILDKITE_PIPELINE_DEFAULT_BRANCH"&id=java-tron for more details"
68
exit 1
79
else
810
echo "Sonar Check Pass"
911
exit 0
10-
fi
12+
fi

0 commit comments

Comments
 (0)