Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .github/workflows/Processors_CI_CD_Prod_Workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,22 +135,26 @@ jobs:
-DdepVersion=$COMMON_VERSION \
-DforceVersion=true

# ✅ Code Formatting Check (Spotless)
- name: Code Formatting Check
run: mvn spotless:check

- name: Build & Test Processor
run: |
mvn clean install -Ddockerfile.skip=true

# - name: SonarQube Analysis - Processors
# run: |
# mvn sonar:sonar -Dsonar.projectKey=ENGINEERING.KPIDASHBOARD.PROCESSORS \
# -Dsonar.projectName=ENGINEERING.KPIDASHBOARD.PROCESSORS \
# -Dsonar.branch.name=${{ env.GITHUB_HEAD_NAME }} \
# -Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
# -Dsonar.login=${{ secrets.SONARQUBE_TOKEN }} -f pom.xml

# - name: Check SonarQube Quality Gate
# run: |
# chmod +x SonarQG.sh
# ./SonarQG.sh ./target/sonar/report-task.txt
- name: SonarQube Analysis - Processors
run: |
mvn sonar:sonar -Dsonar.projectKey=ENGINEERING.KPIDASHBOARD.PROCESSORS \
-Dsonar.projectName=ENGINEERING.KPIDASHBOARD.PROCESSORS \
-Dsonar.branch.name=${{ env.GITHUB_HEAD_NAME }} \
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }} \
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }} -f pom.xml

- name: Check SonarQube Quality Gate
run: |
chmod +x SonarQG.sh
./SonarQG.sh ./target/sonar/report-task.txt

- name: Build & Push Jira Docker Image
if: ${{ github.event.inputs.processor == 'all' || github.event.inputs.processor == 'jira' }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/Processors_CI_CD_Workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ jobs:
-DdepVersion=$COMMON_VERSION \
-DforceVersion=true

# ✅ Code Formatting Check (Spotless)
- name: Code Formatting Check
run: mvn spotless:check

- name: Build & Skip Test Processor
if: ${{ github.event.inputs.test == 'false' }}
run: |
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/Processors_CI_Workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ jobs:
-Dincludes=com.publicissapient.kpidashboard:common \
-DdepVersion=$COMMON_VERSION \
-DforceVersion=true

# ✅ Code Formatting Check (Spotless)
- name: Code Formatting Check
run: mvn spotless:check

- name: Build & Test Processor
run: |
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,12 @@
<include>**/*.yml</include>
<include>**/*.yaml</include>
</includes>
<excludes>
<exclude>**/target/**</exclude>
<exclude>**/node_modules/**</exclude>
<exclude>**/.git/**</exclude>
<exclude>.github/workflows/**</exclude>
</excludes>
</format>
<format>
<includes>
Expand All @@ -355,6 +361,9 @@
<excludes>
<exclude>pom.xml</exclude>
<exclude>**/pom.xml</exclude>
<exclude>**/target/**</exclude>
<exclude>**/node_modules/**</exclude>
<exclude>**/.git/**</exclude>
</excludes>
</format>
</formats>
Expand Down
Loading