- Added release job for qp-aimlfw
[ci-management.git] / jjb / ric-app-qp-aimlfw / ric-app-qp-aimlfw.yaml
1 ---
2 - project:
3     name: ric-app-qp-aimlfw-project-view
4     project-name: ric-app-qp-aimlfw
5     views:
6       - project-view
7
8 - project:
9     name: ric-app-qp-aimlfw-info
10     project: ric-app/qp-aimlfw
11     project-name: ric-app-qp-aimlfw
12     build-node: centos7-builder-1c-1g
13     branch: master
14     jobs: 
15       - gerrit-info-yaml-verify
16
17 - qp_aimlfw_docker_common: &qp_aimlfw_docker_common
18     # values apply to all training manager projects
19     name: ric-app-qp-aimlfw-docker-common
20     # git repo
21     project: ric-app/qp-aimlfw
22     # jenkins job name prefix
23     project-name: ric-app-qp-aimlfw
24     # maven settings file has docker credentials
25     mvn-settings: ric-app-qp-aimlfw-settings
26
27 - project:
28     <<: *qp_aimlfw_docker_common
29     name: ric-app-qp-aimlfw
30     project-name: '{name}'
31     # image name
32     docker-name: 'o-ran-sc/{name}'
33     # Dockerfile is in a subdir
34     docker-root: '.'
35     # source of docker tag
36     # dockerfile is in subdir of docker root
37     docker-build-args: '--network=host'
38     container-tag-method: yaml-file
39     build-node: ubuntu1804-docker-4c-4g
40     jobs:
41       - "{project-name}-gerrit-docker-jobs"
42     stream:
43       - master:
44           branch: master
45
46 - project:
47     <<: *qp_aimlfw_docker_common
48     name: ric-app-qp-aimlfw-sonarqube
49     # the install script assumes an ubuntu image
50     build-node: ubuntu1804-builder-4c-4g
51     sonar-prescan-script: !include-raw-escape: prescan-ric-app-qp-aimlfw-ubuntu.sh
52     sonar-project-file: ""
53     sonar-properties: |
54         sonar.login={sonarcloud_api_token}
55         sonar.projectKey={sonarcloud_project_organization}_{project-name}
56         sonar.projectName={project-name}
57         sonar.organization={sonarcloud_project_organization}
58         sonar.build.sourceencoding=UTF-8
59         sonar.sources=.
60         sonar.language=go
61         sonar.go.coverage.reportPaths=**/cover.out
62         sonar.inclusions=**/*.go
63         sonar.exclusions=**/*_test.go
64     jobs:
65       - gerrit-sonar-prescan-script
66
67 - project:
68     <<: *qp_aimlfw_docker_common
69     name: ric-app-qp-aimlfw-release
70     build-node: centos7-docker-2c-8g
71     jobs:
72       - '{project-name}-gerrit-release-jobs'
73