Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CI: Change conclusion getter
[releng/global-jjb.git]
/
jjb
/
lf-maven-jobs.yaml
diff --git
a/jjb/lf-maven-jobs.yaml
b/jjb/lf-maven-jobs.yaml
index
99ab313
..
59cb893
100644
(file)
--- a/
jjb/lf-maven-jobs.yaml
+++ b/
jjb/lf-maven-jobs.yaml
@@
-17,7
+17,7
@@
- builder:
name: lf-maven-deploy
builders:
- builder:
name: lf-maven-deploy
builders:
- - shell: !include-raw:
+ - shell: !include-raw
-escape
:
- ../shell/common-variables.sh
- ../shell/maven-deploy.sh
- ../shell/common-variables.sh
- ../shell/maven-deploy.sh
@@
-72,7
+72,7
@@
# COMMON FUNCTIONS #
####################
# COMMON FUNCTIONS #
####################
-- lf_maven_common: &lf_maven_common
+-
_
lf_maven_common: &lf_maven_common
name: lf-maven-common
######################
name: lf-maven-common
######################
@@
-127,7
+127,7
@@
# Maven CLM #
#############
# Maven CLM #
#############
-- lf_maven_clm: &lf_maven_clm
+-
_
lf_maven_clm: &lf_maven_clm
name: lf-maven-clm
######################
name: lf-maven-clm
######################
@@
-297,7
+297,7
@@
# Maven Snyk CLI #
##################
# Maven Snyk CLI #
##################
-- lf_maven_snyk_cli: &lf_maven_snyk_cli
+-
_
lf_maven_snyk_cli: &lf_maven_snyk_cli
name: lf-maven-snyk_cli
######################
name: lf-maven-snyk_cli
######################
@@
-463,7
+463,7
@@
# Maven Javadoc Publish #
#########################
# Maven Javadoc Publish #
#########################
-- lf_maven_javadoc_publish: &lf_maven_javadoc_publish
+-
_
lf_maven_javadoc_publish: &lf_maven_javadoc_publish
name: lf-maven-javadoc-publish
######################
name: lf-maven-javadoc-publish
######################
@@
-595,7
+595,7
@@
# Maven Javadoc Verify #
########################
# Maven Javadoc Verify #
########################
-- lf_maven_javadoc_verify: &lf_maven_javadoc_verify
+-
_
lf_maven_javadoc_verify: &lf_maven_javadoc_verify
name: lf-maven-javadoc-verify
######################
name: lf-maven-javadoc-verify
######################
@@
-719,7
+719,7
@@
# Maven Merge #
###############
# Maven Merge #
###############
-- lf_maven_merge: &lf_maven_merge
+-
_
lf_maven_merge: &lf_maven_merge
name: lf-maven-merge
######################
name: lf-maven-merge
######################
@@
-733,6
+733,10
@@
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,\
+ **/generated-sources/**,\
+ **/yang-gen**,\
+ **/pax/**"
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
@@
-794,7
+798,8
@@
publishers:
- findbugs
publishers:
- findbugs
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- lf-infra-publish
- trigger-parameterized-builds: "{obj:post_build_trigger}"
- lf-infra-publish
- trigger-parameterized-builds: "{obj:post_build_trigger}"
@@
-876,7
+881,7
@@
# Maven Merge for Docker #
##########################
# Maven Merge for Docker #
##########################
-- lf_maven_docker_merge: &lf_maven_docker_merge
+-
_
lf_maven_docker_merge: &lf_maven_docker_merge
name: lf-maven-docker-merge
builders:
name: lf-maven-docker-merge
builders:
@@
-987,7
+992,7
@@
# Maven Stage #
###############
# Maven Stage #
###############
-- lf_maven_stage: &lf_maven_stage
+-
_
lf_maven_stage: &lf_maven_stage
name: lf-maven-stage
######################
name: lf-maven-stage
######################
@@
-1185,7
+1190,7
@@
# Maven Stage for Docker #
##########################
# Maven Stage for Docker #
##########################
-- lf_maven_docker_stage: &lf_maven_docker_stage
+-
_
lf_maven_docker_stage: &lf_maven_docker_stage
name: lf-maven-docker-stage
builders:
name: lf-maven-docker-stage
builders:
@@
-1215,6
+1220,14
@@
CONTAINER_PUSH_REGISTRY={container-staging-registry}
- lf-maven-build:
mvn-goals: "{mvn-goals}"
CONTAINER_PUSH_REGISTRY={container-staging-registry}
- lf-maven-build:
mvn-goals: "{mvn-goals}"
+ # With SBOM Generator
+ - conditional-step:
+ condition-kind: boolean-expression
+ condition-expression: "{sbom-generator}"
+ steps:
+ - shell: echo 'Running SBOM Generator'
+ - lf-infra-maven-sbom-generator:
+ sbom-flags: "{sbom-flags}"
- lf-sigul-sign-dir:
sign-artifacts: "{sign-artifacts}"
sign-dir: "$WORKSPACE/m2repo"
- lf-sigul-sign-dir:
sign-artifacts: "{sign-artifacts}"
sign-dir: "$WORKSPACE/m2repo"
@@
-1302,7
+1315,7
@@
# Maven Sonar #
###############
# Maven Sonar #
###############
-- lf_maven_sonar: &lf_maven_sonar
+-
_
lf_maven_sonar: &lf_maven_sonar
name: lf-maven-sonar
######################
name: lf-maven-sonar
######################
@@
-1316,6
+1329,10
@@
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,\
+ **/generated-sources/**,\
+ **/yang-gen**,\
+ **/pax/**"
java-version: openjdk11
java-opts: ""
mvn-global-settings: global-settings
java-version: openjdk11
java-opts: ""
mvn-global-settings: global-settings
@@
-1329,9
+1346,8
@@
sonarcloud-project-organization: ""
sonarcloud-api-token-cred-id: sonarcloud-api-token
sonarcloud-qualitygate-wait: false
sonarcloud-project-organization: ""
sonarcloud-api-token-cred-id: sonarcloud-api-token
sonarcloud-qualitygate-wait: false
- # SonarCloud scan using jdk8 will become deprecated by Oct, 2020
- # Projects not compatible with jdk11 can set java-version to something else
- sonarcloud-java-version: openjdk11
+ # Projects not compatible with jdk17 can set java-version to something else
+ sonarcloud-java-version: openjdk17
stream: master
submodule-recursive: true
submodule-timeout: 10
stream: master
submodule-recursive: true
submodule-timeout: 10
@@
-1398,11
+1414,12
@@
notbuilt: true
publishers:
notbuilt: true
publishers:
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- findbugs
- lf-infra-publish
- findbugs
- lf-infra-publish
-- mvn_sonar_builders: &mvn_sonar_builders
+-
_
mvn_sonar_builders: &mvn_sonar_builders
name: mvn-sonar-builders
builders:
- lf-infra-pre-build
name: mvn-sonar-builders
builders:
- lf-infra-pre-build
@@
-1436,7
+1453,7
@@
mvn-settings: "{mvn-settings}"
mvn-version: "{mvn-version}"
mvn-settings: "{mvn-settings}"
mvn-version: "{mvn-version}"
-- mvn_sonar_builders_prescan_script: &mvn_sonar_builders_prescan_script
+-
_
mvn_sonar_builders_prescan_script: &mvn_sonar_builders_prescan_script
name: mvn-sonar-builders-prescan-script
builders:
- shell: "{sonar-prescan-script}"
name: mvn-sonar-builders-prescan-script
builders:
- shell: "{sonar-prescan-script}"
@@
-1697,7
+1714,7
@@
# Maven Verify #
################
# Maven Verify #
################
-- lf_maven_verify: &lf_maven_verify
+-
_
lf_maven_verify: &lf_maven_verify
name: lf-maven-verify
######################
name: lf-maven-verify
######################
@@
-1710,6
+1727,10
@@
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,\
+ **/generated-sources/**,\
+ **/yang-gen**,\
+ **/pax/**"
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
@@
-1765,7
+1786,8
@@
publishers:
- findbugs
publishers:
- findbugs
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- lf-infra-publish
- job-template:
- lf-infra-publish
- job-template:
@@
-1837,7
+1859,7
@@
# Maven Verify for Docker #
###########################
# Maven Verify for Docker #
###########################
-- lf_maven_docker_verify: &lf_maven_docker_verify
+-
_
lf_maven_docker_verify: &lf_maven_docker_verify
name: lf-maven-docker-verify
# image push not allowed during verification
name: lf-maven-docker-verify
# image push not allowed during verification
@@
-1937,7
+1959,7
@@
# Maven Verify Dependencies #
#############################
# Maven Verify Dependencies #
#############################
-- lf_maven_verify_dependencies: &lf_maven_verify_dependencies
+-
_
lf_maven_verify_dependencies: &lf_maven_verify_dependencies
name: lf-maven-verify-dependencies
######################
name: lf-maven-verify-dependencies
######################
@@
-1950,6
+1972,10
@@
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
disable-job: false
git-url: "$GIT_URL/$PROJECT"
github-url: "https://github.com"
+ jacoco-exclude-pattern: "**/gen/**,\
+ **/generated-sources/**,\
+ **/yang-gen**,\
+ **/pax/**"
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
java-version: openjdk11
mvn-global-settings: global-settings
mvn-goals: clean deploy
@@
-1995,7
+2021,8
@@
publishers:
- findbugs
publishers:
- findbugs
- - lf-jacoco-report
+ - lf-jacoco-report:
+ exclude-pattern: "{jacoco-exclude-pattern}"
- lf-infra-publish
- job-template:
- lf-infra-publish
- job-template: