blob: 69eb137b6bd7e8ebbcbaaa4f54552c2bce5a75a6 [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
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000023 # docker-name: onap/org.onap.dcaegen2.platform.something.name1
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000024 # - subproject-name2:
25 # src-dir: subproject-dir2
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000026 # docker-name: onap/org.onap.dcaegen2.platform.something.name2
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000027 # - subproject-name3:
28 # src-dir: subproject-dir3
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000029 # docker-name: onap/org.onap.dcaegen2.platform.something.name3
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000030 # stream:
31 # - master:
32 # branch: master
33 # - release1:
34 # branch: release1.0
35 # jobs:
36 # - dcaegen2-docker-python-jobs
37
38 name: '{project-name}-dcaegen2-docker-python-jobs'
39 id: dcaegen2-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 docker-root: '{src-dir}'
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000045 gerrit_trigger_file_paths:
46 - compare-type: REG_EXP
47 pattern: '{src-dir}/.*'
48 jobs:
49 - gerrit-tox-verify:
50 stream: all
51 branch: '*'
52 - gerrit-docker-verify
Andrew Gauldaf82c422020-03-25 12:35:04 +000053 - gerrit-docker-merge:
54 post_docker_build_script: |
Andrew Gauld6a543742020-03-25 19:42:09 +000055 #!/bin/bash
Andrew Gauldaf82c422020-03-25 12:35:04 +000056 set -uex -o pipefail
57 DOCKER_IMAGE_TAG2=${{DOCKER_IMAGE_TAG%-*}}
58 DNAME={container-snapshot-registry}/{docker-name}
59 docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:$DOCKER_IMAGE_TAG2
60 docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:latest
61 docker push $DNAME:$DOCKER_IMAGE_TAG2
62 docker push $DNAME:latest
63
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000064 - gerrit-maven-clm:
65 mvn-params: '-f {src-dir}'
66 stream: master
67 branch: master
68 - gerrit-tox-sonar:
69 # workaround because gerrit-tox-sonar doesn't support mvn-params/opts
70 sonar-mvn-goal: '-f {src-dir} sonar:sonar'
71 cron: '@daily'
72 stream: master
73 branch: master
Jessica Wagantall26be9a52020-02-27 10:21:35 -080074 sonarcloud: true
75 sonarcloud-project-organization: '{sonarcloud_project_organization}'
76 sonarcloud-api-token: '{sonarcloud_api_token}'
77 sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
78
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000079
80- project:
81 name: dcaegen2-platform-docker-python-subprojects
82 project: dcaegen2/platform
83 mvn-settings: dcaegen2-platform-settings
Vijay Venkatesh Kumar4c152112020-03-27 00:22:31 +000084 build-node: ubuntu1804-docker-8c-8g
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000085 project-name:
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000086 - dcaegen2-platform-adapter-acumos:
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000087 src-dir: adapter/acumos
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000088 docker-name: onap/org.onap.dcaegen2.platform.adapter.acumos
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000089 - dcaegen2-platform-mod-distributorapi:
90 src-dir: mod/distributorapi
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000091 docker-name: onap/org.onap.dcaegen2.platform.mod.distributorapi
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000092 - dcaegen2-platform-mod-onboardingapi:
93 src-dir: mod/onboardingapi
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000094 docker-name: onap/org.onap.dcaegen2.platform.mod.onboardingapi
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000095 - dcaegen2-platform-oti-event-handler:
96 src-dir: oti/event-handler
Andrew Gauld3eebf7a2020-02-20 18:27:22 +000097 docker-name: onap/org.onap.dcaegen2.platform.oti.event-handler
Andrew Gauld9c2bfc02020-01-08 17:32:06 +000098 stream:
99 - master:
100 branch: master
vv770d15eb49f2020-10-01 20:25:48 +0000101 - guilin:
102 branch: guilin
vv770db0363f62021-03-09 15:39:34 +0000103 - honolulu:
104 branch: honolulu
105
Andrew Gauld9c2bfc02020-01-08 17:32:06 +0000106 views:
107 - project-view:
Andrew Gauld3eebf7a2020-02-20 18:27:22 +0000108 project-name: dcaegen2-platform-adapter
Andrew Gauld9c2bfc02020-01-08 17:32:06 +0000109 - project-view:
110 project-name: dcaegen2-platform-mod
111 - project-view:
112 project-name: dcaegen2-platform-oti
113 jobs:
114 - dcaegen2-docker-python-jobs