efiacor | 786a07b | 2020-02-27 20:22: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/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: |
vv770d | 3eb6e2f | 2022-06-06 17:26:37 +0000 | [diff] [blame] | 56 | - '{project-name}-python-jobs': |
| 57 | pre-build-script: !include-raw-escape: ../../shell/onap-gerrit-review-wrapper.sh |
| 58 | stream: all |
| 59 | branch: '*' |
efiacor | 786a07b | 2020-02-27 20:22:06 +0000 | [diff] [blame] | 60 | - gerrit-docker-verify |
efiacor | 80fc2e2 | 2020-03-26 09:44:32 +0000 | [diff] [blame] | 61 | - gerrit-docker-merge: |
| 62 | post_docker_build_script: | |
| 63 | #!/bin/bash |
| 64 | set -uex -o pipefail |
| 65 | DOCKER_IMAGE_TAG2=${{DOCKER_IMAGE_TAG%-*}} |
| 66 | DNAME={container-snapshot-registry}/{docker-name} |
| 67 | docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:$DOCKER_IMAGE_TAG2 |
| 68 | docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:latest |
| 69 | docker push $DNAME:$DOCKER_IMAGE_TAG2 |
| 70 | docker push $DNAME:latest |
efiacor | 2f6ada1 | 2021-05-17 15:06:52 +0100 | [diff] [blame] | 71 | stream: master |
| 72 | branch: master |
| 73 | - gerrit-docker-merge-maintainance: |
| 74 | post_docker_build_script: | |
| 75 | #!/bin/bash |
| 76 | set -uex -o pipefail |
| 77 | DOCKER_IMAGE_TAG2=${{DOCKER_IMAGE_TAG%-*}} |
| 78 | DNAME={container-snapshot-registry}/{docker-name} |
| 79 | docker tag $DNAME:$DOCKER_IMAGE_TAG $DNAME:$DOCKER_IMAGE_TAG2 |
| 80 | docker push $DNAME:$DOCKER_IMAGE_TAG2 |
vv770d | 2ba7af0 | 2022-02-14 16:45:56 +0000 | [diff] [blame] | 81 | stream: istanbul |
| 82 | branch: istanbul |
efiacor | 2f6ada1 | 2021-05-17 15:06:52 +0100 | [diff] [blame] | 83 | cron: '' |
efiacor | 786a07b | 2020-02-27 20:22:06 +0000 | [diff] [blame] | 84 | - gerrit-whitesource-scan: |
| 85 | build-timeout: 120 |
| 86 | submodule-timeout: 30 |
| 87 | java-opts: '-Xmx2048m' |
| 88 | mvn-pom: '{src-dir}/pom.xml' |
| 89 | - gerrit-tox-sonar: |
| 90 | # workaround because gerrit-tox-sonar doesn't support mvn-params/opts |
| 91 | sonar-mvn-goal: '-f {src-dir}/pom.xml sonar:sonar' |
| 92 | cron: '@daily' |
| 93 | stream: master |
| 94 | branch: master |
| 95 | |
| 96 | - project: |
| 97 | name: dcaegen2-services-docker-python-subprojects |
| 98 | project: dcaegen2/services |
| 99 | mvn-settings: dcaegen2-services-settings |
efiacor | 2b95304 | 2020-03-02 17:38:30 +0000 | [diff] [blame] | 100 | build-node: ubuntu1804-docker-8c-8g |
efiacor | 786a07b | 2020-02-27 20:22:06 +0000 | [diff] [blame] | 101 | project-name: |
| 102 | - dcaegen2-services-pmsh: |
| 103 | src-dir: components/pm-subscription-handler |
| 104 | docker-name: onap/org.onap.dcaegen2.services.pmsh |
vv770d | 2ba7af0 | 2022-02-14 16:45:56 +0000 | [diff] [blame] | 105 | - dcaegen2-services-ml-prediction-ms: |
| 106 | src-dir: components/ml-prediction-ms |
| 107 | docker-name: onap/org.onap.dcaegen2.services.ml-prediction-ms |
efiacor | 786a07b | 2020-02-27 20:22:06 +0000 | [diff] [blame] | 108 | stream: |
| 109 | - master: |
| 110 | branch: master |
vv770d | e85dd3f | 2021-09-28 20:41:48 +0000 | [diff] [blame] | 111 | - istanbul: |
| 112 | branch: istanbul |
vv770d | c1e11d2 | 2022-04-25 18:21:38 +0000 | [diff] [blame] | 113 | - jakarta: |
| 114 | branch: jakarta |
efiacor | 786a07b | 2020-02-27 20:22:06 +0000 | [diff] [blame] | 115 | views: |
| 116 | - project-view: |
| 117 | project-name: dcaegen2-services-pmsh |
| 118 | jobs: |
| 119 | - dcaegen2-services-docker-python-jobs |