X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fnonrtric%2Fnonrtric.yaml;h=cf574ffdb6b219928cecf63ed54edae0490c8261;hb=9d106aaf7694438718ece292159562b8a1b02fcb;hp=696c5746d7a6761f041fbf8a674af44b6ad398ea;hpb=30f83a3caa9902e2132760906d95563589d49466;p=ci-management.git diff --git a/jjb/nonrtric/nonrtric.yaml b/jjb/nonrtric/nonrtric.yaml index 696c5746..cf574ffd 100644 --- a/jjb/nonrtric/nonrtric.yaml +++ b/jjb/nonrtric/nonrtric.yaml @@ -38,18 +38,20 @@ branch: cherry - dawn: branch: dawn + - e-release: + branch: e-release -# nonrtric:policy-agent -# Maven artifacts for nonrtric-policy-agent +# nonrtric:a1-policy-management-service/ +# Maven artifacts for nonrtric-a1-policy-management-service/ - project: <<: *nonrtric_jdk_common - name: nonrtric-policy-agent + name: nonrtric-a1-policy-management-service project-name: '{name}' mvn-opts: '-Ddocker.skip=true' - mvn-params: '-f policy-agent' + mvn-params: '-f a1-policy-management-service/' gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'policy-agent/.*' + pattern: 'a1-policy-management-service/.*' build-node: ubuntu1804-builder-4c-4g jobs: - gerrit-maven-verify @@ -59,6 +61,27 @@ stream: - master: branch: master + - e-release: + branch: e-release + +# nonrtric:policy-agent/ +# Maven artifacts for nonrtric-policy-agent/ +- project: + <<: *nonrtric_jdk_common + name: nonrtric-policy-agent + project-name: '{name}' + mvn-opts: '-Ddocker.skip=true' + mvn-params: '-f policy-agent/' + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'policy-agent/.*' + build-node: ubuntu1804-builder-4c-4g + jobs: + - gerrit-maven-verify + - gerrit-maven-merge + - gerrit-maven-stage + - gerrit-maven-clm + stream: - cherry: branch: cherry - dawn: @@ -88,18 +111,20 @@ branch: cherry - dawn: branch: dawn + - e-release: + branch: e-release -# nonrtric:enrichment-coordinator-service -# Maven artifacts for nonrtric-enrichment-coordinator-service +# nonrtric:information-coordinator-service +# Maven artifacts for nonrtric-information-coordinator-service - project: <<: *nonrtric_jdk_common - name: nonrtric-enrichment-coordinator-service + name: nonrtric-information-coordinator-service project-name: '{name}' mvn-opts: '-Ddocker.skip=true' - mvn-params: '-f enrichment-coordinator-service' + mvn-params: '-f information-coordinator-service' gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'enrichment-coordinator-service/.*' + pattern: 'information-coordinator-service/.*' build-node: ubuntu1804-builder-4c-4g jobs: - gerrit-maven-verify @@ -109,22 +134,20 @@ stream: - master: branch: master - - cherry: - branch: cherry - - dawn: - branch: dawn + - e-release: + branch: e-release -# nonrtric:r-app-catalogue -# Maven artifacts for r-app-catalogue +# nonrtric:enrichment-coordinator-service +# Maven artifacts for nonrtric-enrichment-coordinator-service - project: <<: *nonrtric_jdk_common - name: nonrtric-r-app-catalogue + name: nonrtric-enrichment-coordinator-service project-name: '{name}' mvn-opts: '-Ddocker.skip=true' - mvn-params: '-f r-app-catalogue' + mvn-params: '-f enrichment-coordinator-service' gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'r-app-catalogue/.*' + pattern: 'enrichment-coordinator-service/.*' build-node: ubuntu1804-builder-4c-4g jobs: - gerrit-maven-verify @@ -132,8 +155,6 @@ - gerrit-maven-stage - gerrit-maven-clm stream: - - master: - branch: master - cherry: branch: cherry - dawn: @@ -141,31 +162,47 @@ - project: <<: *nonrtric_jdk_common - name: nonrtric-o-ru-closed-loop-recovery + name: nonrtric-auth-token-fetch project-name: '{name}' # image name - docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-recovery' + docker-name: 'o-ran-sc/nonrtric-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' # Directory with Dockerfile - docker-root: 'test/usecases/oruclosedlooprecovery/scriptversion/app' + docker-root: 'auth-token-fetch' + # use host network to clone from our gerrit + docker-build-args: '--network=host' + # Directory where go test should be run + go-root: 'auth-token-fetch' # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'test/usecases/oruclosedlooprecovery/scriptversion/app/.*' + pattern: 'auth-token-fetch/.*' build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs jobs: - - gerrit-maven-verify - - gerrit-maven-merge - - gerrit-maven-stage - - gerrit-maven-clm + - "{project-name}-gerrit-docker-jobs" + - gerrit-go-verify stream: - master: branch: master - - dawn: - branch: dawn + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-auth-token-fetch-sonar + project-name: nonrtric-auth-token-fetch + # prescan script requires ubuntu + # golang is only on docker-enabled nodes + build-node: ubuntu1804-docker-4c-4g + sonar-prescan-script: !include-raw-escape: prescan-nonrtric-auth-token-fetch-ubuntu.sh + sonar-project-file: "" + java-version: openjdk11 + # use sonarcloud values from defaults.yaml + sonar-properties: !include-raw: sonar-project.properties + jobs: + - gerrit-sonar-prescan-script - project: <<: *nonrtric_jdk_common @@ -179,11 +216,101 @@ - project: <<: *nonrtric_jdk_common name: nonrtric-sonar + project-name: '{name}' # 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-key: '{sonarcloud_project_organization}_nonrtric' sonarcloud-project-organization: '{sonarcloud_project_organization}' jobs: - gerrit-maven-sonar + +# Usecases +- project: + <<: *nonrtric_jdk_common + name: nonrtric-o-ru-closed-loop-recovery + project-name: '{name}' + # image name + docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-recovery' + # get tag from YAML + container-tag-method: yaml-file + # use host network to clone from our gerrit + docker-build-args: '--network=host' + # Directory with Dockerfile + docker-root: 'test/usecases/oruclosedlooprecovery/scriptversion/app' + # Limit build trigger to appropriate files + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'test/usecases/oruclosedlooprecovery/scriptversion/app/.*' + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master + - dawn: + branch: dawn + - e-release: + branch: e-release + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-o-ru-closed-loop-consumer + project-name: '{name}' + # image name + docker-name: 'o-ran-sc/nonrtric-o-ru-closed-loop-consumer' + # get tag from YAML + container-tag-method: yaml-file + # use host network to clone from our gerrit + docker-build-args: '--network=host' + # Directory with Dockerfile + docker-root: 'test/usecases/oruclosedlooprecovery/goversion' + # Directory where go test should be run + go-root: 'test/usecases/oruclosedlooprecovery/goversion' + # Limit build trigger to appropriate files + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: 'test/usecases/oruclosedlooprecovery/goversion/.*' + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + - gerrit-go-verify + stream: + - master: + branch: master + - e-release: + branch: e-release + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-o-ru-closed-loop-consumer-sonar + project-name: nonrtric-o-ru-closed-loop-consumer-sonar + # 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-project-file: "" + java-version: openjdk11 + # use sonarcloud values from defaults.yaml + sonar-properties: | + # Required metadata + sonar.login={sonarcloud_api_token} + sonar.projectKey={sonarcloud_project_organization}_nonrtric-o-ru-closed-loop-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=test/usecases/oruclosedlooprecovery/goversion/coverage.txt + # Inclusions + sonar.inclusions=test/usecases/oruclosedlooprecovery/goversion/internal/**/**.go,test/usecases/oruclosedlooprecovery/goversion/**.go + # Exclusions + sonar.exclusions=test/usecases/oruclosedlooprecovery/goversion/mocks/**.go,test/usecases/oruclosedlooprecovery/goversion/internal/**/**_test.go,test/usecases/oruclosedlooprecovery/goversion/**_test.go,test/usecases/oruclosedlooprecovery/goversion/simulator/**.go + jobs: + - gerrit-sonar-prescan-script