X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Foam%2Foam.yaml;h=8e40a7c585319a7c6ca656c562143092b57aa359;hb=ce83a2b01380f64b2e7659303f466f20eff3bdcc;hp=5f2e3375cafb605aba7fe58e8f570654ab1a5a5b;hpb=da252d2f419ea69e7f0443f7207a34c403ea1b66;p=ci-management.git diff --git a/jjb/oam/oam.yaml b/jjb/oam/oam.yaml index 5f2e3375..8e40a7c5 100644 --- a/jjb/oam/oam.yaml +++ b/jjb/oam/oam.yaml @@ -12,3 +12,122 @@ build-node: centos7-builder-1c-1g jobs: - gerrit-info-yaml-verify + +# common for all mvn jobs +- oam_common: &oam_common + name: oam-common + project: oam + project-name: oam + mvn-settings: oam-settings + java-version: openjdk8 + maven-version: mvn35 + +# promote artifacts and images to release registries +- project: + <<: *oam_common + name: oam-release + build-node: centos7-docker-2c-8g + jobs: + - '{project-name}-gerrit-release-jobs' + +# oam:features +# commmon for feature artifacts for nonrtric-o1-controller +- oam_features_common: &oam_features_common + name: oam-features-common + project-name: oam-features + mvn-opts: '-Xmx3072m -XX:MaxPermSize=1024m' + mvn-params: '-f features' + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'features/.*' + +# build feature artifacts for nonrtric-o1-controller +- project: + <<: *oam_common + <<: *oam_features_common + name: oam-features + build-node: ubuntu1804-builder-4c-4g + jobs: + - gerrit-maven-verify + - gerrit-maven-merge + - gerrit-maven-stage + - gerrit-maven-clm + stream: + - 'master': + branch: 'master' + +# report test coverage periodically for feature artifacs +- project: + <<: *oam_common + <<: *oam_features_common + name: oam-features-sonar + sonarcloud: true + sonarcloud-api-token: '{sonarcloud_api_token}' + sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}' + sonarcloud-project-organization: '{sonarcloud_project_organization}' + build-node: ubuntu1604-builder-4c-4g + jobs: + - gerrit-maven-sonar + +# oam:parent +# common for feature parents for nonrtric-o1-controller feature artifacts +- oam_parent_common: &oam_parent_common + name: oam-parent-common + project-name: oam-parent + mvn-opts: '-Xmx3072m -XX:MaxPermSize=1024m' + mvn-params: '-f parent' + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'parent/.*' + +# building feature parents for nonrtric-o1-controller feature artifacts +- project: + <<: *oam_common + <<: *oam_parent_common + name: oam-parents + build-node: ubuntu1804-builder-4c-4g + jobs: + - gerrit-maven-verify + - gerrit-maven-merge + - gerrit-maven-stage + - gerrit-maven-clm + stream: + - 'master': + branch: 'master' + +# report test coverage periodically +- project: + <<: *oam_common + <<: *oam_parent_common + name: oam-parent-sonar + sonarcloud: true + sonarcloud-api-token: '{sonarcloud_api_token}' + sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}' + sonarcloud-project-organization: '{sonarcloud_project_organization}' + build-node: ubuntu1604-builder-4c-4g + jobs: + - gerrit-maven-sonar + +# oam:distribution +# common for oam-distribution docker projects +- oam_distribution_common: &oam_distribution_common + name: oam-distribution-common + project-name: oam-distribution + mvn-opts: '-Xmx3072m -XX:MaxPermSize=1024m' + mvn-params: '-f distribution -Dbuild.number=${{BUILD_NUMBER}}' + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'distribution/.*' + +# build docker images for nonrtric-o1-controller +- project: + <<: *oam_common + <<: *oam_distribution_common + name: oam-distribution + jobs: + - gerrit-maven-docker-verify + - gerrit-maven-docker-merge + - gerrit-maven-docker-stage + stream: + - master: + branch: 'master'