X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fnonrtric%2Fnonrtric.yaml;h=064ad0adab67d9ab164432ea9dfa40c32295c343;hb=refs%2Fheads%2Fmaster;hp=f350d35fa95d187fea57ab3ee3efcef94276c84d;hpb=a458cfd49ad0bf3f921adb90dbae09f795c00d2f;p=ci-management.git diff --git a/jjb/nonrtric/nonrtric.yaml b/jjb/nonrtric/nonrtric.yaml index f350d35f..0353ea84 100644 --- a/jjb/nonrtric/nonrtric.yaml +++ b/jjb/nonrtric/nonrtric.yaml @@ -5,16 +5,7 @@ views: - project-view -- project: - name: nonrtric-info - project: nonrtric - project-name: nonrtric - build-node: centos7-builder-1c-1g - jobs: - - gerrit-info-yaml-verify - -- nonrtric_jdk_common: &nonrtric_jdk_common - name: nonrtric-jdk-common +- _nonrtric_jdk_common: &nonrtric_jdk_common # git repo project: nonrtric # jenkins job name prefix @@ -22,48 +13,68 @@ # maven settings file has docker credentials mvn-settings: nonrtric-settings mvn-version: mvn36 - java-version: openjdk11 + java-version: openjdk17 + +- _nonrtric_docker_common: &nonrtric_docker_common + <<: *nonrtric_jdk_common + # get tag from YAML + container-tag-method: yaml-file + # use host network to clone from our gerrit + docker-build-args: "--network=host" -# nonrtric:pm-pmlogger-influx -# Maven artifacts for nonrtric:pm-pmlogger-influx - project: <<: *nonrtric_jdk_common - name: nonrtric-plt-pm-pmlogger-influx - project-name: '{name}' - mvn-opts: '-Ddocker.skip=true' - mvn-params: '-f pmlog -Dbuild.number=${{BUILD_NUMBER}}' + name: nonrtric-release + # maven release requires sigul which requires centos + # container release requires docker + build-node: centos7-docker-2c-8g + jobs: + - "{project-name}-gerrit-release-jobs" + +# Jobs to verify / build / sonar for functional releaseable funtions +- project: + <<: *nonrtric_docker_common + name: nonrtric-plt-auth-token-fetch + project-name: "{name}" + # image name + docker-name: "o-ran-sc/nonrtric-plt-auth-token-fetch" + # 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: 'pmlog/.*' - build-node: ubuntu1804-builder-4c-4g + pattern: "auth-token-fetch/.*" + build-node: ubuntu1804-docker-4c-4g + # Includes verify and merge jobs jobs: - - gerrit-maven-verify - - gerrit-maven-merge - # Disable stage for now (Will move to another repo before release) - gerrit-maven-stage - # Disable clm for now (Will move to another repo before release) - gerrit-maven-clm + - "{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 +# Jobs to verify / build sample uService images - project: - <<: *nonrtric_jdk_common - name: nonrtric-test-kafka-procon - project-name: '{name}' + <<: *nonrtric_docker_common + name: nonrtric-sample-helloworld-sme-invoker + 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' + docker-name: "o-ran-sc/nonrtric-sample-helloworld-sme-invoker" # Directory with Dockerfile - docker-root: 'test/kafka-procon' - # use host network to clone from our gerrit - docker-build-args: '--network=host' - # Directory where go test should be run + docker-root: "sample-services/hello-world-sme-invoker" # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'test/kafka-procon/.*' + pattern: "sample-services/hello-world-sme-invoker/.*" build-node: ubuntu1804-docker-4c-4g # Includes verify and merge jobs jobs: @@ -73,24 +84,17 @@ branch: master - project: - <<: *nonrtric_jdk_common - name: nonrtric-test-http-https-proxy - project-name: '{name}' + <<: *nonrtric_docker_common + name: nonrtric-sample-helloworld + 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' + docker-name: "o-ran-sc/nonrtric-sample-helloworld" # Directory with Dockerfile - docker-root: 'test/http-https-proxy' - # use host network to clone from our gerrit - docker-build-args: '--network=host' - # Directory where go test should be run + docker-root: "sample-services/hello-world" # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'test/http-https-proxy/.*' + pattern: "sample-services/hello-world/.*" build-node: ubuntu1804-docker-4c-4g # Includes verify and merge jobs jobs: @@ -100,25 +104,20 @@ branch: master - project: - <<: *nonrtric_jdk_common - name: nonrtric-test-cr - project-name: '{name}' + <<: *nonrtric_docker_common + name: nonrtric-sample-icsproducer + 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' + docker-name: "o-ran-sc/nonrtric-sample-icsproducer" # Directory with Dockerfile - docker-root: 'test/cr' - # use host network to clone from our gerrit - docker-build-args: '--network=host' - # Directory where go test should be run + docker-root: "sample-services/ics-producer-consumer/producer" # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'test/cr/.*' + pattern: "sample-services/ics-producer-consumer/producer/.*" build-node: ubuntu1804-docker-4c-4g + post_docker_build_script: !include-raw-escape: + - ics-producer-consumer-tests.sh # Includes verify and merge jobs jobs: - "{project-name}-gerrit-docker-jobs" @@ -127,25 +126,20 @@ branch: master - project: - <<: *nonrtric_jdk_common - name: nonrtric-test-prodstub - project-name: '{name}' + <<: *nonrtric_docker_common + name: nonrtric-sample-icsconsumer + 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' + docker-name: "o-ran-sc/nonrtric-sample-icsconsumer" # Directory with Dockerfile - docker-root: 'test/prodstub' - # use host network to clone from our gerrit - docker-build-args: '--network=host' - # Directory where go test should be run + docker-root: "sample-services/ics-producer-consumer/consumer" # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'test/prodstub/.*' + pattern: "sample-services/ics-producer-consumer/consumer/.*" build-node: ubuntu1804-docker-4c-4g + post_docker_build_script: !include-raw-escape: + - ics-producer-consumer-tests.sh # Includes verify and merge jobs jobs: - "{project-name}-gerrit-docker-jobs" @@ -153,84 +147,103 @@ - master: branch: master +# Jobs to verify / build images for testing - project: - <<: *nonrtric_jdk_common - name: nonrtric-test-mrstub - project-name: '{name}' + <<: *nonrtric_docker_common + name: nonrtric-test-kafka-procon + 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' + docker-name: "kafka-procon" # Directory with Dockerfile - docker-root: 'test/mrstub' - # use host network to clone from our gerrit - docker-build-args: '--network=host' - # Directory where go test should be run + docker-root: "test/kafka-procon" # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'test/mrstub/.*' + pattern: "test/kafka-procon/.*" build-node: ubuntu1804-docker-4c-4g # Includes verify and merge jobs jobs: - - "{project-name}-gerrit-docker-jobs" + - gerrit-docker-verify stream: - master: branch: master - project: - <<: *nonrtric_jdk_common - name: nonrtric-plt-auth-token-fetch - project-name: '{name}' + <<: *nonrtric_docker_common + name: nonrtric-test-http-https-proxy + 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' + docker-name: "nodejs-kube-proxy" # Directory with Dockerfile - 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' + docker-root: "test/http-https-proxy" # Limit build trigger to appropriate files gerrit_trigger_file_paths: - compare-type: REG_EXP - pattern: 'auth-token-fetch/.*' + pattern: "test/http-https-proxy/.*" build-node: ubuntu1804-docker-4c-4g # Includes verify and merge jobs jobs: - - "{project-name}-gerrit-docker-jobs" - - gerrit-go-verify + - gerrit-docker-verify stream: - - all: - branch: '*' - - g-release: - branch: g-release + - master: + branch: master - 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 + <<: *nonrtric_docker_common + name: nonrtric-test-cr + project-name: "{name}" + # image name + docker-name: "callback-receiver" + # Directory with Dockerfile + docker-root: "test/cr" + # 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: + - gerrit-docker-verify + stream: + - master: + branch: master + +- project: + <<: *nonrtric_docker_common + name: nonrtric-test-prodstub + project-name: "{name}" + # image name + docker-name: "producer-stub" + # Directory with Dockerfile + docker-root: "test/prodstub" + # Limit build trigger to appropriate files + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: "test/prodstub/.*" 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 + # Includes verify and merge jobs jobs: - - gerrit-sonar-prescan-script + - gerrit-docker-verify + stream: + - master: + branch: master - project: - <<: *nonrtric_jdk_common - name: nonrtric-release - # maven release requires sigul which requires centos - # container release requires docker - build-node: centos7-docker-2c-8g + <<: *nonrtric_docker_common + name: nonrtric-test-mrstub + project-name: "{name}" + # image name + docker-name: "mrstub" + # Directory with Dockerfile + docker-root: "test/mrstub" + # 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: - - '{project-name}-gerrit-release-jobs' + - gerrit-docker-verify + stream: + - master: + branch: master