+++ /dev/null
-extends: default
-
-rules:
- empty-lines:
- max-end: 1
- line-length:
- max: 120
Custom JJB templates are defined for projects that use Docker to
compile code and build DEB/RPM packages, then push the packages to
-PackageCloud.io. These projects should use the following jobs in
+PackageCloud.io. These projects should use the following jobs in
their respective project.yaml file::
jobs:
## Testing the templates
These instructions explain how to test the templates using the Jenkins
-sandbox. This catches errors before submitting the changes as Gerrit
+sandbox. This catches errors before submitting the changes as Gerrit
reviews.
### Prerequisites
https://jenkins.o-ran-sc.org/sandbox
Get the authentication token from the sandbox:
- a) click on your user name (top right)
- b) click Configure (left menu)
- c) under API Token, click Add new Token (button)
- d) copy the token string
+a) click on your user name (top right)
+b) click Configure (left menu)
+c) under API Token, click Add new Token (button)
+d) copy the token string
Create a config file jenkins.ini using the following template and your
credentials (user name and API token from above)::
### How to build from a Gerrit review branch
This explains how to launch a "verify" job in the Sandbox on an open
-review. Most "verify" jobs accept parameters to build code in a
-review submitted to Gerrit. You must specify the change ref spec,
-which is a Git branch name. Get this by inspecting Gerrit's
-"download" links at the top right. The branch name will be something
+review. Most "verify" jobs accept parameters to build code in a
+review submitted to Gerrit. You must specify the change ref spec,
+which is a Git branch name. Get this by inspecting Gerrit's
+"download" links at the top right. The branch name will be something
like this:
- refs/changes/78/578/2
+ refs/changes/78/578/2
The first number is a mystery to me; the second number is the Gerrit
change number; the third number is the patch set within the change.
---
name: ".packagecloud"
-comment: "packagecloud credentials to publish packages"
\ No newline at end of file
+comment: "packagecloud credentials to publish packages"
---
customizedCredentialMappings:
- credentialsId: "package-cloud"
- tokenKey: "PACKAGE_CLOUD"
\ No newline at end of file
+ tokenKey: "PACKAGE_CLOUD"
---
name: "clouds-yaml"
-comment: "clouds-yaml"
\ No newline at end of file
+comment: "clouds-yaml"
---
customizedCredentialMappings:
- credentialsId: "clouds-yaml"
- tokenKey: "CLOUDS_YAML"
\ No newline at end of file
+ tokenKey: "CLOUDS_YAML"
---
name: "jjbini"
-comment: "jjbini"
\ No newline at end of file
+comment: "jjbini"
- credentialsId: "jobbuilder-prod"
tokenKey: "JOBBUILDER_PROD"
- credentialsId: "jobbuilder-sandbox"
- tokenKey: "JOBBUILDER_SANDBOX"
\ No newline at end of file
+ tokenKey: "JOBBUILDER_SANDBOX"
---
name: "lftoolsini"
-comment: "lftoolsini"
\ No newline at end of file
+comment: "lftoolsini"
- credentialsId: "lftoolsini-nexus"
tokenKey: "LFTOOLSINI_NEXUS"
- credentialsId: "lftoolsini-nexus-oran-sc"
- tokenKey: "LFTOOLSINI_NEXUS_ORAN_SC"
\ No newline at end of file
+ tokenKey: "LFTOOLSINI_NEXUS_ORAN_SC"
---
name: "npmrc"
-comment: "npmrc"
\ No newline at end of file
+comment: "npmrc"
---
name: "packagecloud-account"
-comment: "packagecloud-account"
\ No newline at end of file
+comment: "packagecloud-account"
---
name: "packagecloud_api"
-comment: "packagecloud_api"
\ No newline at end of file
+comment: "packagecloud_api"
---
customizedCredentialMappings:
- credentialsId: "packagecloud-api"
- tokenKey: "PACKAGECLOUD_API"
\ No newline at end of file
+ tokenKey: "PACKAGECLOUD_API"
---
name: "packer-cloud-env"
-comment: "packer-cloud-env"
\ No newline at end of file
+comment: "packer-cloud-env"
---
customizedCredentialMappings:
- credentialsId: "packer-cloud"
- tokenKey: "PACKER_CLOUD"
\ No newline at end of file
+ tokenKey: "PACKER_CLOUD"
---
name: "pipconf"
-comment: "pipconf"
\ No newline at end of file
+comment: "pipconf"
---
name: "pypirc"
-comment: "pypirc"
\ No newline at end of file
+comment: "pypirc"
- credentialsId: "pypi-release"
tokenKey: "PYPI_RELEASE"
- credentialsId: "pypi-test"
- tokenKey: "PYPI_TEST"
\ No newline at end of file
+ tokenKey: "PYPI_TEST"
---
name: "signing-pubkey"
-comment: "signing-pubkey"
\ No newline at end of file
+comment: "signing-pubkey"
---
customizedCredentialMappings:
- credentialsId: "signing-pubkey"
- tokenKey: "SIGNING_PUBKEY"
\ No newline at end of file
+ tokenKey: "SIGNING_PUBKEY"
---
name: "sigul-config"
-comment: "sigul-config"
\ No newline at end of file
+comment: "sigul-config"
---
customizedCredentialMappings:
- credentialsId: "sigul-config"
- tokenKey: "SIGUL_CONFIG"
\ No newline at end of file
+ tokenKey: "SIGUL_CONFIG"
---
name: "sigul-password"
-comment: "sigul-password"
\ No newline at end of file
+comment: "sigul-password"
---
customizedCredentialMappings:
- credentialsId: "sigul-password"
- tokenKey: "SIGUL_PASSWORD"
\ No newline at end of file
+ tokenKey: "SIGUL_PASSWORD"
---
name: "sigul-pki"
-comment: "sigul-pki"
\ No newline at end of file
+comment: "sigul-pki"
---
customizedCredentialMappings:
- credentialsId: "sigul-pki"
- tokenKey: "SIGUL_PKI"
\ No newline at end of file
+ tokenKey: "SIGUL_PKI"
---
name: "global-settings"
-comment: "global-settings"
\ No newline at end of file
+comment: "global-settings"
---
name: "aiml-fw-aihp-ips-kserve-adapter"
-comment: "aiml-fw-aihp-ips-kserve-adapter"
\ No newline at end of file
+comment: "aiml-fw-aihp-ips-kserve-adapter"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-aihp-ips-kserve-adapter"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-aihp-ips-kserve-adapter"
\ No newline at end of file
+ credentialsId: "aiml-fw-aihp-ips-kserve-adapter"
---
name: "aiml-fw-aihp-tps-kserve-adapter"
-comment: "aiml-fw-aihp-tps-kserve-adapter"
\ No newline at end of file
+comment: "aiml-fw-aihp-tps-kserve-adapter"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-aihp-tps-kserve-adapter"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-aihp-tps-kserve-adapter"
\ No newline at end of file
+ credentialsId: "aiml-fw-aihp-tps-kserve-adapter"
---
name: "aiml-fw-athp-data-extraction"
-comment: "aiml-fw-athp-data-extraction"
\ No newline at end of file
+comment: "aiml-fw-athp-data-extraction"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-athp-data-extraction"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-athp-data-extraction"
\ No newline at end of file
+ credentialsId: "aiml-fw-athp-data-extraction"
---
name: "aiml-fw-athp-sdk-feature-store"
-comment: "aiml-fw-athp-sdk-feature-store"
\ No newline at end of file
+comment: "aiml-fw-athp-sdk-feature-store"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-athp-sdk-feature-store"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-athp-sdk-feature-store"
\ No newline at end of file
+ credentialsId: "aiml-fw-athp-sdk-feature-store"
---
name: "aiml-fw-athp-sdk-model-storage"
-comment: "aiml-fw-athp-sdk-model-storage"
\ No newline at end of file
+comment: "aiml-fw-athp-sdk-model-storage"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-athp-sdk-model-storage"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-athp-sdk-model-storage"
\ No newline at end of file
+ credentialsId: "aiml-fw-athp-sdk-model-storage"
---
name: "aiml-fw-athp-tps-kubeflow-adapter"
-comment: "aiml-fw-athp-tps-kubeflow-adapter"
\ No newline at end of file
+comment: "aiml-fw-athp-tps-kubeflow-adapter"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-athp-tps-kubeflow-adapter"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-athp-tps-kubeflow-adapter"
\ No newline at end of file
+ credentialsId: "aiml-fw-athp-tps-kubeflow-adapter"
---
name: "aiml-fw-awmf-tm"
-comment: "aiml-fw-awmf-tm"
\ No newline at end of file
+comment: "aiml-fw-awmf-tm"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "aiml-fw-awmf-tm"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "aiml-fw-awmf-tm"
\ No newline at end of file
+ credentialsId: "aiml-fw-awmf-tm"
---
name: "nonrtric-plt-ranpm"
-comment: "nonrtric-plt-ranpm"
\ No newline at end of file
+comment: "nonrtric-plt-ranpm"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "nonrtric-plt-ranpm"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "nonrtric-plt-ranpm"
\ No newline at end of file
+ credentialsId: "nonrtric-plt-ranpm"
---
name: "nonrtric-plt-sme"
-comment: "nonrtric-plt-sme"
\ No newline at end of file
+comment: "nonrtric-plt-sme"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "nonrtric-plt-sme"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "nonrtric-plt-sme"
\ No newline at end of file
+ credentialsId: "nonrtric-plt-sme"
---
name: "portal-aiml-dashboard"
-comment: "portal-aiml-dashboard"
\ No newline at end of file
+comment: "portal-aiml-dashboard"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "portal-aiml-dashboard"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "portal-aiml-dashboard"
\ No newline at end of file
+ credentialsId: "portal-aiml-dashboard"
---
name: "ric-app-ad-cell"
-comment: "ric-app-ad-cell"
\ No newline at end of file
+comment: "ric-app-ad-cell"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "ric-app-ad-cell"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "ric-app-ad-cell"
\ No newline at end of file
+ credentialsId: "ric-app-ad-cell"
---
name: "ric-app-qp-aimlfw"
-comment: "ric-app-qp-aimlfw"
\ No newline at end of file
+comment: "ric-app-qp-aimlfw"
- serverId: "nexus3.o-ran-sc.org:10003"
credentialsId: "ric-app-qp-aimlfw"
- serverId: "nexus3.o-ran-sc.org:10004"
- credentialsId: "ric-app-qp-aimlfw"
\ No newline at end of file
+ credentialsId: "ric-app-qp-aimlfw"
---
name: "jenkins-init-script"
-comment: "jenkins-init-script"
\ No newline at end of file
+comment: "jenkins-init-script"
build-node: centos7-builder-1c-1g
branch: master
jobs:
- - gerrit-info-yaml-verify
\ No newline at end of file
+ - gerrit-info-yaml-verify
build-node: centos7-builder-1c-1g
branch: master
jobs:
- - gerrit-info-yaml-verify
\ No newline at end of file
+ - gerrit-info-yaml-verify
jobs:
- gerrit-info-yaml-verify
-- _aiml_de_docker_common: &aiml_de_docker_common
- # values apply to all training manager projects
+- _aiml_de_docker_common:
+ &aiml_de_docker_common # values apply to all training manager projects
name: aiml-fw-athp-data-extraction-docker-common
# git repo
project: aiml-fw/athp/data-extraction
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *aiml_de_docker_common
name: aiml-fw-athp-data-extraction-docker
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
- docker-root: '.'
+ docker-root: "."
# source of docker tag
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
container-tag-method: yaml-file
build-node: ubuntu1804-docker-4c-4g
jobs:
python-version: python3
# skip docs on verify
tox-envs: code
- tox-dir: '.'
+ tox-dir: "."
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'dataextraction/.*'
+ pattern: "dataextraction/.*"
stream:
# run verify on all branches
# the ANT pattern is **/{branch}, we are exploiting that.
<<: *aiml_de_docker_common
name: aiml-fw-athp-data-extraction-sonarqube
python-version: python3
- tox-dir: '.'
+ tox-dir: "."
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'dataextraction/.*'
+ pattern: "dataextraction/.*"
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=dataextraction
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=dataextraction
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
jobs:
- gerrit-info-yaml-verify
-- _aiml_fssdk_docker_common: &aiml_fssdk_docker_common
- # values apply to all training manager projects
+- _aiml_fssdk_docker_common:
+ &aiml_fssdk_docker_common # values apply to all training manager projects
name: aiml-fw-athp-sdk-feature-store-docker-common
# git repo
project: aiml-fw/athp/sdk/feature-store
python-version: python3
# skip docs on verify
tox-envs: code
- tox-dir: '.'
+ tox-dir: "."
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'featurestoresdk/.*'
+ pattern: "featurestoresdk/.*"
stream:
# run verify on all branches
# the ANT pattern is **/{branch}, we are exploiting that.
<<: *aiml_fssdk_docker_common
name: aiml-fw-athp-sdk-feature-store-sonarqube
python-version: python3
- tox-dir: '.'
+ tox-dir: "."
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'featurestoresdk/.*'
+ pattern: "featurestoresdk/.*"
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=featurestoresdk
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=featurestoresdk
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
jobs:
- gerrit-info-yaml-verify
-- _aiml_mssdk_docker_common: &aiml_mssdk_docker_common
- # values apply to all training manager projects
+- _aiml_mssdk_docker_common:
+ &aiml_mssdk_docker_common # values apply to all training manager projects
name: aiml-fw-athp-sdk-model-storage-docker-common
# git repo
project: aiml-fw/athp/sdk/model-storage
python-version: python3
# skip docs on verify
tox-envs: code
- tox-dir: '.'
+ tox-dir: "."
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'modelmetricsdk/.*'
+ pattern: "modelmetricsdk/.*"
stream:
# run verify on all branches
# the ANT pattern is **/{branch}, we are exploiting that.
<<: *aiml_mssdk_docker_common
name: aiml-fw-athp-sdk-model-storage-sonarqube
python-version: python3
- tox-dir: '.'
+ tox-dir: "."
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'modelmetricsdk/.*'
+ pattern: "modelmetricsdk/.*"
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=modelmetricsdk
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=modelmetricsdk
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
jobs:
- gerrit-info-yaml-verify
-- _aiml_kfc_docker_common: &aiml_kfc_docker_common
- # values apply to all training manager projects
+- _aiml_kfc_docker_common:
+ &aiml_kfc_docker_common # values apply to all training manager projects
name: aiml-fw-athp-tps-kubeflow-adapter-docker-common
# git repo
project: aiml-fw/athp/tps/kubeflow-adapter
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *aiml_kfc_docker_common
name: aiml-fw-athp-tps-kubeflow-adapter-docker
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
- docker-root: '.'
+ docker-root: "."
# source of docker tag
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
container-tag-method: yaml-file
build-node: ubuntu1804-docker-4c-4g
jobs:
python-version: python3
# skip docs on verify
tox-envs: code
- tox-dir: '.'
+ tox-dir: "."
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'kfadapter/.*'
+ pattern: "kfadapter/.*"
stream:
# run verify on all branches
# the ANT pattern is **/{branch}, we are exploiting that.
<<: *aiml_kfc_docker_common
name: aiml-fw-athp-tps-kubeflow-adapter-sonarqube
python-version: python3
- tox-dir: '.'
+ tox-dir: "."
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'kfadapter/.*'
+ pattern: "kfadapter/.*"
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=kfadapter
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=kfadapter
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
jobs:
- gerrit-info-yaml-verify
-- _aiml_tm_docker_common: &aiml_tm_docker_common
- # values apply to all training manager projects
+- _aiml_tm_docker_common:
+ &aiml_tm_docker_common # values apply to all training manager projects
name: aiml-fw-awmf-tm-docker-common
# git repo
project: aiml-fw/awmf/tm
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *aiml_tm_docker_common
name: aiml-fw-awmf-tm-docker
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
- docker-root: '.'
+ docker-root: "."
# source of docker tag
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
container-tag-method: yaml-file
build-node: ubuntu1804-docker-4c-4g
jobs:
python-version: python3
# skip docs on verify
tox-envs: code
- tox-dir: '.'
+ tox-dir: "."
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'trainingmgr/.*'
+ pattern: "trainingmgr/.*"
stream:
# run verify on all branches
# the ANT pattern is **/{branch}, we are exploiting that.
<<: *aiml_tm_docker_common
name: aiml-fw-awmf-tm-sonarqube
python-version: python3
- tox-dir: '.'
+ tox-dir: "."
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'trainingmgr/.*'
+ pattern: "trainingmgr/.*"
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=trainingmgr
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=trainingmgr
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
build-node: centos7-builder-1c-1g
branch: master
jobs:
- - gerrit-info-yaml-verify
\ No newline at end of file
+ - gerrit-info-yaml-verify
# maven settings file has docker credentials
mvn-settings: ci-management-settings
# build every Saturday
- cron: 'H H * * 6'
+ cron: "H H * * 6"
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# get tag from YAML
container-tag-method: yaml-file
# name key is overridden by project template
# Jenkins job prefix
- project-name: '{project}-{name}'
+ project-name: "{project}-{name}"
# Docker image name
- docker-name: '{name}'
+ docker-name: "{name}"
# Directory with Dockerfile
- docker-root: 'docker/{name}'
+ docker-root: "docker/{name}"
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'docker/{name}/.*'
+ pattern: "docker/{name}/.*"
# Includes verify and merge jobs
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
# Only build master branch
stream:
- master:
build-node-label-list: ""
jobs:
- - 'gerrit-info-yaml-verify'
+ - "gerrit-info-yaml-verify"
- gerrit-jenkins-cfg-verify
- gerrit-jenkins-sandbox-cleanup
- gerrit-jjb-deploy-job
<<: *ci_jobs_common
jenkins-urls: >
- https://jenkins.o-ran-sc.org/
- https://jenkins.o-ran-sc.org/sandbox
+ https://jenkins.o-ran-sc.org/
+ https://jenkins.o-ran-sc.org/sandbox
openstack-cloud: vex
<<: *ci_packer_common
-
- project:
name: packer-builder-jobs
jobs:
jobs:
- gerrit-info-yaml-verify
-- _golog_docker_common: &golog_docker_common
- # values apply to all golog docker projects
+- _golog_docker_common:
+ &golog_docker_common # values apply to all golog docker projects
name: golog-docker-common
# git repo
project: com/golog
<<: *golog_docker_common
name: com-golog
# image name, altho it is never pushed
- docker-name: '{name}'
+ docker-name: "{name}"
# use host network
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
name: com-golog-go-release
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
export CFG_FILE=../config/config-file.json
export RMR_SEED_RT=../config/uta_rtg.rt
+# shellcheck disable=SC2034
GO111MODULE=on GO_ENABLED=0 GOOS=linux
# setup version tag
echo "---> cmake-sonarqube.sh starts"
CMAKE_OPTS=
-BUILD_DIR=$WORKSPACE/src
-BUILD_WRAP_DIR=$WORKSPACE/bw-output
+BUILD_DIR="${WORKSPACE}"/src
+BUILD_WRAP_DIR="${WORKSPACE}"/bw-output
-build_dir="${BUILD_DIR:-$WORKSPACE/build}"
-build_wrap_dir="${BUILD_WRAP_DIR:-$WORKSPACE/bw-output}"
+build_dir="${BUILD_DIR:-${WORKSPACE}/build}"
+build_wrap_dir="${BUILD_WRAP_DIR:-${WORKSPACE}/bw-output}"
+# shellcheck disable=SC2034
cmake_opts="${CMAKE_OPTS:-}"
make_opts="${MAKE_OPTS:-}"
jobs:
- gerrit-info-yaml-verify
-- _com_log_common: &com_log_common
- # values apply to all com/log projects
+- _com_log_common: &com_log_common # values apply to all com/log projects
name: com-log-common
# git repo
project: com/log
make-opts: -j 2 test
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- gerrit-autotools-verify
stream:
<<: *com_log_common
<<: *com_log_pkg_common
name: com-log-deb
- project-name: '{name}'
+ project-name: "{name}"
configure-opts: --with-deb-dir={build-dir}
make-opts: -j4 deb-pkg
<<: *com_log_common
<<: *com_log_pkg_common
name: com-log-rpm
- project-name: '{name}'
+ project-name: "{name}"
configure-opts: --with-rpm-dir={build-dir}
# parallel jobs (option -j) fail on rpm build
# https://bugzilla.redhat.com/show_bug.cgi?id=1398405
make-opts: -j4 test_gcov
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=src
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.cache.enabled=false
- sonar.cfamily.gcov.reportsPath=gcov_report
- sonar.cfamily.threads=4
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=src
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.cache.enabled=false
+ sonar.cfamily.gcov.reportsPath=gcov_report
+ sonar.cfamily.threads=4
jobs:
- gerrit-autotools-sonarqube
tox-dir: mdclogpy
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'mdclogpy/.*'
+ pattern: "mdclogpy/.*"
stream:
- master:
branch: master
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: centos7-docker-2c-8g
# do not trigger on changes in docs, releases
-
-- _pylog_python: &pylog_python
- # settings for python builds
+- _pylog_python: &pylog_python # settings for python builds
name: com-pylog-python
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
tox-envs: py3
tox-dir: mdclogpy
-
# promote package from test.pypi.org to pypi.org
- project:
<<: *pylog_python
- compare-type: REG_EXP
pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-pypi-release-jobs'
+ - "{project-name}-gerrit-pypi-release-jobs"
- gerrit-tox-verify
stream:
- master:
name: com-pylog-sonarqube
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=mdclogpy
- sonar.python.coverage.reportPaths=$TOX_DIR/coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=mdclogpy
+ sonar.python.coverage.reportPaths=$TOX_DIR/coverage.xml
jobs:
- gerrit-tox-sonarqube
---
- view:
- name: '00-Empty View'
+ name: "00-Empty View"
description: >
Empty job view. This is used as the default landing view to keep the
Jenkins UI responding better while a) under high load and b) when there
filter-executors: false
filter-queue: false
recurse: false
- regex: ''
+ regex: ""
- view:
name: CLM
- description: 'List of CLM jobs'
+ description: "List of CLM jobs"
view-type: list
filter-executors: false
filter-queue: false
- last-duration
- build-button
recurse: false
- regex: '.*-clm-.*'
+ regex: ".*-clm-.*"
build-days-to-keep: 30
# pattern for build files to archive
- archive-artifacts: ''
+ archive-artifacts: ""
# most jobs invoke docker
build-node: ubuntu1804-docker-4c-4g
container-staging-registry: nexus3.o-ran-sc.org:10004
# templates use the push registry key;
# counter-intuitively, the quotes here are REQUIRED
- container-push-registry: '{container-staging-registry}'
+ container-push-registry: "{container-staging-registry}"
# Don't define default java version here,
# it will not be used by lf-maven-jobs.
# Default maven version
mvn-version: mvn35
# Default maven goals
- mvn-goals: 'clean install'
+ mvn-goals: "clean install"
# Default JVM invocation options
- mvn-opts: ''
+ mvn-opts: ""
mvn-site-id: site
mvn-staging-id: staging
mvn-snapshot-id: snapshots
jobs:
- gerrit-info-yaml-verify
-- _it_dep_common: &it_dep_common
- # values apply to all it/dep projects
+- _it_dep_common: &it_dep_common # values apply to all it/dep projects
name: it-dep-docker-common
# git repo
project: it/dep
# maven settings file has docker credentials
mvn-settings: it-dep-settings
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# source of docker tag
container-tag-method: yaml-file
name: it-dep-helm
# jenkins job name prefix
build-timeout: 120
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# dockerfile is in subdir
docker-build-args: -f ci/Dockerfile
# any tag will do
- gerrit-docker-verify
stream:
- all:
- branch: '*'
+ branch: "*"
- project:
<<: *it_dep_common
name: it-dep-smo-install
# jenkins job name prefix
build-timeout: 120
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# dockerfile is in subdir
docker-build-args: -f ci/Dockerfile-smo-install
# any tag will do
- gerrit-docker-verify
stream:
- all:
- branch: '*'
+ branch: "*"
# build and publish packages to PackageCloud.io
- project:
<<: *it_dep_common
name: it-dep-package
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image is not pushed, use trivial tag
container-tag-method: latest
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# use host network for network resources
- docker-build-args: '--network=host -f ci/Dockerfile-package'
+ docker-build-args: "--network=host -f ci/Dockerfile-package"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ci/package-tag.yaml'
+ pattern: "ci/package-tag.yaml"
jobs:
- gerrit-docker-verify
- oran-gerrit-docker-ci-pc-merge
<<: *it_dep_common
name: it-dep-secret
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# root of docker build
docker-root: ci/tiller-secret-gen
# build only on relevant changes
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ pattern: "{docker-root}/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
<<: *it_dep_common
name: it-dep-init
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# root of docker build
docker-root: ric-common/Initcontainer/docker
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ pattern: "{docker-root}/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
-
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *it_dep_common
name: it-dep-packagecloud-release
jobs:
- - 'gerrit-packagecloud-release-verify'
- - 'gerrit-packagecloud-release-merge'
+ - "gerrit-packagecloud-release-verify"
+ - "gerrit-packagecloud-release-merge"
# maven settings file has docker credentials
mvn-settings: it-dev-settings
# build every Saturday
- cron: 'H H * * 6'
+ cron: "H H * * 6"
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# get tag from YAML
container-tag-method: yaml-file
# Jenkins job prefix
- project-name: 'it-dev-{name}'
+ project-name: "it-dev-{name}"
# Docker image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Directory with Dockerfile
- docker-root: 'bldr-imgs/{name}'
+ docker-root: "bldr-imgs/{name}"
# Limit build trigger to appropriate files;
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'bldr-imgs/{name}/.*'
+ pattern: "bldr-imgs/{name}/.*"
# Includes verify and merge jobs
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
# Only build master branch
stream:
- master:
<<: *it_dev_xo_common
name: it-dev-xapp-onboarder-docker
# image name
- docker-name: 'o-ran-sc/xapp-onboarder'
+ docker-name: "o-ran-sc/xapp-onboarder"
# source of docker tag
container-tag-method: yaml-file
# dockerfile is in subdir
container-tag-yaml-dir: ci/xapp_onboarder
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'xapp_onboarder/.*'
+ pattern: "xapp_onboarder/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *it_dev_xo_common
name: it-dev-xapp-onboarder-sonarqube
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=xapp_onboarder
- sonar.exclusions=setup.py,xapp_onboarder/tests/*.py
- sonar.python.coverage.reportPaths=xapp_onboarder/coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=xapp_onboarder
+ sonar.exclusions=setup.py,xapp_onboarder/tests/*.py
+ sonar.python.coverage.reportPaths=xapp_onboarder/coverage.xml
jobs:
- gerrit-tox-sonarqube
<<: *it_dev_xo_py_common
name: it-dev-xapp-onboarder-pypi
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: 'xapp_onboarder/.*'
+ - compare-type: REG_EXP
+ pattern: "xapp_onboarder/.*"
parallel: false
jobs:
- gerrit-pypi-verify
jobs:
- gerrit-info-yaml-verify
-- _it_otf_common: &it_otf_common
- # values apply to all it/otf docker projects
+- _it_otf_common: &it_otf_common # values apply to all it/otf docker projects
name: it_otf_common
# git repo
project: it/otf
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# source of docker tag
container-tag-method: yaml-file
# maven settings file has docker credentials
mvn-settings: it-otf-settings
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host -f ./docker/Dockerfile'
+ docker-build-args: "--network=host -f ./docker/Dockerfile"
# tag file is in subdir
- container-tag-yaml-dir: '{docker-root}/docker'
+ container-tag-yaml-dir: "{docker-root}/docker"
# build only on relevant changes
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ pattern: "{docker-root}/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# start in parent directory with shared files
docker-root: oran-ric-test-head
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# tag file is in subdir
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
- project:
<<: *it_otf_common
# start in parent directory with shared files
docker-root: otf-frontend
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# tag file is in subdir
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
- project:
<<: *it_otf_common
# start in parent directory with shared files
docker-root: otf-ping-test-head
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# tag file is in subdir
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
- project:
<<: *it_otf_common
# start in parent directory with shared files
docker-root: otf-robot-test-head
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# tag file is in subdir
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
- project:
<<: *it_otf_common
# start in parent directory with shared files
docker-root: otf-ssh-test-head
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# tag file is in subdir
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
- project:
<<: *it_otf_common
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _it_test_common: &it_test_common
- # values apply to all it/test docker projects
+- _it_test_common: &it_test_common # values apply to all it/test docker projects
name: it-test-docker-common
# git repo
project: it/test
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# maven settings file has docker credentials
mvn-settings: it-test-settings
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
<<: *it_test_common
name: it-test-nanobot
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# start in parent directory with shared files
docker-root: ric_robot_suite
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host -f docker/nanobot/Dockerfile'
+ docker-build-args: "--network=host -f docker/nanobot/Dockerfile"
# tag file is in subdir
container-tag-yaml-dir: ric_robot_suite/docker/nanobot
# build only on relevant changes
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ pattern: "{docker-root}/.*"
- project:
<<: *it_test_common
name: it-test-ric-robot
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# start in parent directory with shared files
docker-root: ric_robot_suite
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host -f docker/ric-robot/Dockerfile'
+ docker-build-args: "--network=host -f docker/ric-robot/Dockerfile"
# tag file is in subdir
container-tag-yaml-dir: ric_robot_suite/docker/ric-robot
# build only on relevant changes
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ pattern: "{docker-root}/.*"
- project:
<<: *it_test_common
name: it-test-ric-benchmarking
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# start in parent directory with shared files
- docker-root: ric_benchmarking/e2-interface/e2sim/e2sm_examples/kpm_e2sm
+ docker-root: ric_benchmarking/e2-interface/e2sim/e2sm_examples/kpm_e2sm
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host -f Dockerfile'
+ docker-build-args: "--network=host -f Dockerfile"
# tag file is in subdir
container-tag-yaml-dir: ric_benchmarking/e2-interface/e2sim/docker
# build only on relevant changes
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ric_benchmarking/e2-interface/.*'
+ pattern: "ric_benchmarking/e2-interface/.*"
- project:
<<: *it_test_common
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *a1policymanagementservice_jdk_common
name: nonrtric-plt-a1policymanagementservice
- project-name: '{name}'
- mvn-opts: '-Ddocker.skip=true'
+ project-name: "{name}"
+ mvn-opts: "-Ddocker.skip=true"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-stage
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *dmaapadapter_jdk_common
name: nonrtric-plt-dmaapadapter
- project-name: '{name}'
- mvn-opts: '-Ddocker.skip=true'
+ project-name: "{name}"
+ mvn-opts: "-Ddocker.skip=true"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-stage
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *dmaapadapter_jdk_common
name: nonrtric-plt-dmaapadapter-sonar
project-name: nonrtric-plt-dmaapadapter
# template goal install builds docker image unnecessarily
- mvn-params: '-Ddocker.skip=true'
+ mvn-params: "-Ddocker.skip=true"
sonarcloud: true
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: 'nonrtric-plt-dmaapadapter'
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "nonrtric-plt-dmaapadapter"
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
jobs:
- gerrit-maven-sonar
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *dmaapmediatorproducer_common
name: nonrtric-plt-dmaapmediatorproducer
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-plt-dmaapmediatorproducer'
+ docker-name: "o-ran-sc/nonrtric-plt-dmaapmediatorproducer"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: '.'
+ docker-root: "."
# Directory where go test should be run
- go-root: '.'
+ go-root: "."
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *helmmanager_jdk_common
name: nonrtric-plt-helmmanager
- project-name: '{name}'
- mvn-opts: '-Ddocker.skip=true'
+ project-name: "{name}"
+ mvn-opts: "-Ddocker.skip=true"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-stage
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _informationcoordinatorservice_jdk_common: &informationcoordinatorservice_jdk_common
+- _informationcoordinatorservice_jdk_common:
+ &informationcoordinatorservice_jdk_common
name: informationcoordinatorservice-jdk-common
# git repo
project: nonrtric/plt/informationcoordinatorservice
- project:
<<: *informationcoordinatorservice_jdk_common
name: nonrtric-plt-informationcoordinatorservice
- project-name: '{name}'
- mvn-opts: '-Ddocker.skip=true'
+ project-name: "{name}"
+ mvn-opts: "-Ddocker.skip=true"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-stage
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *informationcoordinatorservice_jdk_common
name: nonrtric-plt-informationcoordinatorservice-sonar
project-name: nonrtric-plt-informationcoordinatorservice
# template goal install builds docker image unnecessarily
- mvn-params: '-Ddocker.skip=true'
+ mvn-params: "-Ddocker.skip=true"
sonarcloud: true
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: 'nonrtric-plt-informationcoordinatorservice'
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "nonrtric-plt-informationcoordinatorservice"
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
jobs:
- gerrit-maven-sonar
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
# Jobs for nonrtric-plt-ranpm-datafilecollector
- project:
name: nonrtric-plt-ranpm-datafilecollector-gerrit-maven-docker
#job name prefix
project-name: nonrtric-plt-ranpm-datafilecollector
- mvn-params: '-f datafilecollector -Dbuild.number=${{BUILD_NUMBER}}'
+ mvn-params: "-f datafilecollector -Dbuild.number=${{BUILD_NUMBER}}"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'datafilecollector/.*'
+ pattern: "datafilecollector/.*"
jobs:
- gerrit-maven-clm
- gerrit-maven-verify-dependencies
name: nonrtric-plt-ranpm-pmproducer-gerrit-maven-docker
#job name prefix
project-name: nonrtric-plt-ranpm-pmproducer
- mvn-params: '-f pmproducer -Dbuild.number=${{BUILD_NUMBER}}'
+ mvn-params: "-f pmproducer -Dbuild.number=${{BUILD_NUMBER}}"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'pmproducer/.*'
+ pattern: "pmproducer/.*"
jobs:
- gerrit-maven-clm
- gerrit-maven-verify-dependencies
name: nonrtric-plt-ranpm-influxlogger-gerrit-maven-docker
#job name prefix
project-name: nonrtric-plt-ranpm-influxlogger
- mvn-params: '-f influxlogger -Dbuild.number=${{BUILD_NUMBER}}'
+ mvn-params: "-f influxlogger -Dbuild.number=${{BUILD_NUMBER}}"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'influxlogger/.*'
+ pattern: "influxlogger/.*"
jobs:
- gerrit-maven-clm
- gerrit-maven-verify-dependencies
- project:
<<: *rappcatalogue_jdk_common
name: nonrtric-plt-rappcatalogue
- project-name: '{name}'
- mvn-opts: '-Ddocker.skip=true'
+ project-name: "{name}"
+ mvn-opts: "-Ddocker.skip=true"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-stage
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *rappcatalogue_jdk_common
name: nonrtric-plt-rappcatalogue-sonar
project-name: nonrtric-plt-rappcatalogue
# template goal install builds docker image unnecessarily
- mvn-params: '-Ddocker.skip=true'
+ mvn-params: "-Ddocker.skip=true"
sonarcloud: true
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: 'nonrtric_plt_rappcatalogue'
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "nonrtric_plt_rappcatalogue"
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
jobs:
- gerrit-maven-sonar
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'catalogue-enhanced/.*'
+ pattern: "catalogue-enhanced/.*"
stream:
- master:
branch: master
name: nonrtric-plt-rappcatalogue-enhanced
project-name: nonrtric-plt-rappcatalogue-enhanced
# image name
- docker-name: 'o-ran-sc/nonrtric-plt-rappcatalogue-enhanced'
+ docker-name: "o-ran-sc/nonrtric-plt-rappcatalogue-enhanced"
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'catalogue-enhanced'
+ docker-root: "catalogue-enhanced"
build-node: ubuntu1804-docker-4c-4g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'catalogue-enhanced/.*'
+ pattern: "catalogue-enhanced/.*"
stream:
- master:
branch: master
- g-release:
branch: g-release
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
- project:
<<: *rappcatalogue_jdk_common
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'catalogue-enhanced/.*'
+ pattern: "catalogue-enhanced/.*"
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=catalogue-enhanced/
- sonar.python.coverage.reportPaths=catalogue-enhanced/coverage.xml
- sonar.inclusions=catalogue-enhanced/src/**.py
- sonar.exclusions=catalogue-enhanced/tests/**.py
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=catalogue-enhanced/
+ sonar.python.coverage.reportPaths=catalogue-enhanced/coverage.xml
+ sonar.inclusions=catalogue-enhanced/src/**.py
+ sonar.exclusions=catalogue-enhanced/tests/**.py
jobs:
- gerrit-tox-sonarqube
- project:
<<: *sdnca1controller_jdk_common
name: nonrtric-plt-sdnca1controller
- project-name: '{name}'
- mvn-opts: '-Ddocker.skip=true'
+ project-name: "{name}"
+ mvn-opts: "-Ddocker.skip=true"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-stage
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
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
# 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:
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
- project:
<<: *nonrtric_rapp_healthcheck_common
name: nonrtric-rapp-healthcheck-verify
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-rapp-healthcheck'
+ docker-name: "o-ran-sc/nonrtric-rapp-healthcheck"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *orufhrecovery_common
name: nonrtric-rapp-orufhrecovery
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-rapp-orufhrecovery'
+ docker-name: "o-ran-sc/nonrtric-rapp-orufhrecovery"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'scriptversion/app'
+ docker-root: "scriptversion/app"
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'scriptversion/app/.*'
+ pattern: "scriptversion/app/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *orufhrecovery_common
name: nonrtric-rapp-orufhrecovery-consumer
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-rapp-orufhrecovery-consumer'
+ docker-name: "o-ran-sc/nonrtric-rapp-orufhrecovery-consumer"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'goversion'
+ docker-root: "goversion"
# Directory where go test should be run
- go-root: 'goversion'
+ go-root: "goversion"
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'goversion/.*'
+ pattern: "goversion/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *orufhrecovery_common
name: nonrtric-rapp-orufhrecovery-consumer-sonar
- project-name: 'nonrtric-rapp-orufhrecovery-consumer'
+ project-name: "nonrtric-rapp-orufhrecovery-consumer"
# prescan script requires ubuntu
# golang is only on docker-enabled nodes
build-node: ubuntu1804-docker-4c-4g
- sonar-prescan-script: !include-raw-escape: prescan-oruclosedloopconsumer-ubuntu.sh
+ sonar-prescan-script: !include-raw-escape:
+ - prescan-oruclosedloopconsumer-ubuntu.sh
sonar-project-file: ""
java-version: openjdk11
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey=nonrtric-rapp-orufhrecovery-consumer
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=goversion/coverage.txt
- # Inclusions
- sonar.inclusions=goversion/internal/**/**.go,goversion/**.go
- # Exclusions
- sonar.exclusions=goversion/mocks/**.go,goversion/internal/**/**_test.go,goversion/**_test.go,goversion/simulator/**.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey=nonrtric-rapp-orufhrecovery-consumer
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=goversion/coverage.txt
+ # Inclusions
+ sonar.inclusions=goversion/internal/**/**.go,goversion/**.go
+ # Exclusions
+ sonar.exclusions=goversion/mocks/**.go,goversion/internal/**/**_test.go,goversion/**_test.go,goversion/simulator/**.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *ransliceassurance_common
name: nonrtric-rapp-ransliceassurance
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-rapp-ransliceassurance'
+ docker-name: "o-ran-sc/nonrtric-rapp-ransliceassurance"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'smoversion'
+ docker-root: "smoversion"
# Directory where go test should be run
- go-root: 'smoversion'
+ go-root: "smoversion"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *ransliceassurance_common
name: nonrtric-rapp-ransliceassurance-icsversion
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-rapp-ransliceassurance-icsversion'
+ docker-name: "o-ran-sc/nonrtric-rapp-ransliceassurance-icsversion"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'icsversion'
+ docker-root: "icsversion"
# Directory where go test should be run
- go-root: 'icsversion'
+ go-root: "icsversion"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
# Unit tests
sonar.go.coverage.reportPaths=smoversion/coverage.txt, icsversion/coverage.txt
# Inclusions
-sonar.inclusions=smoversion/internal/**/**.go, icsversion/internal/**/**.go
+sonar.inclusions=smoversion/internal/**/**.go, icsversion/internal/**/**.go
# Exclusions
sonar.exclusions=smoversion/main.go,smoversion/stub/**.go,smoversion/internal/**/**_test.go, smoversion/main.go, icsversion/stub/**.go, icsversion/internal/**/**_test.go
- project:
<<: *nonrtric_jdk_common
name: nonrtric-test-kafka-procon
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'kafka-procon'
+ docker-name: "kafka-procon"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'test/kafka-procon'
- # use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-root: "test/kafka-procon"
# Directory where go test should be run
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'test/kafka-procon/.*'
+ pattern: "test/kafka-procon/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *nonrtric_jdk_common
name: nonrtric-test-http-https-proxy
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'http-https-proxy'
+ docker-name: "http-https-proxy"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'test/http-https-proxy'
- # use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-root: "test/http-https-proxy"
# Directory where go test should be run
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'test/http-https-proxy/.*'
+ pattern: "test/http-https-proxy/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *nonrtric_jdk_common
name: nonrtric-test-cr
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'cr'
+ docker-name: "cr"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'test/cr'
- # use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-root: "test/cr"
# Directory where go test should be run
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'test/cr/.*'
+ pattern: "test/cr/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *nonrtric_jdk_common
name: nonrtric-test-prodstub
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'prodstub'
+ docker-name: "prodstub"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'test/prodstub'
- # use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-root: "test/prodstub"
# Directory where go test should be run
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'test/prodstub/.*'
+ pattern: "test/prodstub/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *nonrtric_jdk_common
name: nonrtric-test-mrstub
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'mrstub'
+ docker-name: "mrstub"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'test/mrstub'
- # use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-root: "test/mrstub"
# Directory where go test should be run
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'test/mrstub/.*'
+ pattern: "test/mrstub/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
- project:
<<: *nonrtric_jdk_common
name: nonrtric-plt-auth-token-fetch
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nonrtric-plt-auth-token-fetch'
+ docker-name: "o-ran-sc/nonrtric-plt-auth-token-fetch"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'auth-token-fetch'
- # use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-root: "auth-token-fetch"
# Directory where go test should be run
- go-root: 'auth-token-fetch'
+ go-root: "auth-token-fetch"
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'auth-token-fetch/.*'
+ pattern: "auth-token-fetch/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _o_du_l2_common: &o_du_l2_common
- # values apply to all o-du/l2 docker projects
+- _o_du_l2_common: &o_du_l2_common # values apply to all o-du/l2 docker projects
name: o-du-l2-common
# git repo
project: o-du/l2
<<: *o_du_l2_common
name: o-du-l2
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
- docker-build-args: '--network=host'
+ docker-name: "o-ran-sc/{name}"
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
<<: *o_du_l2_common
name: o-du-l2-cu-stub
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
- docker-build-args: '--network=host -f Dockerfile-cu-stub'
+ docker-name: "o-ran-sc/{name}"
+ docker-build-args: "--network=host -f Dockerfile-cu-stub"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *o_du_l2_common
jobs:
- gerrit-info-yaml-verify
-- _o_du_phy_common: &o_du_phy_common
- # values apply to all o-du/phy docker projects
+- _o_du_phy_common:
+ &o_du_phy_common # values apply to all o-du/phy docker projects
name: o-du-phy-docker-common
# git repo
project: o-du/phy
<<: *o_du_phy_common
name: o-du-phy-package
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image is not pushed, use trivial tag
container-tag-method: latest
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# use host network for network resources
- docker-build-args: '--network=host -f Dockerfile'
+ docker-build-args: "--network=host -f Dockerfile"
jobs:
- gerrit-docker-verify
# - oran-gerrit-docker-ci-pc-merge
- gerrit-info-yaml-verify
- _oam-nf-oam-adopter: &oam-nf-oam-adopter
- name: oam-nf-oam-adopter
- project: oam/nf-oam-adopter
- project-name: oam-nf-oam-adopter
- java-version: openjdk11
- mvn-pom: 'ves-nf-oam-adopter/pom.xml'
- mvn-params: '-f ves-nf-oam-adopter/pom.xml -P docker -Dbuild.number=${{BUILD_NUMBER}}'
- mvn-version: "mvn36"
- mvn-settings: 'oam-nf-oam-adopter-settings'
- build-node: centos7-docker-2c-8g
+ name: oam-nf-oam-adopter
+ project: oam/nf-oam-adopter
+ project-name: oam-nf-oam-adopter
+ java-version: openjdk11
+ mvn-pom: "ves-nf-oam-adopter/pom.xml"
+ mvn-params: "-f ves-nf-oam-adopter/pom.xml -P docker -Dbuild.number=${{BUILD_NUMBER}}"
+ mvn-version: "mvn36"
+ mvn-settings: "oam-nf-oam-adopter-settings"
+ build-node: centos7-docker-2c-8g
- project:
<<: *oam-nf-oam-adopter
name: oam-nf-oam-adopter-clm
jobs:
- gerrit-maven-clm
- nexus-iq-namespace: 'oran-'
- branch: 'master'
+ nexus-iq-namespace: "oran-"
+ branch: "master"
- project:
<<: *oam-nf-oam-adopter
maven-versions-plugin: true
container-public-registry: nexus3.o-ran-sc.org:10001
container-staging-registry: nexus3.o-ran-sc.org:10004
- - '{project-name}-gerrit-release-jobs':
+ - "{project-name}-gerrit-release-jobs":
build-node: centos7-docker-2c-8g
stream:
- - 'master':
- branch: 'master'
- files: '**'
- archive-artifacts: ''
+ - "master":
+ branch: "master"
+ files: "**"
+ archive-artifacts: ""
- project:
<<: *oam-nf-oam-adopter
jobs:
- gerrit-maven-sonar
sonarcloud: true
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
- sonar.build.sourceEncoding: 'UTF-8'
- cron: '@daily'
- branch: 'master'
- mvn-goals: 'clean install'
- mvn-opts: '-Xmx1024m -XX:MaxPermSize=256m'
- mvn-params: '-f ves-nf-oam-adopter/pom.xml -Ddocker.skip=true'
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
+ sonar.build.sourceEncoding: "UTF-8"
+ cron: "@daily"
+ branch: "master"
+ mvn-goals: "clean install"
+ mvn-opts: "-Xmx1024m -XX:MaxPermSize=256m"
+ mvn-params: "-f ves-nf-oam-adopter/pom.xml -Ddocker.skip=true"
jobs:
- gerrit-info-yaml-verify
-- _tr069-adapter-jdk08: &tr069-adapter-jdk08
- # values apply to all projects here
+- _tr069-adapter-jdk08: &tr069-adapter-jdk08 # values apply to all projects here
name: tr069-adapter-jdk08
# git repo
project: oam/tr069-adapter
# template goal install builds docker image unnecessarily
mvn-params: -Ddocker.skip=true
sonarcloud: true
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
jobs:
- gerrit-maven-sonar
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
branch: master
build-days-to-keep: 30
build-timeout: 15
- cron: ''
+ cron: ""
concurrent: false
disable-job: false
gerrit-skip-vote: false
- git-url: '$GIT_URL/$GERRIT_PROJECT'
+ git-url: "$GIT_URL/$GERRIT_PROJECT"
mvn-global-settings: global-settings
stream: master
submodule-disable: false
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '.*'
+ pattern: ".*"
#####################
# Job Configuration #
#####################
project-type: freestyle
- node: '{build-node}'
- disabled: '{disable-job}'
+ node: "{build-node}"
+ disabled: "{disable-job}"
properties:
- lf-infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
+ build-days-to-keep: "{build-days-to-keep}"
parameters:
- lf-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- stream: '{stream}'
+ project: "{project}"
+ branch: "{branch}"
+ stream: "{stream}"
- string:
name: ARCHIVE_ARTIFACTS
- default: '{archive-artifacts}'
+ default: "{archive-artifacts}"
description: Artifacts to archive to the logs server.
wrappers:
- lf-infra-wrappers:
- build-timeout: '{build-timeout}'
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
+ build-timeout: "{build-timeout}"
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
builders:
- lf-infra-pre-build
settings-file: "{mvn-settings}"
- lf-infra-create-netrc:
server-id: "{mvn-site-id}"
- - shell: '{script}'
+ - shell: "{script}"
- lf-provide-maven-settings-cleanup
publishers:
# branch: git branch pattern, defaults to master
# stream: friendly stream name (often same as branch), defaults to master
- job-template:
- name: '{project-name}-shell-verify-{stream}'
+ name: "{project-name}-shell-verify-{stream}"
id: oran-shell-verify
<<: *oran_shell_common
scm:
- lf-infra-gerrit-scm:
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
- git-url: '{git-url}'
- refspec: '$GERRIT_REFSPEC'
- branch: '$GERRIT_BRANCH'
- submodule-recursive: '{submodule-recursive}'
- submodule-timeout: '{submodule-timeout}'
- submodule-disable: '{submodule-disable}'
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+ git-url: "{git-url}"
+ refspec: "$GERRIT_REFSPEC"
+ branch: "$GERRIT_BRANCH"
+ submodule-recursive: "{submodule-recursive}"
+ submodule-timeout: "{submodule-timeout}"
+ submodule-disable: "{submodule-disable}"
choosing-strategy: gerrit
triggers:
- - timed: '{obj:cron}'
+ - timed: "{obj:cron}"
- gerrit:
- server-name: '{gerrit-server-name}'
- trigger-on: '{obj:gerrit_verify_triggers}'
+ server-name: "{gerrit-server-name}"
+ trigger-on: "{obj:gerrit_verify_triggers}"
projects:
- project-compare-type: ANT
- project-pattern: '{project}'
+ project-pattern: "{project}"
branches:
- branch-compare-type: ANT
- branch-pattern: '**/{branch}'
- file-paths: '{obj:gerrit_trigger_file_paths}'
+ branch-pattern: "**/{branch}"
+ file-paths: "{obj:gerrit_trigger_file_paths}"
skip-vote:
- successful: '{gerrit-skip-vote}'
- failed: '{gerrit-skip-vote}'
- unstable: '{gerrit-skip-vote}'
- notbuilt: '{gerrit-skip-vote}'
+ successful: "{gerrit-skip-vote}"
+ failed: "{gerrit-skip-vote}"
+ unstable: "{gerrit-skip-vote}"
+ notbuilt: "{gerrit-skip-vote}"
# Build from gerrit by shell script.
# Triggered automatically by merge; can be run on any branch.
# branch: git branch pattern, defaults to master
# stream: friendly stream name (often same as branch), defaults to master
- job-template:
- name: '{project-name}-shell-merge-{stream}'
+ name: "{project-name}-shell-merge-{stream}"
id: oran-shell-merge
<<: *oran_shell_common
scm:
- lf-infra-gerrit-scm:
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
- git-url: '{git-url}'
- refspec: '$GERRIT_REFSPEC'
- branch: '$GERRIT_BRANCH'
- submodule-recursive: '{submodule-recursive}'
- submodule-timeout: '{submodule-timeout}'
- submodule-disable: '{submodule-disable}'
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+ git-url: "{git-url}"
+ refspec: "$GERRIT_REFSPEC"
+ branch: "$GERRIT_BRANCH"
+ submodule-recursive: "{submodule-recursive}"
+ submodule-timeout: "{submodule-timeout}"
+ submodule-disable: "{submodule-disable}"
choosing-strategy: default
triggers:
- - timed: '{obj:cron}'
+ - timed: "{obj:cron}"
- gerrit:
- server-name: '{gerrit-server-name}'
- trigger-on: '{obj:gerrit_merge_triggers}'
+ server-name: "{gerrit-server-name}"
+ trigger-on: "{obj:gerrit_merge_triggers}"
projects:
- project-compare-type: ANT
- project-pattern: '{project}'
+ project-pattern: "{project}"
branches:
- branch-compare-type: ANT
- branch-pattern: '**/{branch}'
- file-paths: '{obj:gerrit_trigger_file_paths}'
+ branch-pattern: "**/{branch}"
+ file-paths: "{obj:gerrit_trigger_file_paths}"
# Build and publish artifact from gerrit by shell script.
# Triggered automatically by merging specific release file;
# stream: friendly stream name (often same as branch), defaults to master
# gerrit_release_file_paths: Pathname pattern of the release file to trigger this job
- job-template:
- name: '{project-name}-shell-release-{stream}'
+ name: "{project-name}-shell-release-{stream}"
id: oran-shell-release
<<: *oran_shell_common
scm:
- lf-infra-gerrit-scm:
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
- git-url: '{git-url}'
- refspec: '$GERRIT_REFSPEC'
- branch: '$GERRIT_BRANCH'
- submodule-recursive: '{submodule-recursive}'
- submodule-timeout: '{submodule-timeout}'
- submodule-disable: '{submodule-disable}'
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+ git-url: "{git-url}"
+ refspec: "$GERRIT_REFSPEC"
+ branch: "$GERRIT_BRANCH"
+ submodule-recursive: "{submodule-recursive}"
+ submodule-timeout: "{submodule-timeout}"
+ submodule-disable: "{submodule-disable}"
choosing-strategy: default
triggers:
- gerrit:
- server-name: '{gerrit-server-name}'
+ server-name: "{gerrit-server-name}"
trigger-on:
- change-merged-event
projects:
- project-compare-type: ANT
- project-pattern: '{project}'
+ project-pattern: "{project}"
branches:
- branch-compare-type: ANT
- branch-pattern: '**/{branch}'
- file-paths: '{obj:gerrit_release_file_paths}'
+ branch-pattern: "**/{branch}"
+ file-paths: "{obj:gerrit_release_file_paths}"
jobs:
- gerrit-info-yaml-verify
-- _aiml_dashboard_docker_common: &aiml_dashboard_docker_common
- # values apply to all training manager projects
+- _aiml_dashboard_docker_common:
+ &aiml_dashboard_docker_common # values apply to all training manager projects
name: portal-aiml-dashboard-docker-common
# git repo
project: portal/aiml-dashboard
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *aiml_dashboard_docker_common
name: portal-aiml-dashboard-docker
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
- docker-root: '.'
+ docker-root: "."
# source of docker tag
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
container-tag-method: yaml-file
build-node: ubuntu1804-docker-4c-4g
jobs:
- project:
<<: *aiml_dashboard_docker_common
name: portal-aiml-notebook-docker
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
- docker-root: 'kf-pipelines'
- container-tag-yaml-dir: 'kf-pipelines'
+ docker-root: "kf-pipelines"
+ container-tag-yaml-dir: "kf-pipelines"
# source of docker tag
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
container-tag-method: yaml-file
build-node: ubuntu1804-docker-4c-4g
jobs:
jobs:
- gerrit-info-yaml-verify
-- _portal_nonrtric_controlpanel_common: &portal_nonrtric_controlpanel_common
- # values apply to all projects here
+- _portal_nonrtric_controlpanel_common:
+ &portal_nonrtric_controlpanel_common # values apply to all projects here
name: portal-nonrtric-controlpanel-common
# git repo
project: portal/nonrtric-controlpanel
<<: *portal_nonrtric_controlpanel_common
name: nonrtric-controlpanel-frontend
# image name
- docker-name: 'o-ran-sc/nonrtric-controlpanel'
+ docker-name: "o-ran-sc/nonrtric-controlpanel"
# get tag from YAML
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# Directory with Dockerfile
- docker-root: 'webapp-frontend'
+ docker-root: "webapp-frontend"
# Limit build trigger to appropriate files
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'webapp-frontend/.*'
+ pattern: "webapp-frontend/.*"
- compare-type: REG_EXP
- pattern: 'docker-compose/.*'
+ pattern: "docker-compose/.*"
build-node: ubuntu1804-docker-4c-4g
# Includes verify and merge jobs
jobs:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *portal_nonrtric_controlpanel_common
name: portal-nonrtric-controlpanel-gateway-sonar
# template goal install builds docker image unnecessarily
- mvn-params: '-Ddocker.skip=true -f nonrtric-gateway'
+ mvn-params: "-Ddocker.skip=true -f nonrtric-gateway"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'nonrtric-gateway/.*'
+ pattern: "nonrtric-gateway/.*"
sonarcloud: true
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: '{project-name}-gateway'
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "{project-name}-gateway"
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
jobs:
- gerrit-maven-sonar
name: portal-nonrtric-controlpanel-frontend-sonar
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'webapp-frontend/.*'
+ pattern: "webapp-frontend/.*"
build-node: ubuntu1804-docker-4c-4g
java-version: openjdk11
sonarcloud: true
- project:
<<: *portal_nonrtric_controlpanel_common
name: portal-nonrtric-controlpanel-gateway
- project-name: '{name}'
- mvn-params: '-f nonrtric-gateway'
+ project-name: "{name}"
+ mvn-params: "-f nonrtric-gateway"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'nonrtric-gateway/.*'
+ pattern: "nonrtric-gateway/.*"
build-node: ubuntu1804-builder-4c-4g
jobs:
- gerrit-maven-verify
- project:
<<: *portal_nonrtric_controlpanel_common
name: portal-nonrtric-controlpanel-gateway-docker
- project-name: '{name}'
- mvn-params: '-P docker -f nonrtric-gateway'
+ project-name: "{name}"
+ mvn-params: "-P docker -f nonrtric-gateway"
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'nonrtric-gateway/.*'
+ pattern: "nonrtric-gateway/.*"
- compare-type: REG_EXP
- pattern: 'docker-compose/.*'
+ pattern: "docker-compose/.*"
build-node: ubuntu1804-docker-4c-4g
jobs:
- gerrit-maven-docker-verify
jobs:
- gerrit-info-yaml-verify
-- _pti_o2_common: &pti_o2_common
- # values apply to all pti/o2 projects
+- _pti_o2_common: &pti_o2_common # values apply to all pti/o2 projects
name: pti-o2-common
# git repo
project: pti/o2
# maven settings file has credentials
mvn-settings: pti-o2-settings
-- _pti_o2_python: &pti_o2_python
- # settings for python builds
+- _pti_o2_python: &pti_o2_python # settings for python builds
name: pti-o2-python
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
name: pti-o2-imsdms-verify
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- gerrit-tox-verify
stream:
<<: *pti_o2_common
# values apply to all pti/o2 docker projects
# maven settings file has docker credentials
- docker-name: 'o-ran-sc/pti-o2imsdms'
- docker-build-args: '--network=host -f Dockerfile'
+ docker-name: "o-ran-sc/pti-o2imsdms"
+ docker-build-args: "--network=host -f Dockerfile"
# source of docker tag
container-tag-method: yaml-file
# docker-root: src
name: pti-o2-imsdms
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
- compare-type: REG_EXP
pattern: 'releases\/.*\.yaml'
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *pti_o2_docker_common
diffutils diffstat cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \
perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-Digest-SHA \
python3-pip xz which SDL-devel xterm"
-echo "INFO: installing epel-release and packages $pkgs"
+echo "INFO: installing epel-release and packages ${pkgs}"
sudo yum install -y epel-release \
&& sudo yum makecache \
- && sudo yum install -y $pkgs
+ && sudo yum install -y "${pkgs}"
git config --global user.name "oran inf builder"
git config --global user.email "oran.inf@windriver.com"
# use a centos with big memory; docker not required
build-node: centos7-docker-2c-8g
# use a non-recursive pattern
- archive-artifacts: '*.log'
+ archive-artifacts: "*.log"
- project:
<<: *pti_rtp_common
# runs about 50~80 minutes
build-timeout: 120
script: !include-raw-escape:
- - install-yocto-prereq-centos.sh
- - verify-inf.sh
+ - install-yocto-prereq-centos.sh
+ - verify-inf.sh
jobs:
- oran-shell-verify
# runs about 50~80 minutes
build-timeout: 120
script: !include-raw-escape:
- - install-yocto-prereq-centos.sh
- - verify-inf.sh
+ - install-yocto-prereq-centos.sh
+ - verify-inf.sh
jobs:
- oran-shell-merge
# runs about 48 hours
build-timeout: 2880
script: !include-raw-escape:
- - install-yocto-prereq-centos.sh
- - build-inf.sh
- - upload-inf.sh
+ - install-yocto-prereq-centos.sh
+ - build-inf.sh
+ - upload-inf.sh
jobs:
- oran-shell-release
stream:
set -eu -o pipefail
if [[ -f ~/lf-env.sh ]]; then
- source ~/lf-env.sh
+ # shellcheck source=/dev/null
+ . ~/lf-env.sh
lf-activate-venv --python python3 lftools
else
echo "INFO: creating virtual environment"
virtualenv -p python3 /tmp/venv
PATH=/tmp/venv/bin:$PATH
-
+
pip_pkgs="pip setuptools lftools"
for pkg in $pip_pkgs; do
cmd_pip="python -m pip install --upgrade $pkg"
build-node: centos7-builder-1c-1g
branch: master
jobs:
- - gerrit-info-yaml-verify
\ No newline at end of file
+ - gerrit-info-yaml-verify
views:
- project-view
-- _ad_common: &ad_common
- # required even though overridden everywhere
+- _ad_common: &ad_common # required even though overridden everywhere
name: ad-common
# git repo
project: ric-app/ad
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: ubuntu1804-docker-4c-4g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
-- _ad_python: &ad_python
- # settings for python builds
+- _ad_python: &ad_python # settings for python builds
name: ad-python
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
name: ric-app-ad-py-verify
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- gerrit-tox-verify
stream:
name: ric-app-ad-sonarqube
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=ad
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=ad
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
views:
- project-view
-- _bouncer_common: &bouncer_common
- # values apply to all projects
+- _bouncer_common: &bouncer_common # values apply to all projects
name: bouncer-common
# git repo
project: ric-app/bouncer
# also used as image name
name: ric-app-bouncer
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# docker root
docker-root: Bouncer
# source type of image tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# tag file is in subdir
container-tag-yaml-dir: Bouncer
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
- - compare-type: REG_EXP
- pattern: 'bouncer/.*'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: "bouncer/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
# push nexus image from staging to release
- project:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _hw-go_common: &hw-go_common
- # values apply to all projects
+- _hw-go_common: &hw-go_common # values apply to all projects
name: hw-go-common
# git repo
project: ric-app/hw-go
<<: *hw-go_common
name: ric-app-hw-go
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _hw-python_common: &hw-python_common
- # values apply to all projects
+- _hw-python_common: &hw-python_common # values apply to all projects
name: hw-python-common
# git repo
project: ric-app/hw-python
<<: *hw-python_common
name: ric-app-hw-python
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
<<: *hw-rust_common
name: ric-app-hw-rust
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _hw_common: &hw_common
- # values apply to all projects
+- _hw_common: &hw_common # values apply to all projects
name: hw-common
# git repo
project: ric-app/hw
# also used as image name
name: ric-app-hw
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source type of image tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
# push nexus image from staging to release
- project:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _kpimon-go_common: &kpimon-go_common
- # values apply to all projects
+- _kpimon-go_common: &kpimon-go_common # values apply to all projects
name: kpimon-go-common
# git repo
project: ric-app/kpimon-go
# also used as image name
name: ric-app-kpimon-go
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source type of image tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
# push nexus image from staging to release
- project:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _lp_common: &lp_common
- # required even though overridden everywhere
+- _lp_common: &lp_common # required even though overridden everywhere
name: lp-common
# git repo
project: ric-app/lp
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: ubuntu1804-docker-4c-4g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
-- _lp_python: &lp_python
- # settings for python builds
+- _lp_python: &lp_python # settings for python builds
name: lp-python
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
name: ric-app-lp-py-verify
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- gerrit-tox-verify
stream:
name: ric-app-lp-sonarqube
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=lp
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=lp
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
name: ric-app-mc-project-view
project-name: ric-app-mc
views:
- - project-view
+ - project-view
- project:
name: ric-app-mc-info
project-name: ric-app-mc
build-node: centos7-builder-1c-1g
jobs:
- - gerrit-info-yaml-verify
+ - gerrit-info-yaml-verify
-- _mc_common: &mc_common
- # values apply to all MC projects
+- _mc_common: &mc_common # values apply to all MC projects
name: mc-common
# git repo
project: ric-app/mc
<<: *mc_common
name: ric-app-mc
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
docker-root: mc-core
# source of docker tag
container-tag-method: yaml-file
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ - compare-type: REG_EXP
+ pattern: "{docker-root}/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
- project:
<<: *mc_common
name: ric-app-mc-listener
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
docker-root: sidecars/listener
# source of docker tag
container-tag-method: yaml-file
- container-tag-yaml-dir: '{docker-root}'
+ container-tag-yaml-dir: "{docker-root}"
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ - compare-type: REG_EXP
+ pattern: "{docker-root}/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
- project:
<<: *mc_common
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
# drive unit tests from root CMake file to gen/analyse coverage data
- project:
make-opts: test ARGS=-V
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=sidecars/listener/src,mc-core/mc/mcnib
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.gcov.reportsPath=/tmp/gcov_rpts
- sonar.cfamily.threads=2
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=sidecars/listener/src,mc-core/mc/mcnib
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.gcov.reportsPath=/tmp/gcov_rpts
+ sonar.cfamily.threads=2
jobs:
- gerrit-cmake-sonarqube
+#!/bin/sh
#==================================================================================
# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved.
#
docker --version
echo "Unit Test"
-cd $WORKSPACE
+cd "${WORKSPACE}" || return
docker build --network=host -t tmpimg --target=qpaimlfwbuild .
CONTAINER=$(docker create tmpimg)
-docker cp $CONTAINER:/tmp/qp_cover.out cover.out
-docker rm $CONTAINER
+docker cp "${CONTAINER}":/tmp/qp_cover.out cover.out
+docker rm "${CONTAINER}"
echo "--> prescan-ric-app-qp-aimlfw.sh ends"
jobs:
- gerrit-info-yaml-verify
-- _qp_aimlfw_docker_common: &qp_aimlfw_docker_common
- # values apply to all training manager projects
+- _qp_aimlfw_docker_common:
+ &qp_aimlfw_docker_common # values apply to all training manager projects
name: ric-app-qp-aimlfw-docker-common
# git repo
project: ric-app/qp-aimlfw
- project:
<<: *qp_aimlfw_docker_common
name: ric-app-qp-aimlfw
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
- docker-root: '.'
+ docker-root: "."
# source of docker tag
# dockerfile is in subdir of docker root
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
container-tag-method: yaml-file
jobs:
- "{project-name}-gerrit-docker-jobs"
sonar-prescan-script: !include-raw-escape: prescan-ric-app-qp-aimlfw-ubuntu.sh
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=.
- sonar.language=go
- sonar.go.coverage.reportPaths=**/cover.out
- sonar.inclusions=**/*.go
- sonar.exclusions=**/*_test.go
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=.
+ sonar.language=go
+ sonar.go.coverage.reportPaths=**/cover.out
+ sonar.inclusions=**/*.go
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
name: ric-app-qp-aimlfw-release
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _qp_common: &qp_common
- # required even though overridden everywhere
+- _qp_common: &qp_common # required even though overridden everywhere
name: qp-common
# git repo
project: ric-app/qp
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: ubuntu1804-docker-4c-4g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
-- _qp_python: &qp_python
- # settings for python builds
+- _qp_python: &qp_python # settings for python builds
name: qp-python
# the install script assumes an ubuntu image
build-node: ubuntu1804-builder-2c-2g
name: ric-app-qp-py-verify
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- gerrit-tox-verify
stream:
name: ric-app-qp-sonarqube
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=qp
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=qp
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
views:
- project-view
-- _rc_common: &rc_common
- # values apply to all projects
+- _rc_common: &rc_common # values apply to all projects
name: rc-common
# git repo
project: ric-app/rc
# also used as image name
name: ric-app-rc
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source type of image tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
# push nexus image from staging to release
- project:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
views:
- project-view
-- _ts_common: &ts_common
- # values apply to all projects
+- _ts_common: &ts_common # values apply to all projects
name: ts-common
# git repo
project: ric-app/ts
# also used as image name
name: ric-app-ts
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source type of image tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
# push nexus image from staging to release
- project:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _a1_common: &a1_common
- # values apply to all A1 projects
+- _a1_common: &a1_common # values apply to all A1 projects
name: a1-common
# git repo
project: ric-plt/a1
<<: *a1_common
name: ric-plt-a1-docker
# image name
- docker-name: 'o-ran-sc/ric-plt-a1'
+ docker-name: "o-ran-sc/ric-plt-a1"
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: ubuntu1804-docker-4c-4g
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
stream:
- master:
branch: master
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
- project:
<<: *a1_common
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _alarm_go_common: &alarm_go_common
- # values apply to all projects
+- _alarm_go_common: &alarm_go_common # values apply to all projects
name: alarm-go-common
# git repo
project: ric-plt/alarm-go
<<: *alarm_go_common
name: ric-plt-alarm-go-docker
# image name
- docker-name: 'o-ran-sc/ric-plt-alarmmanager'
+ docker-name: "o-ran-sc/ric-plt-alarmmanager"
# source of docker tag
container-tag-method: yaml-file
container-tag-yaml-dir: build
# use host network
- docker-build-args: '-f build/Dockerfile --network=host'
+ docker-build-args: "-f build/Dockerfile --network=host"
build-node: ubuntu1804-docker-4c-4g
stream:
- master:
branch: master
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
- project:
<<: *alarm_go_common
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=manager/cover.out,alarm/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=manager/cover.out,alarm/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
name: ric-plt-alarm-go-release
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
+#!/bin/sh
#
# Copyright (c) 2020 HCL Technology Pvt Ltd
#
echo "--> prescan-ric-plt-appmgr-ubuntu.sh starts"
-cd $WORKSPACE
+cd "${WORKSPACE}" || return
#docker build --network=host -t nexus3.o-ran-sc.org:10004/o-ran-sc/ric-plt-appmgr:0.5.0 .
sed -i 's,-cover,-coverprofile cover.out,' Dockerfile
docker build --network=host -t tmpimg --target=appmgr-build .
CONTAINER=$(docker create tmpimg)
-docker cp $CONTAINER:/go/src/ws/cover.out cover.out
-docker rm $CONTAINER
+docker cp "${CONTAINER}":/go/src/ws/cover.out cover.out
+docker rm "${CONTAINER}"
echo "--> prescan-ric-plt-appmgr-ubuntu.sh ends"
jobs:
- gerrit-info-yaml-verify
-- _appmgr_docker_common: &appmgr_docker_common
- # values apply to all appmgr docker projects
+- _appmgr_docker_common:
+ &appmgr_docker_common # values apply to all appmgr docker projects
name: appmgr-docker-common
# git repo
project: ric-plt/appmgr
<<: *appmgr_docker_common
name: ric-plt-appmgr
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _dbaas_docker_common: &dbaas_docker_common
- # values apply to all dbaas docker projects
+- _dbaas_docker_common:
+ &dbaas_docker_common # values apply to all dbaas docker projects
name: dbaas-docker-common
# git repo
project: ric-plt/dbaas
<<: *dbaas_docker_common
name: ric-plt-dbaas
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Specify docker file and host network
- docker-build-args: '--network=host -f docker/Dockerfile.redis'
+ docker-build-args: "--network=host -f docker/Dockerfile.redis"
# source of docker tag
container-tag-method: yaml-file
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
# analyze C code and test coverage
- project:
<<: *dbaas_docker_common
make-opts: -j4 all
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=src
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.cache.enabled=false
- sonar.cfamily.gcov.reportsPath=gcov_report
- sonar.cfamily.threads=4
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=src
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.cache.enabled=false
+ sonar.cfamily.gcov.reportsPath=gcov_report
+ sonar.cfamily.threads=4
jobs:
- gerrit-autotools-sonarqube
-#!/bin/bash\r
-##############################################################################\r
-#\r
-# Copyright (c) 2020 AT&T Intellectual Property.\r
-# Copyright (c) 2020 Nokia.\r
-# Copyright (c) 2020 HCL Technologies\r
-#\r
-# Licensed under the Apache License, Version 2.0 (the "License");\r
-# you may not use this file except in compliance with the License.\r
-# You may obtain a copy of the License at\r
-#\r
-# http://www.apache.org/licenses/LICENSE-2.0\r
-#\r
-# Unless required by applicable law or agreed to in writing, software\r
-# distributed under the License is distributed on an "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
-# See the License for the specific language governing permissions and\r
-# limitations under the License.\r
-#\r
-##############################################################################\r
-\r
-# Installs prerequisites needed to compile & test SDL code\r
-# and build RPM/DEB packages on a Debian/Ubuntu machine.\r
-\r
-echo "--> setup-dbaas-build-deb.sh"\r
-\r
-# Ensure we fail the job if any steps fail.\r
-set -eux -o pipefail\r
-\r
-# NOTE: The valgrind false positive problem could also potentially be solved\r
-# with valgrind suppression files but that kind of approach may be fragile.\r
-\r
-# install prereqs\r
-sudo apt-get update && sudo apt-get -q -y install \\r
- automake \\r
- autoconf \\r
- cmake \\r
- curl \\r
- g++ \\r
- gcc \\r
- libtool \\r
- make \\r
- pkg-config \\r
- valgrind \\r
- lcov\r
-\r
-# Cpputest built-in memory checks generate false positives in valgrind.\r
-# This is solved by compiling cpputest with memory checking disabled.\r
-\r
-mkdir -p cpputest/builddir\r
-cd cpputest\r
-\r
-curl -L https://github.com/cpputest/cpputest/releases/download/v3.8/cpputest-3.8.tar.gz | \\r
- tar --strip-components=1 -xzf -\r
-cd builddir\r
-cmake -DMEMORY_LEAK_DETECTION=OFF .. && \\r
-sudo make install\r
-cd ../..\r
-# generate configure script\r
-cd redismodule\r
-./autogen.sh && \\r
- ./configure && \\r
-sudo make test\r
-\r
-# generate configure script with memory checking disabled.\r
-\r
-./autogen.sh && \\r
- ./configure --disable-unit-test-memcheck && \\r
-sudo make test\r
-cd ..\r
-\r
-#Copy configure to $WORKSPACE\r
-\r
-cp -r cpputest/* .\r
-\r
-echo "--> setup-dbaas-build-deb.sh ends"
\ No newline at end of file
+#!/bin/bash
+##############################################################################
+#
+# Copyright (c) 2020 AT&T Intellectual Property.
+# Copyright (c) 2020 Nokia.
+# Copyright (c) 2020 HCL Technologies
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+##############################################################################
+
+# Installs prerequisites needed to compile & test SDL code
+# and build RPM/DEB packages on a Debian/Ubuntu machine.
+
+echo "--> setup-dbaas-build-deb.sh"
+
+# Ensure we fail the job if any steps fail.
+set -eux -o pipefail
+
+# NOTE: The valgrind false positive problem could also potentially be solved
+# with valgrind suppression files but that kind of approach may be fragile.
+
+# install prereqs
+sudo apt-get update && sudo apt-get -q -y install \
+ automake \
+ autoconf \
+ cmake \
+ curl \
+ g++ \
+ gcc \
+ libtool \
+ make \
+ pkg-config \
+ valgrind \
+ lcov
+
+# Cpputest built-in memory checks generate false positives in valgrind.
+# This is solved by compiling cpputest with memory checking disabled.
+
+mkdir -p cpputest/builddir
+cd cpputest
+
+curl -L https://github.com/cpputest/cpputest/releases/download/v3.8/cpputest-3.8.tar.gz | \
+ tar --strip-components=1 -xzf -
+cd builddir
+cmake -DMEMORY_LEAK_DETECTION=OFF .. && \
+sudo make install
+cd ../..
+# generate configure script
+cd redismodule
+./autogen.sh && \
+ ./configure && \
+sudo make test
+
+# generate configure script with memory checking disabled.
+
+./autogen.sh && \
+ ./configure --disable-unit-test-memcheck && \
+sudo make test
+cd ..
+
+#Copy configure to $WORKSPACE
+
+cp -r cpputest/* .
+
+echo "--> setup-dbaas-build-deb.sh ends"
jobs:
- gerrit-info-yaml-verify
-- _e2_docker_common: &e2_docker_common
- # values apply to all E2 docker projects
+- _e2_docker_common: &e2_docker_common # values apply to all E2 docker projects
name: e2-docker-common
# git repo
project: ric-plt/e2
<<: *e2_docker_common
name: ric-plt-e2
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# subdirectory
docker-root: RIC-E2-TERMINATION
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _e2mgr_docker_common: &e2mgr_docker_common
- # values apply to all E2MGR docker projects
+- _e2mgr_docker_common:
+ &e2mgr_docker_common # values apply to all E2MGR docker projects
name: e2mgr-docker-common
# git repo
project: ric-plt/e2mgr
<<: *e2mgr_docker_common
name: ric-plt-e2mgr
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
docker-root: E2Manager
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
name: ric-plt-e2mgr-sonar
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=E2Manager
- # Unit tests
- sonar.go.coverage.reportPaths=E2Manager/coverage.txt
- # Inclusions
- sonar.inclusions=**/**.go
- # Exclusions
- sonar.exclusions=**/mocks/**.go,**/tests/**.go
- # Test inclusions
- sonar.test.inclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=E2Manager
+ # Unit tests
+ sonar.go.coverage.reportPaths=E2Manager/coverage.txt
+ # Inclusions
+ sonar.inclusions=**/**.go
+ # Exclusions
+ sonar.exclusions=**/mocks/**.go,**/tests/**.go
+ # Test inclusions
+ sonar.test.inclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
make-opts: package test ARGS=-V
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=src/rmr
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.gcov.reportsPath=test
- sonar.cfamily.threads=2
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=src/rmr
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.gcov.reportsPath=test
+ sonar.cfamily.threads=2
jobs:
- gerrit-cmake-sonarqube
- project:
<<: *libe2ap_common
name: ric-plt-libe2ap-dev
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=1
make-opts: package
install-prefix: /usr/local
- project:
<<: *libe2ap_common
name: ric-plt-libe2ap-rt
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=0
make-opts: package
install-prefix: /usr/local
jobs:
- gerrit-packagecloud-release-verify
- gerrit-packagecloud-release-merge
-
# no sonar jobs as the library contains only generated code
views:
- project-view
-- _nodeb_rnib_common: &nodeb_rnib_common
- # values apply to all projects
+- _nodeb_rnib_common: &nodeb_rnib_common # values apply to all projects
name: nodeb-rnib-common
# git repo
project: ric-plt/nodeb-rnib
# need docker
build-node: ubuntu1804-docker-4c-4g
# image is not pushed, use simple name and tag
- docker-name: '{name}'
+ docker-name: "{name}"
container-tag-method: latest
# use host network for network resources
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
jobs:
- gerrit-docker-verify
- oran-gerrit-docker-ci-pc-merge
jobs:
- gerrit-info-yaml-verify
-- _o1_docker_common: &o1_docker_common
- # values apply to all docker projects
+- _o1_docker_common: &o1_docker_common # values apply to all docker projects
name: o1-docker-common
# git repo
project: ric-plt/o1
<<: *o1_docker_common
name: ric-plt-o1
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host for network access
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *dep_common
name: ric-plt-ric-dep-chart
- project-name: '{name}'
+ project-name: "{name}"
build-node: ubuntu1804-builder-2c-2g
script: "cd bin && bash verify-ric-charts"
# limit scope to subdir with helm charts
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'helm/.*'
+ pattern: "helm/.*"
jobs:
- oran-shell-verify
views:
- project-view
-- _ricdms_common: &ricdms_common
- # values apply to all projects
+- _ricdms_common: &ricdms_common # values apply to all projects
name: ricdms-common
# git repo
project: ric-plt/ricdms
<<: *ricdms_common
name: ric-plt-ricdms
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- compare-type: REG_EXP
pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _rtmgr_docker_common: &rtmgr_docker_common
- # values apply to all rtmgr docker projects
+- _rtmgr_docker_common:
+ &rtmgr_docker_common # values apply to all rtmgr docker projects
name: rtmgr-docker-common
# git repo
project: ric-plt/rtmgr
<<: *rtmgr_docker_common
name: ric-plt-rtmgr
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *rtmgr_docker_common
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=./coverage.txt
- # Inclusions
- sonar.inclusions=pkg/**/**.go
- # Exclusions
- sonar.exclusions=cmd/**.go,pkg/stub/**.go,pkg/**/**_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=./coverage.txt
+ # Inclusions
+ sonar.inclusions=pkg/**/**.go
+ # Exclusions
+ sonar.exclusions=cmd/**.go,pkg/stub/**.go,pkg/**/**_test.go
jobs:
- gerrit-sonar-prescan-script
jobs:
- gerrit-info-yaml-verify
-- _sdl_common: &sdl_common
- # values apply to all ric-plt/sdl projects
+- _sdl_common: &sdl_common # values apply to all ric-plt/sdl projects
name: sdl-common
# git repo
project: ric-plt/sdl
<<: *sdl_common
<<: *sdl_pkg_common
name: ric-plt-sdl-deb
- project-name: '{name}'
+ project-name: "{name}"
configure-opts: --with-deb-dir={build-dir}
make-opts: -j4 deb-pkg
<<: *sdl_common
<<: *sdl_pkg_common
name: ric-plt-sdl-rpm
- project-name: '{name}'
+ project-name: "{name}"
configure-opts: --with-rpm-dir={build-dir}
# parallel jobs (option -j) fail on rpm build
# https://bugzilla.redhat.com/show_bug.cgi?id=1398405
make-opts: -j4 test_gcov
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=src
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.cache.enabled=false
- sonar.cfamily.gcov.reportsPath=gcov_report
- sonar.cfamily.threads=4
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=src
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.cache.enabled=false
+ sonar.cfamily.gcov.reportsPath=gcov_report
+ sonar.cfamily.threads=4
jobs:
- gerrit-autotools-sonarqube
export CFG_FILE=../config/config-file.json
export RMR_SEED_RT=../config/uta_rtg.rt
+# shellcheck disable=SC2034
GO111MODULE=on GO_ENABLED=0 GOOS=linux
# setup version tag
then
tag=$(grep "tag:" container-tag.yaml | awk '{print $2}')
else
+ # shellcheck disable=SC2034
tag="no-tag-found"
fi
+# shellcheck disable=SC2034
hash=$(git rev-parse --short HEAD || true)
# Build
jobs:
- gerrit-info-yaml-verify
-- _sdlgo_docker_common: &sdlgo_docker_common
- # values apply to all sdlgo docker projects
+- _sdlgo_docker_common:
+ &sdlgo_docker_common # values apply to all sdlgo docker projects
name: sdlgo-docker-common
# git repo
project: ric-plt/sdlgo
<<: *sdlgo_docker_common
name: ric-plt-sdlgo
# image name, altho it is never pushed
- docker-name: '{name}'
+ docker-name: "{name}"
# use host network
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=cmd/**.go,example/**.go,internal/mocks/**.go,**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=cmd/**.go,example/**.go,internal/mocks/**.go,**/*_test.go
jobs:
- gerrit-sonar-prescan-script
name: ric-plt-sdlgo-go-release
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
<<: *sdlpy_common
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ricsdl-package/.*'
+ pattern: "ricsdl-package/.*"
tox-dir: ricsdl-package
jobs:
- gerrit-pypi-verify
name: ric-plt-sdlpy-release
<<: *sdlpy_common
jobs:
- - '{project-name}-gerrit-pypi-release-jobs'
+ - "{project-name}-gerrit-pypi-release-jobs"
# analyze unit test coverage
- project:
<<: *sdlpy_common
branch: master
sonarcloud: true
- sonarcloud-api-token: '{sonarcloud_api_token}'
- sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
- sonarcloud-project-organization: '{sonarcloud_project_organization}'
+ sonarcloud-api-token: "{sonarcloud_api_token}"
+ sonarcloud-project-key: "{sonarcloud_project_organization}_{project-name}"
+ sonarcloud-project-organization: "{sonarcloud_project_organization}"
tox-dir: ricsdl-package
mvn-params: -f ricsdl-package
jobs:
-echo "starting prescan-ric-plt-streaming-protobufs-ubuntu.sh"
-
#!/bin/sh
#
# Copyright (c) 2019 AT&T Intellectual Property.
# This source code is part of the near-RT RIC (RAN Intelligent Controller)
# platform project (RICP).
# Go install, build, etc
-set -e
+echo "--> starting prescan-ric-plt-streaming-protobufs-ubuntu.sh"
-
-cd $WORKSPACE/protogen/go/streaming_protobufs
+set -e
+cd "${WORKSPACE}"/protogen/go/streaming_protobufs
export GO111MODULE=on
go mod download
#No _test.go file for coverage report
-go test $WORKSPACE/protogen/go/streaming_protobufs/ -v -coverprofile cover.out
+go test "${WORKSPACE}"/protogen/go/streaming_protobufs/ -v -coverprofile cover.out
-echo " prescan-ric-plt-streaming-protobufs-ubuntu.sh ends"
+echo "prescan-ric-plt-streaming-protobufs-ubuntu.sh ends"
jobs:
- gerrit-info-yaml-verify
-- _streaming-protobufs_docker_common: &streaming-protobufs_docker_common
- # values apply to all streaming-protobufs docker projects
+- _streaming-protobufs_docker_common:
+ &streaming-protobufs_docker_common # values apply to all streaming-protobufs docker projects
name: streaming-protobufs-docker-common
# git repo
project: ric-plt/streaming-protobufs
<<: *streaming-protobufs_docker_common
name: ric-plt-streaming-protobufs
# image name, altho it is never pushed
- docker-name: '{name}'
+ docker-name: "{name}"
# use host network
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
+#!/bin/sh
+#
# Copyright (c) 2020 HCL Technology Pvt Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
#----------------------------------------------------------
echo "--> build_ric-plt-submgr-ubuntu.sh starts"
docker --version
echo "Unit Test"
-cd $WORKSPACE
+cd "${WORKSPACE}" || return
#docker build --network=host -t nexus3.o-ran-sc.org:10004/o-ran-sc/ric-plt-submgr:0.5.3 .
# target submgrbuild
# /tmp/submgr_cover.out
docker build --network=host -t tmpimg --target=submgrbuild .
CONTAINER=$(docker create tmpimg)
-docker cp $CONTAINER:/tmp/submgr_cover.out cover.out
-docker rm $CONTAINER
+docker cp "${CONTAINER}":/tmp/submgr_cover.out cover.out
+docker rm "${CONTAINER}"
echo "--> prescan-ric-plt-submgr-ubuntu.sh ends"
jobs:
- gerrit-info-yaml-verify
-- _submgr_docker_common: &submgr_docker_common
- # values apply to all submgr docker projects
+- _submgr_docker_common:
+ &submgr_docker_common # values apply to all submgr docker projects
name: submgr-docker-common
# git repo
project: ric-plt/submgr
<<: *submgr_docker_common
name: ric-plt-submgr
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network to clone from our gerrit
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *tracelibcpp_common
name: ric-plt-tracelibcpp-dev
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=1
make-opts: package
install-prefix: /usr/local
- project:
<<: *tracelibcpp_common
name: ric-plt-tracelibcpp-rt
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=0
make-opts: package
install-prefix: /usr/local
make-opts: -j8 all
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.scanner.force-deprecated-java-version=true
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=src
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.gcov.reportsPath=test
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.scanner.force-deprecated-java-version=true
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=src
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.gcov.reportsPath=test
jobs:
- gerrit-cmake-sonarqube
jobs:
- gerrit-info-yaml-verify
-- _tracelibgo_docker_common: &tracelibgo_docker_common
- # values apply to all tracelibgo docker projects
+- _tracelibgo_docker_common:
+ &tracelibgo_docker_common # values apply to all tracelibgo docker projects
name: tracelibgo-docker-common
# git repo
project: ric-plt/tracelibgo
<<: *tracelibgo_docker_common
name: ric-plt-tracelibgo
# image name, altho it is never pushed
- docker-name: '{name}'
+ docker-name: "{name}"
# use host network
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
-#!/bin/bash\r
-# SPDX-License-Identifier: EPL-1.0\r
-##############################################################################\r
-# Copyright (c) 2020 HCL Technologies and others.\r
-#\r
-# All rights reserved. This program and the accompanying materials\r
-# are made available under the terms of the Eclipse Public License v1.0\r
-# which accompanies this distribution, and is available at\r
-# http://www.eclipse.org/legal/epl-v10.html\r
-##############################################################################\r
-echo "---> cmake-sonarqube.sh"\r
-cd mgxapp\r
-docker build -t ric-plt-utils -f Dockerfile.build .\r
-docker create --name ric-plt-utils ric-plt-utils\r
-docker cp ric-plt-utils:/playpen/build/test/ .\r
-docker rm ric-plt-utils\r
-echo "---> cmake-sonarqube.sh ends"
\ No newline at end of file
+#!/bin/bash
+# SPDX-License-Identifier: EPL-1.0
+##############################################################################
+# Copyright (c) 2020 HCL Technologies and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+##############################################################################
+echo "---> cmake-sonarqube.sh"
+cd mgxapp || return
+docker build -t ric-plt-utils -f Dockerfile.build .
+docker create --name ric-plt-utils ric-plt-utils
+docker cp ric-plt-utils:/playpen/build/test/ .
+docker rm ric-plt-utils
+echo "---> cmake-sonarqube.sh ends"
- project:
<<: *utils_common
name: ric-plt-utils-dev
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=1
make-opts: package
install-prefix: /usr/local
- project:
<<: *utils_common
name: ric-plt-utils-rt
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=0
make-opts: package
install-prefix: /usr/local
make-opts: test ARGS=-V
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.scanner.force-deprecated-java-version=true
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=mgxapp/src
- sonar.cfamily.threads=4
- sonar.cfamily.cache.enabled=false
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.gcov.reportsPath=test
- sonar.c.file.suffixes=-
- sonar.cpp.file.suffixes=-
- sonar.objc.file.suffixes=-
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.scanner.force-deprecated-java-version=true
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=mgxapp/src
+ sonar.cfamily.threads=4
+ sonar.cfamily.cache.enabled=false
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.gcov.reportsPath=test
+ sonar.c.file.suffixes=-
+ sonar.cpp.file.suffixes=-
+ sonar.objc.file.suffixes=-
jobs:
- gerrit-cmake-sonarqube
-echo "--> prescan-ric-plt-vespamgr-ubuntu.sh starts"
-
#!/bin/bash
#
# Copyright (c) 2019 AT&T Intellectual Property.
# platform project (RICP).
#
+echo "--> prescan-ric-plt-vespamgr-ubuntu.sh starts"
set -e
set -x
jobs:
- gerrit-info-yaml-verify
-- _vespamgr_docker_common: &vespamgr_docker_common
- # values apply to all vespamgr docker projects
+- _vespamgr_docker_common:
+ &vespamgr_docker_common # values apply to all vespamgr docker projects
name: vespamgr-docker-common
# git repo
project: ric-plt/vespamgr
<<: *vespamgr_docker_common
name: ric-plt-vespamgr
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *xapp_frame_cpp_common
name: ric-plt-xapp-frame-cpp-dev
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=1
make-opts: package
install-prefix: /usr/local
- project:
<<: *xapp_frame_cpp_common
name: ric-plt-xapp-frame-cpp-rt
- project-name: '{name}'
+ project-name: "{name}"
cmake-opts: -DDEV_PKG=0
make-opts: package
install-prefix: /usr/local
make-opts: test ARGS=-V
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=src
- sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
- sonar.cfamily.gcov.reportsPath=test
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=src
+ sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
+ sonar.cfamily.gcov.reportsPath=test
jobs:
- gerrit-cmake-sonarqube
<<: *py_common
# do not trigger on changes in docs, releases
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
jobs:
- gerrit-pypi-verify
- gerrit-pypi-stage
# release requires sigul which requires centos
build-node: centos7-builder-1c-1g
jobs:
- - '{project-name}-gerrit-pypi-release-jobs'
+ - "{project-name}-gerrit-pypi-release-jobs"
- project:
name: ric-plt-xapp-frame-py-sonarqube
<<: *py_common
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=ricxappframe
- sonar.exclusions=setup.py,tests/*.py
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=ricxappframe
+ sonar.exclusions=setup.py,tests/*.py
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
jobs:
- gerrit-info-yaml-verify
-- _xapp_frame_rust_docker_common: &xapp_frame_rust_docker_common
- # values apply to all xapp-frame docker projects
+- _xapp_frame_rust_docker_common:
+ &xapp_frame_rust_docker_common # values apply to all xapp-frame docker projects
name: xapp-frame-rust-docker-common
# git repo
project: ric-plt/xapp-frame-rust
<<: *xapp_frame_rust_docker_common
name: ric-plt-xapp-frame-rust
# image name, altho it is never pushed
- docker-name: '{name}'
+ docker-name: "{name}"
# use host network
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
docker --version
echo "Unit Test"
-cd $WORKSPACE
+cd "${WORKSPACE}" || return
docker build --network=host -f ci/Dockerfile -t nexus3.o-ran-sc.org:10004/ric-plt-xapp-frame:latest .
jobs:
- gerrit-info-yaml-verify
-- _xapp_frame_docker_common: &xapp_frame_docker_common
- # values apply to all xapp-frame docker projects
+- _xapp_frame_docker_common:
+ &xapp_frame_docker_common # values apply to all xapp-frame docker projects
name: xapp-frame-docker-common
# git repo
project: ric-plt/xapp-frame
<<: *xapp_frame_docker_common
name: ric-plt-xapp-frame
# image name, altho it is never pushed
- docker-name: '{name}'
+ docker-name: "{name}"
# use host network
- docker-build-args: '--network=host -f ci/Dockerfile'
+ docker-build-args: "--network=host -f ci/Dockerfile"
# image tag; use a fixed value
container-tag-method: latest
jobs:
sonar-project-file: ""
# use sonarcloud values from defaults.yaml
sonar-properties: |
- # Required metadata
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- # Encoding
- sonar.build.sourceEncoding=UTF-8
- # Language
- sonar.language=go
- # Source
- sonar.sources=.
- # Unit tests
- sonar.go.coverage.reportPaths=**/cover.out
- # Inclusions
- sonar.inclusions=**/*.go
- # Exclusions
- sonar.exclusions=**/*_test.go
+ # Required metadata
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+ # Language
+ sonar.language=go
+ # Source
+ sonar.sources=.
+ # Unit tests
+ sonar.go.coverage.reportPaths=**/cover.out
+ # Inclusions
+ sonar.inclusions=**/*.go
+ # Exclusions
+ sonar.exclusions=**/*_test.go
jobs:
- gerrit-sonar-prescan-script
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- rtdv3-global-merge
stream:
- master:
- branch: '*'
+ branch: "*"
views:
- project-view
-- _kpimon_common: &kpimon_common
- # values apply to all projects
+- _kpimon_common: &kpimon_common # values apply to all projects
name: kpimon-common
# git repo
project: scp/ric-app/kpimon
# also used as image name
name: scp-ric-app-kpimon
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source type of image tag
container-tag-method: yaml-file
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
# trigger on any change other than a file in ./docs
gerrit_trigger_file_paths:
- - compare-type: REG_EXP
- pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
+ - compare-type: REG_EXP
+ pattern: '^((?!docs/|\/COMMIT_MSG).)*$'
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- - master:
- branch: master
+ - master:
+ branch: master
# push nexus image from staging to release
- project:
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
fi
# default to release repo; accept override to use staging repo
repo=${repo:-"release"}
-#
+#
for deb in "riclibe2ap_${ver}_amd64.deb" "riclibe2ap-dev_${ver}_amd64.deb"; do
wget -nv --content-disposition "https://packagecloud.io/o-ran-sc/${repo}/packages/debian/stretch/${deb}/download.deb"
sudo dpkg -i "${deb}"
fi
# default to release repo; accept override to use staging repo
repo=${repo:-"release"}
-#
+#
for deb in "rmr_${ver}_amd64.deb" "rmr-dev_${ver}_amd64.deb"; do
wget -nv --content-disposition "https://packagecloud.io/o-ran-sc/${repo}/packages/debian/stretch/${deb}/download.deb"
sudo dpkg -i "${deb}"
jobs:
- gerrit-info-yaml-verify
-- _sim_a1_interface_common: &sim_a1_interface_common
- # values apply to all projects here
+- _sim_a1_interface_common:
+ &sim_a1_interface_common # values apply to all projects here
name: sim-a1-interface-common
# git repo
project: sim/a1-interface
<<: *sim_a1_interface_common
name: a1-simulator
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# source of docker tag
container-tag-method: yaml-file
docker-root: near-rt-ric-simulator
# use host network
- docker-build-args: '--network=host'
+ docker-build-args: "--network=host"
build-node: ubuntu1804-docker-4c-4g
stream:
- master:
- g-release:
branch: g-release
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
- project:
<<: *sim_a1_interface_common
build-node: ubuntu1804-builder-2c-2g
sonar-project-file: ""
sonar-properties: |
- sonar.login={sonarcloud_api_token}
- sonar.projectKey={sonarcloud_project_organization}_{project-name}
- sonar.projectName={project-name}
- sonar.organization={sonarcloud_project_organization}
- sonar.build.sourceEncoding=UTF-8
- sonar.sources=near-rt-ric-simulator
- sonar.python.coverage.reportPaths=coverage.xml
+ sonar.login={sonarcloud_api_token}
+ sonar.projectKey={sonarcloud_project_organization}_{project-name}
+ sonar.projectName={project-name}
+ sonar.organization={sonarcloud_project_organization}
+ sonar.build.sourceEncoding=UTF-8
+ sonar.sources=near-rt-ric-simulator
+ sonar.python.coverage.reportPaths=coverage.xml
jobs:
- gerrit-tox-sonarqube
-
- project:
<<: *sim_a1_interface_common
name: sim-a1-interface-release
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _sim_e2_interface_common: &sim_e2_interface_common
- # values apply to all projects here
+- _sim_e2_interface_common:
+ &sim_e2_interface_common # values apply to all projects here
name: sim-e2-interface-common
# git repo
project: sim/e2-interface
build-node: ubuntu1804-docker-4c-4g
container-tag-method: yaml-file
# image name
- docker-name: 'o-ran-sc/ntsim-e2-simulator'
+ docker-name: "o-ran-sc/ntsim-e2-simulator"
# docker root
docker-root: e2sim
# dockerfile is in subdir
- docker-build-args: '--network=host -f docker/Dockerfile'
+ docker-build-args: "--network=host -f docker/Dockerfile"
# tag file is in subdir
container-tag-yaml-dir: e2sim/docker
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: '{docker-root}/.*'
+ pattern: "{docker-root}/.*"
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
build-node: centos7-builder-1c-1g
branch: master
jobs:
- - gerrit-info-yaml-verify
\ No newline at end of file
+ - gerrit-info-yaml-verify
jobs:
- gerrit-info-yaml-verify
-- _sim_o1_interface_docker: &sim_o1_interface_docker
- # values apply to all sim/o1-interface docker projects
+- _sim_o1_interface_docker:
+ &sim_o1_interface_docker # values apply to all sim/o1-interface docker projects
name: sim-o1-interface-common
# git repo
project: sim/o1-interface
# if no container-tag-yaml-dir is defined, container-tag.yml is taken from the docker-root
build-node: ubuntu1804-docker-4c-4g
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-base
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nts-ng-base'
+ docker-name: "o-ran-sc/nts-ng-base"
# dockerfile is in subdir
- docker-build-args: '--network=host -f deploy/base/ubuntu.Dockerfile'
+ docker-build-args: "--network=host -f deploy/base/ubuntu.Dockerfile"
# tag file latest, since it is base for others
container-tag-method: latest
docker-root: ntsimulator
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/ntsim-ng/.*'
+ pattern: "ntsimulator/ntsim-ng/.*"
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/base/.*'
+ pattern: "ntsimulator/deploy/base/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-manager
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/ntsim-ng-manager'
+ docker-name: "o-ran-sc/ntsim-ng-manager"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/nts-manager
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/nts-manager/.*'
+ pattern: "ntsimulator/deploy/nts-manager/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-o-ran-fh
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: ' o-ran-sc/nts-ng-o-ran-fh'
+ docker-name: " o-ran-sc/nts-ng-o-ran-fh"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/o-ran
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/o-ran/.*'
+ pattern: "ntsimulator/deploy/o-ran/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-x-ran
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/nts-ng-x-ran'
+ docker-name: "o-ran-sc/nts-ng-x-ran"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/x-ran
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/x-ran/.*'
+ pattern: "ntsimulator/deploy/x-ran/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-o-ran-ru-fh
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: ' o-ran-sc/nts-ng-o-ran-ru-fh'
+ docker-name: " o-ran-sc/nts-ng-o-ran-ru-fh"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/o-ran-ru-fh
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/o-ran-ru-fh/.*'
+ pattern: "ntsimulator/deploy/o-ran-ru-fh/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-o-ran-du
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: ' o-ran-sc/nts-ng-o-ran-du'
+ docker-name: " o-ran-sc/nts-ng-o-ran-du"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/o-ran-du
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/o-ran-du/.*'
+ pattern: "ntsimulator/deploy/o-ran-du/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-blank
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: ' o-ran-sc/nts-ng-blank'
+ docker-name: " o-ran-sc/nts-ng-blank"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/blank
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/blank/.*'
+ pattern: "ntsimulator/deploy/blank/.*"
- project:
<<: *sim_o1_interface_docker
name: sim-o1-interface-ntsim-ng-tapi-topology
# jenkins job name prefix
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: ' o-ran-sc/smo-nts-ng-topology-server'
+ docker-name: " o-ran-sc/smo-nts-ng-topology-server"
# dockerfile is in subdir
docker-build-args: "--network=host -f Dockerfile --build-arg NTS_BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
docker-root: ntsimulator/deploy/smo-nts-ng-topology-server
gerrit_trigger_file_paths:
- compare-type: REG_EXP
- pattern: 'ntsimulator/deploy/smo-nts-ng-topology-server/.*'
+ pattern: "ntsimulator/deploy/smo-nts-ng-topology-server/.*"
- project:
<<: *sim_o1_interface_docker
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
jobs:
- gerrit-info-yaml-verify
-- _smo_o1_common: &smo_o1_common
- # values apply to all projects
+- _smo_o1_common: &smo_o1_common # values apply to all projects
name: smo-o1-common
# git repo
project: smo/o1
- project:
<<: *smo_o1_common
name: smo-o1-release
- project-name: '{name}'
+ project-name: "{name}"
# maven release requires sigul which requires centos
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *smo_o1_common
jobs:
- gerrit-info-yaml-verify
-- _smo_o2_common: &smo_o2_common
- # values apply to all projects
+- _smo_o2_common: &smo_o2_common # values apply to all projects
name: smo-o2-common
# git repo
project: smo/o2
- project:
<<: *smo_o2_common
name: smo-o2-release
- project-name: '{name}'
+ project-name: "{name}"
# maven release requires sigul which requires centos
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *smo_o2_common
jobs:
- gerrit-info-yaml-verify
-- _ves_docker_common: &ves_docker_common
- # values apply to all docker projects
+- _ves_docker_common: &ves_docker_common # values apply to all docker projects
name: ves-docker-common
# git repo
project: smo/ves
- project:
<<: *ves_docker_common
name: smo-ves-collector
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
docker-root: collector
# source of docker tag
container-tag-method: yaml-file
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
- project:
<<: *ves_docker_common
name: smo-ves-dmaap-adapter
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
docker-root: dmaapadapter
# source of docker tag
container-tag-method: yaml-file
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
- project:
<<: *ves_docker_common
name: smo-ves-influxdb-connector
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
docker-root: influxdb-connector
# source of docker tag
container-tag-method: yaml-file
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
- project:
<<: *ves_docker_common
name: smo-ves-post-config
- project-name: '{name}'
+ project-name: "{name}"
# image name
- docker-name: 'o-ran-sc/{name}'
+ docker-name: "o-ran-sc/{name}"
# Dockerfile is in a subdir
docker-root: postconfig
# source of docker tag
container-tag-method: yaml-file
jobs:
- - '{project-name}-gerrit-docker-jobs'
+ - "{project-name}-gerrit-docker-jobs"
stream:
- master:
branch: master
- project:
<<: *ves_docker_common
name: smo-ves-release
- project-name: '{name}'
+ project-name: "{name}"
# maven release requires sigul which requires centos
# container release requires docker
build-node: centos7-docker-2c-8g
jobs:
- - '{project-name}-gerrit-release-jobs'
+ - "{project-name}-gerrit-release-jobs"
- project:
<<: *ves_docker_common
From a high level, the builds:
-* Boot a specified base image in the cloud
-* Run a set of shell scripts, listed in the template's shell provisioner
+- Boot a specified base image in the cloud
+- Run a set of shell scripts, listed in the template's shell provisioner
section, to do any configuration required by the builder.
-* Execute a shutdown of the running instance
-* Execute a 'nova image-create' operation against the shutdown instance.
-* Perform a 'nova delete' operation against the shutdown instance.
+- Execute a shutdown of the running instance
+- Execute a 'nova image-create' operation against the shutdown instance.
+- Perform a 'nova delete' operation against the shutdown instance.
[1]: https://www.packer.io/
[2]: https://www.packer.io/intro/getting-started/install.html
vars:
golang_version: 1.19
- gopath: '/opt/go/{{golang_version}}/bin'
+ gopath: "/opt/go/{{golang_version}}/bin"
pre_tasks:
- include_role: name=lfit.system-update
ruby_download_url: http://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz
ruby_version: 2.5.1
- - name: 'Install PackageCloud'
- command: 'gem install package_cloud'
+ - name: "Install PackageCloud"
+ command: "gem install package_cloud"
become: true
- include_role: