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
Feat: Add CLI Sonar scanner job
[releng/global-jjb.git]
/
jjb
/
lf-ci-jobs.yaml
diff --git
a/jjb/lf-ci-jobs.yaml
b/jjb/lf-ci-jobs.yaml
index
0ae94d8
..
09a76a1
100644
(file)
--- a/
jjb/lf-ci-jobs.yaml
+++ b/
jjb/lf-ci-jobs.yaml
@@
-30,7
+30,7
@@
submodule-disable: false
packer-builder: openstack
packer-cloud-settings: packer-cloud-env
submodule-disable: false
packer-builder: openstack
packer-cloud-settings: packer-cloud-env
- packer-version: 1.
6.6
+ packer-version: 1.
8.2
#####################
# Job Configuration #
#####################
# Job Configuration #
@@
-101,7
+101,7
@@
disable-job: false
github-url: "https://github.com"
jjb-cache: "$HOME/.cache/jenkins_jobs"
disable-job: false
github-url: "https://github.com"
jjb-cache: "$HOME/.cache/jenkins_jobs"
- jjb-version:
2.8
.0
+ jjb-version:
4.1
.0
stream: master
submodule-recursive: true
submodule-timeout: 10
stream: master
submodule-recursive: true
submodule-timeout: 10
@@
-387,7
+387,7
@@
github-hooks: true
org-list:
- "{github-org}"
github-hooks: true
org-list:
- "{github-org}"
- white-list: "{obj:github_pr_
white
list}"
+ white-list: "{obj:github_pr_
allow
list}"
admin-list: "{obj:github_pr_admin_list}"
included-regions: "{obj:github_included_regions}"
white-list-target-branches:
admin-list: "{obj:github_pr_admin_list}"
included-regions: "{obj:github_included_regions}"
white-list-target-branches:
@@
-670,7
+670,7
@@
- branch-compare-type: ANT
branch-pattern: "**"
skip-vote:
- branch-compare-type: ANT
branch-pattern: "**"
skip-vote:
- success: true
+ success
ful
: true
failed: true
unstable: true
notbuilt: true
failed: true
unstable: true
notbuilt: true
@@
-814,7
+814,7
@@
github-hooks: true
org-list:
- "{github-org}"
github-hooks: true
org-list:
- "{github-org}"
- white-list: "{obj:github_pr_
white
list}"
+ white-list: "{obj:github_pr_
allow
list}"
admin-list: "{obj:github_pr_admin_list}"
included-regions: "{obj:github_included_regions}"
white-list-target-branches:
admin-list: "{obj:github_pr_admin_list}"
included-regions: "{obj:github_included_regions}"
white-list-target-branches:
@@
-1372,6
+1372,12
@@
- lf-infra-pre-build
- inject:
properties-content: OS_CLOUD={openstack-cloud}
- lf-infra-pre-build
- inject:
properties-content: OS_CLOUD={openstack-cloud}
+ # K8s Clusters
+ - conditional-step:
+ condition-kind: boolean-expression
+ condition-expression: "{openstack-stack-cleanup}"
+ steps:
+ - shell: !include-raw-escape: ../shell/openstack-cleanup-orphaned-k8s-clusters.sh
# Stacks
- conditional-step:
condition-kind: boolean-expression
# Stacks
- conditional-step:
condition-kind: boolean-expression
@@
-1616,7
+1622,7
@@
github-hooks: true
org-list:
- "{github-org}"
github-hooks: true
org-list:
- "{github-org}"
- white-list: "{obj:github_pr_
white
list}"
+ white-list: "{obj:github_pr_
allow
list}"
admin-list: "{obj:github_pr_admin_list}"
# included-regions MUST match Gerrit Trigger file-paths
included-regions:
admin-list: "{obj:github_pr_admin_list}"
# included-regions MUST match Gerrit Trigger file-paths
included-regions:
@@
-2164,6
+2170,7
@@
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"
+ sonarcloud-java-version: openjdk11
stream: master
submodule-recursive: true
submodule-timeout: 10
stream: master
submodule-recursive: true
submodule-timeout: 10
@@
-2219,6
+2226,8
@@
name: lf-sonar-builders
builders:
- lf-infra-pre-build
name: lf-sonar-builders
builders:
- lf-infra-pre-build
+ - lf-update-java-alternatives:
+ java-version: "{sonarcloud-java-version}"
- lf-infra-sonar:
sonar-task: "{sonar-task}"
sonar-project-file: "{sonar-project-file}"
- lf-infra-sonar:
sonar-task: "{sonar-task}"
sonar-project-file: "{sonar-project-file}"
@@
-2230,6
+2239,8
@@
name: lf-sonar-builders-prescan
builders:
- lf-infra-pre-build
name: lf-sonar-builders-prescan
builders:
- lf-infra-pre-build
+ - lf-update-java-alternatives:
+ java-version: "{sonarcloud-java-version}"
- lf-infra-sonar-with-prescan:
sonar-task: "{sonar-task}"
sonar-project-file: "{sonar-project-file}"
- lf-infra-sonar-with-prescan:
sonar-task: "{sonar-task}"
sonar-project-file: "{sonar-project-file}"
@@
-2241,6
+2252,8
@@
name: lf-sonar-builders-prescan-script
builders:
- lf-infra-pre-build
name: lf-sonar-builders-prescan-script
builders:
- lf-infra-pre-build
+ - lf-update-java-alternatives:
+ java-version: "{sonarcloud-java-version}"
- shell: "{sonar-prescan-script}"
- lf-infra-sonar:
sonar-task: "{sonar-task}"
- shell: "{sonar-prescan-script}"
- lf-infra-sonar:
sonar-task: "{sonar-task}"