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 | |
parent | 7e1974f92920db3b5ff708be814c78acb0a3df00 (diff) |
Fix sonar issues
Issue-ID: OPTFRA-815
Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com>
Change-Id: Id1b2ee9ff4e9c11aa9f05190b2bdc13a6ecaf994
4 files changed, 28 insertions, 4 deletions
diff --git a/cmso-sonar/docker/integration/cmso-optimizer/etc/startJacocoService.sh b/cmso-sonar/docker/integration/cmso-optimizer/etc/startJacocoService.sh index 3f244de..04e66a1 100755 --- a/cmso-sonar/docker/integration/cmso-optimizer/etc/startJacocoService.sh +++ b/cmso-sonar/docker/integration/cmso-optimizer/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 diff --git a/cmso-sonar/docker/integration/cmso-service/etc/startJacocoService.sh b/cmso-sonar/docker/integration/cmso-service/etc/startJacocoService.sh index 01285a0..1fdfca5 100755 --- a/cmso-sonar/docker/integration/cmso-service/etc/startJacocoService.sh +++ b/cmso-sonar/docker/integration/cmso-service/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 diff --git a/cmso-sonar/docker/integration/cmso-ticketmgt/etc/startJacocoService.sh b/cmso-sonar/docker/integration/cmso-ticketmgt/etc/startJacocoService.sh index ad5b245..e3eab63 100755 --- a/cmso-sonar/docker/integration/cmso-ticketmgt/etc/startJacocoService.sh +++ b/cmso-sonar/docker/integration/cmso-ticketmgt/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 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 |