X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Faiml-fw-awmf-tm%2Faiml-fw-awmf-tm.yaml;h=8c604e73bf7d0a88c2781e2442c42beffd2d6a5e;hb=4bfd3d5dbc03f77eb5aed2ab9ca3843bc3732841;hp=8a93a48cb7b5e7e7b336296fcfe5cf826e5ef9ce;hpb=11bd95a78bae042fec709463da262ac382c58fe5;p=ci-management.git diff --git a/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml b/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml index 8a93a48c..8c604e73 100644 --- a/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml +++ b/jjb/aiml-fw-awmf-tm/aiml-fw-awmf-tm.yaml @@ -12,4 +12,85 @@ build-node: centos7-builder-1c-1g branch: master jobs: - - gerrit-info-yaml-verify \ No newline at end of file + - gerrit-info-yaml-verify + +- _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 + # jenkins job name prefix + project-name: aiml-fw-awmf-tm + # maven settings file has docker credentials + mvn-settings: aiml-fw-awmf-tm-settings + +- project: + <<: *aiml_tm_docker_common + name: aiml-fw-awmf-tm-release + # maven release requires sigul which requires centos + # container release requires docker + build-node: centos7-docker-2c-8g + jobs: + - "{project-name}-gerrit-release-jobs" + +- project: + <<: *aiml_tm_docker_common + name: aiml-fw-awmf-tm-docker + project-name: "{name}" + # image name + docker-name: "o-ran-sc/{name}" + # Dockerfile is in a subdir + docker-root: "." + # source of docker tag + # dockerfile is in subdir of docker root + docker-build-args: "--network=host" + container-tag-method: yaml-file + build-node: ubuntu1804-docker-4c-4g + jobs: + - "{project-name}-gerrit-docker-jobs" + stream: + - master: + branch: master +- project: + <<: *aiml_tm_docker_common + name: aiml-fw-awmf-tm-tox-verify + # the install script assumes an ubuntu image + build-node: ubuntu1804-builder-2c-2g + python-version: python3 + # skip docs on verify + tox-envs: code + tox-dir: "." + # do not trigger on changes in docs, releases + gerrit_trigger_file_paths: + - compare-type: REG_EXP + pattern: "trainingmgr/.*" + stream: + # run verify on all branches + # the ANT pattern is **/{branch}, we are exploiting that. + - all: + branch: master + jobs: + - gerrit-tox-verify + +- project: + <<: *aiml_tm_docker_common + name: aiml-fw-awmf-tm-sonarqube + python-version: python3 + 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/.*" + 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 + jobs: + - gerrit-tox-sonarqube