blob: be95546f1684a33646a05b96f775592c44e5b7df [file] [log] [blame]
efiacor786a07b2020-02-27 20:22:06 +00001---
2- job-group:
3 # This job group contains all the jobs that should be deployed for
4 # a subproject of dcaegen2/services that builds a Docker image from
5 # Python code.
6 #
7 # Required parameters:
8 # build-node: The node to run build on.
9 # mvn-settings: Maven settings.xml file containing credentials to use.
10 # project-name: The job name prefix
11 # src-dir: The subdirectory of the repository containing subproject code
12 # stream: The stream to build
13 # branch: The branch to build
14 #
15 # Note: Multiple subprojects can be built with a single JJB project
16 # by specifying the value of project-name as a list.
17 # Similarly, multiple streams can be built with a single JJB project
18 # by specifying the value of the stream as a list.
19 # For example:
20 # project-name:
21 # - subproject-name1:
22 # src-dir: subproject-dir1
23 # docker-name: onap/org.onap.dcaegen2.services.something.name1
24 # - subproject-name2:
25 # src-dir: subproject-dir2
26 # docker-name: onap/org.onap.dcaegen2.services.something.name2
27 # - subproject-name3:
28 # src-dir: subproject-dir3
29 # docker-name: onap/org.onap.dcaegen2.services.something.name3
30 # stream:
31 # - master:
32 # branch: master
33 # - release1:
34 # branch: release1.0
35 # jobs:
36 # - dcaegen2-docker-python-jobs
37
38 name: '{project-name}-docker-python-jobs'
39 id: dcaegen2-services-docker-python-jobs
40 container-tag-method: latest
41 docker-get-container-tag-script: '../../shell/docker-ts-tag-override.sh'
42 nexus-iq-namespace: 'onap-'
43 tox-dir: '{src-dir}'
44 tox-envs: 'py3'
45 sonarcloud: true
46 sonarcloud-project-organization: '{sonarcloud_project_organization}'
47 sonarcloud-api-token: '{sonarcloud_api_token}'
48 sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
49 python-version: python3
50 wss-product-name: '{project-name}'
51 docker-root: '{src-dir}'
52 gerrit_trigger_file_paths:
53 - compare-type: REG_EXP
54 pattern: '{src-dir}/.*'
55 jobs:
56 - gerrit-tox-verify:
57 stream: master
58 branch: 'master'
59 - gerrit-docker-verify
60 - gerrit-docker-merge
61 - gerrit-whitesource-scan:
62 build-timeout: 120
63 submodule-timeout: 30
64 java-opts: '-Xmx2048m'
65 mvn-pom: '{src-dir}/pom.xml'
66 - gerrit-tox-sonar:
67 # workaround because gerrit-tox-sonar doesn't support mvn-params/opts
68 sonar-mvn-goal: '-f {src-dir}/pom.xml sonar:sonar'
69 cron: '@daily'
70 stream: master
71 branch: master
72
73- project:
74 name: dcaegen2-services-docker-python-subprojects
75 project: dcaegen2/services
76 mvn-settings: dcaegen2-services-settings
efiacor2b953042020-03-02 17:38:30 +000077 build-node: ubuntu1804-docker-8c-8g
efiacor786a07b2020-02-27 20:22:06 +000078 project-name:
79 - dcaegen2-services-pmsh:
80 src-dir: components/pm-subscription-handler
81 docker-name: onap/org.onap.dcaegen2.services.pmsh
82 stream:
83 - master:
84 branch: master
85 views:
86 - project-view:
87 project-name: dcaegen2-services-pmsh
88 jobs:
89 - dcaegen2-services-docker-python-jobs