blob: 911435c1a0fed08ce0ab62124a6047d4391d798c [file] [log] [blame]
Andrew Gauld9c2bfc02020-01-08 17:32:06 +00001---
2- job-group:
3 # This job group contains all the jobs that should be deployed for
4 # a subproject of dcaegen2/platform 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 # - subproject-name2:
24 # src-dir: subproject-dir2
25 # - subproject-name3:
26 # src-dir: subproject-dir3
27 # stream:
28 # - master:
29 # branch: master
30 # - release1:
31 # branch: release1.0
32 # jobs:
33 # - dcaegen2-docker-python-jobs
34
35 name: '{project-name}-dcaegen2-docker-python-jobs'
36 id: dcaegen2-docker-python-jobs
37 container-tag-method: latest
38 docker-get-container-tag-script: ../../shell/docker-ts-tag-override.sh
39 nexus-iq-namespace: 'onap-'
40 tox-dir: '{src-dir}'
41 docker-root: '{src-dir}'
42 docker-name: 'onap/{project-name}'
43 gerrit_trigger_file_paths:
44 - compare-type: REG_EXP
45 pattern: '{src-dir}/.*'
46 jobs:
47 - gerrit-tox-verify:
48 stream: all
49 branch: '*'
50 - gerrit-docker-verify
51 - gerrit-docker-merge
52 - gerrit-maven-clm:
53 mvn-params: '-f {src-dir}'
54 stream: master
55 branch: master
56 - gerrit-tox-sonar:
57 # workaround because gerrit-tox-sonar doesn't support mvn-params/opts
58 sonar-mvn-goal: '-f {src-dir} sonar:sonar'
59 cron: '@daily'
60 stream: master
61 branch: master
62 - gerrit-release-verify
63 - gerrit-release-merge
64
65- project:
66 name: dcaegen2-platform-docker-python-subprojects
67 project: dcaegen2/platform
68 mvn-settings: dcaegen2-platform-settings
69 build-node: ubuntu1604-docker-8c-8g
70 project-name:
71 - dcaegen2-platform-aoadapter:
72 src-dir: adapter/acumos
73 - dcaegen2-platform-mod-distributorapi:
74 src-dir: mod/distributorapi
75 - dcaegen2-platform-mod-onboardingapi:
76 src-dir: mod/onboardingapi
77 - dcaegen2-platform-oti-event-handler:
78 src-dir: oti/event-handler
79 stream:
80 - master:
81 branch: master
82 views:
83 - project-view:
84 project-name: dcaegen2-platform-aoadapter
85 - project-view:
86 project-name: dcaegen2-platform-mod
87 - project-view:
88 project-name: dcaegen2-platform-oti
89 jobs:
90 - dcaegen2-docker-python-jobs