Skip to content

Commit

Permalink
Update car-demo-pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sabiaparveen1 authored Jan 25, 2024
1 parent 6137ea9 commit 7e3d69c
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/car-demo-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,47 +20,47 @@ jobs:
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: 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
# # - 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'
# # 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: 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:
Expand Down

0 comments on commit 7e3d69c

Please sign in to comment.