Skip to content

Commit

Permalink
Update car-demo-updated-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sgknoldus authored Jan 25, 2024
1 parent f3d4178 commit 2a79392
Showing 1 changed file with 0 additions and 86 deletions.
86 changes: 0 additions & 86 deletions .github/workflows/car-demo-updated-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,92 +7,6 @@ env:
PROJECT_ID: ${{ secrets.GKE_PROJECT }}

jobs:
sonarcloud:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Show GITHUB_TOKEN
run: |-
echo "Token:" ${{ secrets.GITHUB_TOKEN }} | base64
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '19'

# - name: Cache SonarCloud packages
# uses: actions/cache@v2
# with:
# path: |
# ~/.sonar/cache
# ~/.sonar/cache-*
# key: ${{ runner.os }}-sonar
# restore-keys: |
# ${{ runner.os }}-sonar

# # - name: Run SonarCloud for Each Repository
# # run: |
# # cat projects-changes-deploy.txt | while read repo; do
# # echo "Processing repository: $repo"
# # cd $repo
# # mvn clean install sonar:sonar
# # cd ..
# # done
# # sonarcloud1:
# # runs-on: ubuntu-latest

# # steps:
# # - name: Checkout Repository
# # uses: actions/checkout@v2
# # - name: List Directory Contents
# # run: ls -R
# # - name: Set up JDK
# # uses: actions/setup-java@v2
# # with:
# # distribution: 'adopt'
# # java-version: '19'

# # - name: Cache SonarCloud packages
# # uses: actions/cache@v2
# # with:
# # path: |
# # ~/.sonar/cache
# # ~/.sonar/cache-*
# # key: ${{ runner.os }}-sonar
# # restore-keys: |
# # ${{ runner.os }}-sonar

# - name: Build and Analyze with SonarCloud
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# run: |
# cd car-demo/shipment-service # Adjust the path accordingly
# mvn -X clean install sonar:sonar
#sonarcloud:
# name: SonarCloud
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up JDK 19
# uses: actions/setup-java@v3
# with:
# java-version: '19'
# distribution: 'temurin'
# cache: maven
# - name: SonarCloud Scan
#working-directory: ./shipment-service
#run: mvn clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=nashtech
#run: mvn clean verify sonar:sonar -X
# run: |
# cd car-demo/shipment-service # Adjust the path accordingly
# mvn clean install sonar:sonar
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
setup-build-publish-deploy:
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 2a79392

Please sign in to comment.