Skip to content

Commit 51960bf

Browse files
authored
Merge pull request #92 from oracle/sonar
Add pipeline to run Sonar scan on the code
2 parents 7b004c2 + 4dae9bd commit 51960bf

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6-
6+
77
<groupId>oracle.kubernetes</groupId>
88
<artifactId>weblogic-kubernetes-operator</artifactId>
99
<version>0.1.0-alpha-SNAPSHOT</version>
@@ -550,7 +550,6 @@
550550
<jacoco.outputDir>${project.build.directory}/jacoco</jacoco.outputDir>
551551
<jacoco.itOutputDir>${project.build.directory}/jacoco-it</jacoco.itOutputDir>
552552
<jacoco.destFile>${project.build.directory}/jacoco.exec</jacoco.destFile>
553-
<sonar.host.url>http://slc08ujn.us.oracle.com:9000</sonar.host.url>
554553
<sonar-jacoco-listeners.version>1.4</sonar-jacoco-listeners.version>
555554
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
556555
<jacoco.skip>false</jacoco.skip>

wercker.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,20 @@ promote-image:
168168

169169
# use the quay.io REST API to change the tab "latest" to point to the image we just pushed and tested
170170

171+
# This pipeline runs quqlity checks
172+
quality:
173+
steps:
174+
- script:
175+
name: Install pre-reqs
176+
code: |
177+
yum -y install tar gzip
178+
- java/maven:
179+
profiles: build-sonar
180+
maven_opts: -Dsonar.login=${SONAR_LOGIN} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.host.url=${SONAR_HOST}
181+
goals: clean install sonar:sonar
182+
cache_repo: true
183+
version: 3.5.2
184+
171185
dev:
172186
steps:
173187
- internal/shell

0 commit comments

Comments
 (0)