diff options
author | krishnaa96 <krishna.moorthy6@wipro.com> | 2020-07-27 16:35:26 +0530 |
---|---|---|
committer | krishnaa96 <krishna.moorthy6@wipro.com> | 2020-07-27 16:35:26 +0530 |
commit | d36c01952b4a462549a1d7dd934b6b3eae4d95d3 (patch) | |
tree | 8b774a25d470bcdfa204da46bcfdfdf495b3a0bd /cmso-sonar/docker/integration/cmso-topology/etc | |
parent | 7e1974f92920db3b5ff708be814c78acb0a3df00 (diff) |
Fix sonar issues
Issue-ID: OPTFRA-815
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: Id1b2ee9ff4e9c11aa9f05190b2bdc13a6ecaf994
Diffstat (limited to 'cmso-sonar/docker/integration/cmso-topology/etc')
-rwxr-xr-x | cmso-sonar/docker/integration/cmso-topology/etc/startJacocoService.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cmso-sonar/docker/integration/cmso-topology/etc/startJacocoService.sh b/cmso-sonar/docker/integration/cmso-topology/etc/startJacocoService.sh index 1de86b9..50b3a04 100755 --- a/cmso-sonar/docker/integration/cmso-topology/etc/startJacocoService.sh +++ b/cmso-sonar/docker/integration/cmso-topology/etc/startJacocoService.sh @@ -2,7 +2,13 @@ apt update apt install wget apt install unzip --assume-yes -wget https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.5/org.jacoco.agent-0.8.5.jar --no-check-certificate +n=0 +while true; +do + ((n++)) + wget https://repo1.maven.org/maven2/org/jacoco/org.jacoco.agent/0.8.5/org.jacoco.agent-0.8.5.jar + if [[ $? = 0 || $n -gt 5 ]]; then break; fi; +done unzip org.jacoco.agent-0.8.5.jar cp org.jacoco.agent-0.8.5/jacocoagent.jar . ls -l |