X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fnonrtric%2Fnonrtric.yaml;h=d5fc71dfce8b588c5b94ab5bec6365646e52adac;hb=304f332b8eba7450838b1b0be1074120e9fc791d;hp=d030a5910232f3a08dd4b12b17944b722bf32ff5;hpb=5641bf85f50df1210ee6bad046ad78110c103e7c;p=ci-management.git diff --git a/jjb/nonrtric/nonrtric.yaml b/jjb/nonrtric/nonrtric.yaml index d030a591..d5fc71df 100644 --- a/jjb/nonrtric/nonrtric.yaml +++ b/jjb/nonrtric/nonrtric.yaml @@ -5,82 +5,221 @@ views: - project-view -- project: - name: nonrtric-info - project: nonrtric - project-name: nonrtric - build-node: centos7-builder-1c-1g - jobs: - - gerrit-info-yaml-verify - -- nonrtric_jdk11: &nonrtric_jdk11 - # values apply to all projects here - name: nonrtric-jdk11 +- _nonrtric_jdk_common: &nonrtric_jdk_common + name: nonrtric-jdk-common # git repo project: nonrtric # jenkins job name prefix project-name: nonrtric # maven settings file has docker credentials mvn-settings: nonrtric-settings - # defaults.yaml value is NOT used due to value set in lf-maven-jobs.yaml - java-version: openjdk11 mvn-version: mvn36 + java-version: openjdk17 + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-test-kafka-procon + project-name: "{name}" + # image name + 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" + # Directory with Dockerfile + 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/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-test-http-https-proxy + project-name: "{name}" + # image name + 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" + # Directory with Dockerfile + 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/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-test-cr + project-name: "{name}" + # image name + 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" + # Directory with Dockerfile + 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/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master - project: - <<: *nonrtric_jdk11 - mvn-params: -Dbuild.number=${{BUILD_NUMBER}} + <<: *nonrtric_jdk_common + name: nonrtric-test-prodstub + project-name: "{name}" + # image name + 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" + # Directory with Dockerfile + 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/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs jobs: - - gerrit-maven-docker-verify - - gerrit-maven-docker-merge - - gerrit-maven-docker-stage + - "{project-name}-gerrit-docker-jobs" stream: - master: branch: master -# nonrtric:policy-agent -# common for artifacts for nonrtric-policy-agent -- nonrtric_policy_agent_common: &nonrtric_policy_agent_common - name: nonrtric-policy-agent-common - project-name: nonrtric-policy-agent - mvn-opts: '-Ddocker.skip=true' - mvn-params: '-f policy-agent' +- project: + <<: *nonrtric_jdk_common + name: nonrtric-test-servicestub + project-name: "{name}" + # image name + docker-name: "servicestub" + # 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/servicestub" + # Directory where go test should be run + # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'policy-agent/.*' + pattern: "test/servicestub/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master -# build feature artifacts for nonrtric-policy-agent - project: - <<: *nonrtric_jdk11 - <<: *nonrtric_policy_agent_common - name: nonrtric-policy-agent - build-node: ubuntu1804-builder-4c-4g + <<: *nonrtric_jdk_common + name: nonrtric-test-mrstub + project-name: "{name}" + # image name + 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" + # Directory with Dockerfile + 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/.*" + 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" stream: - master: branch: master - project: - <<: *nonrtric_jdk11 + <<: *nonrtric_jdk_common + name: nonrtric-plt-auth-token-fetch + project-name: "{name}" + # image name + 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" + # Directory with Dockerfile + docker-root: "auth-token-fetch" + # 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: "auth-token-fetch/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs + jobs: + - "{project-name}-gerrit-docker-jobs" + - gerrit-go-verify + stream: + - master: + branch: master + - g-release: + java-version: openjdk11 + branch: g-release + - h-release: + branch: h-release + - i-release: + branch: i-release + +- project: + <<: *nonrtric_jdk_common + name: nonrtric-plt-auth-token-fetch-sonar + project-name: nonrtric-plt-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-escape: sonar-project.properties + jobs: + - gerrit-sonar-prescan-script + +- project: + <<: *nonrtric_jdk_common name: nonrtric-release - branch: master # maven release requires sigul which requires centos # container release requires docker build-node: centos7-docker-2c-8g jobs: - - '{project-name}-gerrit-release-jobs' - -- project: - <<: *nonrtric_jdk11 - name: nonrtric-sonar - # 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}' - jobs: - - gerrit-maven-sonar + - "{project-name}-gerrit-release-jobs"