summaryrefslogtreecommitdiffstats
path: root/jjb/dcaegen2/dcaegen2-platform-docker-python-subprojects.yaml
blob: 685582e51ecbb1f5bbe772d3b85e7de5a4add0c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
---
- job-group:
    # This job group contains all the jobs that should be deployed for
    # a subproject of dcaegen2/platform that builds a Docker image from
    # Python code.
    #
    # Required parameters:
    #  build-node: The node to run build on.
    #  mvn-settings: Maven settings.xml file containing credentials to use.
    #  project-name: The job name prefix
    #  src-dir: The subdirectory of the repository containing subproject code
    #  stream: The stream to build
    #  branch: The branch to build
    #
    #  Note: Multiple subprojects can be built with a single JJB project
    #  by specifying the value of project-name as a list.
    #  Similarly, multiple streams can be built with a single JJB project
    #  by specifying the value of the stream as a list.
    #  For example:
    #    project-name:
    #      - subproject-name1:
    #          src-dir: subproject-dir1
    #          docker-name: onap/org.onap.dcaegen2.platform.something.name1
    #      - subproject-name2:
    #          src-dir: subproject-dir2
    #          docker-name: onap/org.onap.dcaegen2.platform.something.name2
    #      - subproject-name3:
    #          src-dir: subproject-dir3
    #          docker-name: onap/org.onap.dcaegen2.platform.something.name3
    #    stream:
    #      - master:
    #          branch: master
    #      - release1:
    #          branch: release1.0
    #    jobs:
    #      - dcaegen2-docker-python-jobs

    name: '{project-name}-dcaegen2-docker-python-jobs'
    id: dcaegen2-docker-python-jobs
    container-tag-method: latest
    docker-get-container-tag-script: ../../shell/docker-ts-tag-override.sh
    nexus-iq-namespace: 'onap-'
    tox-dir: '{src-dir}'
    docker-root: '{src-dir}'
    gerrit_trigger_file_paths:
      - compare-type: REG_EXP
        pattern: '{src-dir}/.*'
    jobs:
      - gerrit-tox-verify:
          stream: all
          branch: '*'
      - gerrit-docker-verify
      - gerrit-docker-merge
      - gerrit-maven-clm:
          mvn-params: '-f {src-dir}'
          stream: master
          branch: master
      - gerrit-tox-sonar:
          # workaround because gerrit-tox-sonar doesn't support mvn-params/opts
          sonar-mvn-goal: '-f {src-dir} sonar:sonar'
          cron: '@daily'
          stream: master
          branch: master
          sonarcloud: true
          sonarcloud-project-organization: '{sonarcloud_project_organization}'
          sonarcloud-api-token: '{sonarcloud_api_token}'
          sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'


- project:
    name: dcaegen2-platform-docker-python-subprojects
    project: dcaegen2/platform
    mvn-settings: dcaegen2-platform-settings
    build-node: ubuntu1604-docker-8c-8g
    project-name:
      - dcaegen2-platform-adapter-acumos:
          src-dir: adapter/acumos
          docker-name: onap/org.onap.dcaegen2.platform.adapter.acumos
      - dcaegen2-platform-mod-distributorapi:
          src-dir: mod/distributorapi
          docker-name: onap/org.onap.dcaegen2.platform.mod.distributorapi
      - dcaegen2-platform-mod-onboardingapi:
          src-dir: mod/onboardingapi
          docker-name: onap/org.onap.dcaegen2.platform.mod.onboardingapi
      - dcaegen2-platform-oti-event-handler:
          src-dir: oti/event-handler
          docker-name: onap/org.onap.dcaegen2.platform.oti.event-handler
    stream:
      - master:
          branch: master
    views:
      - project-view:
          project-name: dcaegen2-platform-adapter
      - project-view:
          project-name: dcaegen2-platform-mod
      - project-view:
          project-name: dcaegen2-platform-oti
    jobs:
      - dcaegen2-docker-python-jobs