Fixed some CI flows & checks (#1405)
Signed-off-by: Marinov Avgustin <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -26,25 +26,32 @@ variables:
|
||||
- group: hawkbit
|
||||
|
||||
jobs:
|
||||
- job: JDK_11
|
||||
displayName: Verify with JDK-11 and SonarCloud analysis
|
||||
- job: JDK
|
||||
displayName: Verify with hawkBit default JDK and SonarCloud analysis
|
||||
steps:
|
||||
- template: rabbitmq-template.yml
|
||||
- template: maven-template.yml
|
||||
parameters:
|
||||
mavenGoals: "verify -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=$(sonarCloudOrganization) -Dsonar.projectKey=$(sonarProjectKey)"
|
||||
jdkVersionOption: "1.11"
|
||||
sonarQubeRunAnalysis: true
|
||||
sonarCloudConnection: $(sonarCloudConnection)
|
||||
sonarCloudOrganization: $(sonarCloudOrganization)
|
||||
- job: JDK_11
|
||||
displayName: Build with JDK-11 (hawkBit default)
|
||||
steps:
|
||||
- template: maven-template.yml
|
||||
parameters:
|
||||
mavenGoals: "install license:check"
|
||||
jdkVersionOption: "1.11"
|
||||
- job: JDK_8
|
||||
displayName: Build with JDK-8 (hawkBit default)
|
||||
steps:
|
||||
- template: maven-template.yml
|
||||
parameters:
|
||||
mavenGoals: "install license:check"
|
||||
jdkVersionOption: "1.8"
|
||||
- job:
|
||||
dependsOn: JDK_8
|
||||
dependsOn: JDK
|
||||
condition: succeeded()
|
||||
displayName: RABBIT
|
||||
strategy:
|
||||
@@ -63,7 +70,7 @@ jobs:
|
||||
parameters:
|
||||
mavenGoals: "verify"
|
||||
- job:
|
||||
dependsOn: JDK_8
|
||||
dependsOn: JDK
|
||||
condition: succeeded()
|
||||
displayName: MYSQL
|
||||
strategy:
|
||||
@@ -80,7 +87,7 @@ jobs:
|
||||
parameters:
|
||||
mavenGoals: "verify -Dspring.jpa.database=MYSQL -Dspring.datasource.driverClassName=org.mariadb.jdbc.Driver -Dspring.datasource.url=jdbc:mariadb://localhost:3306/hawkbit -Dspring.datasource.username=root -Dspring.datasource.password=8236472364"
|
||||
- job:
|
||||
dependsOn: JDK_8
|
||||
dependsOn: JDK
|
||||
condition: succeeded()
|
||||
displayName: MSSQL
|
||||
strategy:
|
||||
@@ -101,7 +108,7 @@ jobs:
|
||||
parameters:
|
||||
mavenGoals: "verify -Dspring.jpa.database=SQL_SERVER -Dspring.datasource.url=jdbc:sqlserver://localhost:1433;database=hawkbit -Dspring.datasource.username=SA -Dspring.datasource.password=1234567890.Ab -Dspring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver"
|
||||
- job:
|
||||
dependsOn: JDK_8
|
||||
dependsOn: JDK
|
||||
condition: succeeded()
|
||||
displayName: POSTGRESQL
|
||||
strategy:
|
||||
|
||||
@@ -5,7 +5,7 @@ parameters:
|
||||
- name: jdkVersionOption
|
||||
displayName: JDK Version
|
||||
type: string
|
||||
default: "1.8"
|
||||
default: "1.17"
|
||||
- name: sonarQubeRunAnalysis
|
||||
displayName: Enable SonarQube analysis
|
||||
type: boolean
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
working_directory: ~/hawkBit
|
||||
|
||||
docker:
|
||||
- image: cimg/openjdk:17.0.7
|
||||
- image: cimg/openjdk:17.0.8
|
||||
auth:
|
||||
username: $DOCKERHUB_USER
|
||||
password: $DOCKERHUB_ACCESSTOKEN
|
||||
|
||||
6
.github/workflows/trivy-scan.yml
vendored
6
.github/workflows/trivy-scan.yml
vendored
@@ -23,11 +23,11 @@ jobs:
|
||||
- name: Set up JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: "adopt"
|
||||
java-version: "11"
|
||||
distribution: "temurin"
|
||||
java-version: "17"
|
||||
cache: "maven"
|
||||
|
||||
- name: Create Hawkbit container images
|
||||
- name: Create hawkBit container images
|
||||
run: |
|
||||
mvn clean install -DskipTests -Pdocker
|
||||
|
||||
|
||||
Reference in New Issue
Block a user