Skip to content
Merged
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
96 changes: 45 additions & 51 deletions .github/workflows/main-build-and-deploy-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,68 +9,63 @@ on:
types: [ "released" ]

jobs:
blackduck:
name: Blackduck Scan
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Scan With Black Duck
uses: ./.github/actions/scan-with-blackduck
with:
blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}
maven-version: ${{ env.MAVEN_VERSION }}

update-version:
name: Update Version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
#blackduck:
# name: Blackduck Scan
# runs-on: ubuntu-latest
# timeout-minutes: 15
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Scan With Black Duck
# uses: ./.github/actions/scan-with-blackduck
# with:
# blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }}
# github_token: ${{ secrets.GITHUB_TOKEN }}
# maven-version: ${{ env.MAVEN_VERSION }}

- name: Update version
uses: ./.github/actions/newrelease
with:
java-version: ${{ env.JAVA_VERSION }}
maven-version: ${{ env.MAVEN_VERSION }}

- name: Upload Changed Artifacts
uses: actions/upload-artifact@v4
with:
name: root-new-version
path: .
include-hidden-files: true
retention-days: 1
#update-version:
# name: Update Version
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# token: ${{ secrets.GH_TOKEN }}
# - name: Update version
# uses: ./.github/actions/newrelease
# with:
# java-version: ${{ env.JAVA_VERSION }}
# maven-version: ${{ env.MAVEN_VERSION }}
# - name: Upload Changed Artifacts
# uses: actions/upload-artifact@v4
# with:
# name: root-new-version
# path: .
# include-hidden-files: true
# retention-days: 1

build:
name: Build and Sonar Scan
#name: Build and Sonar Scan
name: Build
runs-on: ubuntu-latest
needs: update-version
#needs: update-version
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: root-new-version

- name: Build
uses: ./.github/actions/build
with:
java-version: ${{ env.JAVA_VERSION }}
maven-version: ${{ env.MAVEN_VERSION }}

- name: Sonar Scan
uses: ./.github/actions/scan-with-sonar
with:
java-version: ${{ env.JAVA_VERSION }}
maven-version: ${{ env.MAVEN_VERSION }}
sonarq-token: ${{ secrets.SONARQ_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}

#- name: Sonar Scan
# uses: ./.github/actions/scan-with-sonar
# with:
# java-version: ${{ env.JAVA_VERSION }}
# maven-version: ${{ env.MAVEN_VERSION }}
# sonarq-token: ${{ secrets.SONARQ_TOKEN }}
# github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Changed Artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -82,13 +77,13 @@ jobs:
deploy:
name: Deploy to Maven Central
runs-on: ubuntu-latest
needs: [blackduck, build]
#needs: [blackduck, build]
needs: [build]
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: root-build

- name: Deploy
uses: ./.github/actions/deploy-release
with:
Expand All @@ -99,6 +94,5 @@ jobs:
pgp-passphrase: ${{ secrets.PGP_PASSPHRASE }}
revision: ${{ github.event.release.tag_name }}
maven-version: ${{ env.MAVEN_VERSION }}

- name: Echo Status
run: echo "The job status is ${{ job.status }}"