Refactor: Cleanup for pre-commit
[ci-management.git] / jjb / lf-infra-releasedockerhub.yaml
1 ---
2 - builder:
3       name: lf-onap-releasedockerhub-macro
4       builders:
5           - shell: !include-raw-escape:
6                 - ../shell/run_releasedockerhub.sh
7
8 - job:
9       name: lf-onap-release-docker-hub
10       build-timeout: 90
11
12       project-type: freestyle
13       node: ubuntu1804-docker-8c-8g ## Probably don't need this much
14       disable-job: false
15       disabled: "{disable-job}"
16
17       # Runs once a day
18       triggers:
19           - timed: "@daily"
20
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"
32
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"
59
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