Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 1 | --- |
| 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 Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 23 | # docker-name: onap/org.onap.dcaegen2.platform.something.name1 |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 24 | # - subproject-name2: |
| 25 | # src-dir: subproject-dir2 |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 26 | # docker-name: onap/org.onap.dcaegen2.platform.something.name2 |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 27 | # - subproject-name3: |
| 28 | # src-dir: subproject-dir3 |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 29 | # docker-name: onap/org.onap.dcaegen2.platform.something.name3 |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 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}-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 Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 45 | gerrit_trigger_file_paths: |
| 46 | - compare-type: REG_EXP |
| 47 | pattern: '{src-dir}/.*' |
| 48 | jobs: |
vv770d | c540be9 | 2022-08-02 17:13:42 +0000 | [diff] [blame] | 49 | - gerrit-tox-verify: |
| 50 | pre-build-script: !include-raw-escape: ../../shell/onap-gerrit-review-wrapper.sh |
| 51 | stream: all |
| 52 | branch: '*' |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 53 | - gerrit-docker-verify |
Andrew Gauld | af82c42 | 2020-03-25 12:35:04 +0000 | [diff] [blame] | 54 | - gerrit-docker-merge: |
| 55 | post_docker_build_script: | |
Andrew Gauld | 6a54374 | 2020-03-25 19:42:09 +0000 | [diff] [blame] | 56 | #!/bin/bash |
Andrew Gauld | af82c42 | 2020-03-25 12:35:04 +0000 | [diff] [blame] | 57 | set -uex -o pipefail |
| 58 | DOCKER_IMAGE_TAG2=${{DOCKER_IMAGE_TAG%-*}} |
| 59 | DNAME={container-snapshot-registry}/{docker-name} |
| 60 | docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:$DOCKER_IMAGE_TAG2 |
| 61 | docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:latest |
| 62 | docker push $DNAME:$DOCKER_IMAGE_TAG2 |
| 63 | docker push $DNAME:latest |
| 64 | |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 65 | - gerrit-maven-clm: |
| 66 | mvn-params: '-f {src-dir}' |
| 67 | stream: master |
| 68 | branch: master |
| 69 | - gerrit-tox-sonar: |
| 70 | # workaround because gerrit-tox-sonar doesn't support mvn-params/opts |
| 71 | sonar-mvn-goal: '-f {src-dir} sonar:sonar' |
| 72 | cron: '@daily' |
| 73 | stream: master |
| 74 | branch: master |
Jessica Wagantall | 26be9a5 | 2020-02-27 10:21:35 -0800 | [diff] [blame] | 75 | sonarcloud: true |
| 76 | sonarcloud-project-organization: '{sonarcloud_project_organization}' |
Jessica Wagantall | 26be9a5 | 2020-02-27 10:21:35 -0800 | [diff] [blame] | 77 | sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}' |
| 78 | |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 79 | |
| 80 | - project: |
| 81 | name: dcaegen2-platform-docker-python-subprojects |
| 82 | project: dcaegen2/platform |
| 83 | mvn-settings: dcaegen2-platform-settings |
Vijay Venkatesh Kumar | 4c15211 | 2020-03-27 00:22:31 +0000 | [diff] [blame] | 84 | build-node: ubuntu1804-docker-8c-8g |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 85 | project-name: |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 86 | - dcaegen2-platform-adapter-acumos: |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 87 | src-dir: adapter/acumos |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 88 | docker-name: onap/org.onap.dcaegen2.platform.adapter.acumos |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 89 | - dcaegen2-platform-mod-distributorapi: |
| 90 | src-dir: mod/distributorapi |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 91 | docker-name: onap/org.onap.dcaegen2.platform.mod.distributorapi |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 92 | - dcaegen2-platform-mod-onboardingapi: |
| 93 | src-dir: mod/onboardingapi |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 94 | docker-name: onap/org.onap.dcaegen2.platform.mod.onboardingapi |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 95 | stream: |
| 96 | - master: |
| 97 | branch: master |
Vijay Venkatesh Kumar | 5b1dbab | 2022-10-11 15:30:48 +0000 | [diff] [blame] | 98 | - kohn: |
| 99 | branch: kohn |
vv770d | b0363f6 | 2021-03-09 15:39:34 +0000 | [diff] [blame] | 100 | |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 101 | views: |
| 102 | - project-view: |
Andrew Gauld | 3eebf7a | 2020-02-20 18:27:22 +0000 | [diff] [blame] | 103 | project-name: dcaegen2-platform-adapter |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 104 | - project-view: |
| 105 | project-name: dcaegen2-platform-mod |
Andrew Gauld | 9c2bfc0 | 2020-01-08 17:32:06 +0000 | [diff] [blame] | 106 | jobs: |
| 107 | - dcaegen2-docker-python-jobs |