Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 1 | --- |
| 2 | - builder: |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 3 | name: lf-onap-releasedockerhub-macro |
| 4 | builders: |
| 5 | - shell: !include-raw-escape: |
| 6 | - ../shell/run_releasedockerhub.sh |
Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 7 | |
| 8 | - job: |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 9 | name: lf-onap-release-docker-hub |
| 10 | build-timeout: 90 |
Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 11 | |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 12 | project-type: freestyle |
| 13 | node: ubuntu1804-docker-8c-8g ## Probably don't need this much |
| 14 | disable-job: false |
| 15 | disabled: "{disable-job}" |
Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 16 | |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 17 | # Runs once a day |
| 18 | triggers: |
| 19 | - timed: "@daily" |
Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 20 | |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 21 | # Define needed parameters for lf-infra-docker-login |
| 22 | parameters: |
| 23 | - string: |
| 24 | name: DOCKER_REGISTRY |
| 25 | default: "nexus3.onap.org" |
| 26 | - string: |
| 27 | name: REGISTRY_PORTS |
| 28 | default: "10002" |
| 29 | - string: |
| 30 | name: DOCKERHUB_REGISTRY |
| 31 | default: "docker.io" |
Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 32 | |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 33 | # Define needed parameters for lf-onap-releasedockerhub-macro |
| 34 | - string: |
| 35 | name: RELEASEDOCKERHUB_ORG |
| 36 | default: "onap" |
| 37 | description: "" |
| 38 | - string: |
| 39 | name: RELEASEDOCKERHUB_REPO |
| 40 | default: "" |
| 41 | description: "Only match repos that contains this string" |
| 42 | - string: |
| 43 | name: RELEASEDOCKERHUB_EXACT |
| 44 | default: "" |
| 45 | description: "Repo has to exactly match RELEASEDOCKERHUB_REPO " |
| 46 | - string: |
| 47 | name: RELEASEDOCKERHUB_SUMMARY |
| 48 | default: "Yes" |
| 49 | # yamllint disable-line rule:line-length |
| 50 | description: "Provides a brief statistic summary of what it found, and what it should do. Activate with Yes" |
| 51 | - string: |
| 52 | name: RELEASEDOCKERHUB_VERBOSE |
| 53 | default: "" |
| 54 | description: "Provides a verbose output of the operations. Activate with Yes" |
| 55 | - string: |
| 56 | name: RELEASEDOCKERHUB_COPY |
| 57 | default: "Yes" |
| 58 | description: "If a copy operation should be done from Nexus3 to docker hub. Activate with Yes" |
Bengt Thuree | 8957be5 | 2019-10-30 17:12:26 +1100 | [diff] [blame] | 59 | |
Andrew Grimberg | 86af106 | 2023-05-03 09:47:36 -0700 | [diff] [blame] | 60 | builders: |
| 61 | - lf-infra-pre-build ## shell/python-tools-install.sh |
| 62 | - lf-infra-docker-login: |
| 63 | global-settings-file: "global-settings" |
| 64 | settings-file: "onap-releasedockerhub-authz-settings" |
| 65 | - lf-onap-releasedockerhub-macro |