Refactor: JJB code
- Fix shellcheck errors: SC1090, SC2164 and warnings
- Refactor yaml to standardize it across the repo with prettier
- Refactor with yamllint
Change-Id: Ie36c4a3af173fa3609cd4e904775be54b4a56990
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
diff --git a/jjb/nonrtric-plt-sme/nonrtric-plt-sme.yaml b/jjb/nonrtric-plt-sme/nonrtric-plt-sme.yaml
index a033ded..c38271c 100644
--- a/jjb/nonrtric-plt-sme/nonrtric-plt-sme.yaml
+++ b/jjb/nonrtric-plt-sme/nonrtric-plt-sme.yaml
@@ -15,8 +15,8 @@
jobs:
- gerrit-info-yaml-verify
-- _nonrtric_plt_sme_common: &nonrtric_plt_sme_common
- # values apply to all projects here
+- _nonrtric_plt_sme_common:
+ &nonrtric_plt_sme_common # values apply to all projects here
name: nonrtric-plt-sme-common
# git repo
project: nonrtric/plt/sme
@@ -35,27 +35,27 @@
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *nonrtric_plt_sme_common
name: nonrtric-plt-sme-capifcore
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-plt-capifcore'
+ docker-name: "o-ran-sc/nonrtric-plt-capifcore"
# get tag from YAML
container-tag-method: yaml-file
container-tag-yaml-dir: capifcore
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'capifcore'
+ docker-root: "capifcore"
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'capifcore/.*'
+ pattern: "capifcore/.*"
# Directory where go test should be run
- go-root: 'capifcore'
+ go-root: "capifcore"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
@@ -75,7 +75,7 @@
build-node: ubuntu1804-docker-4c-4g
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'capifcore/.*'
+ pattern: "capifcore/.*"
sonar-prescan-script: !include-raw-escape: prescan-capifcore-ubuntu.sh
sonar-project-file: ""
java-version: openjdk11