Refactor: Cleanup for pre-commit
[ci-management.git] / jjb / lf-infra-releasedockerhub.yaml
index bb2c375..ee58bee 100644 (file)
@@ -1,68 +1,65 @@
 ---
 - builder:
-    name: lf-onap-releasedockerhub-macro
-    builders:
-      - shell: !include-raw-escape:
-        - ../shell/run_releasedockerhub.sh
-        ##- ../shell/run_releasedockerhub.sh "{org} {summary} {verbose} {copy}"
-
+      name: lf-onap-releasedockerhub-macro
+      builders:
+          - shell: !include-raw-escape:
+                - ../shell/run_releasedockerhub.sh
 
 - job:
-    name: lf-onap-release-docker-hub
-    build-timeout: 90
-
-    project-type: freestyle
-    node: ubuntu1804-docker-8c-8g                           ## Probably don't need this much
-    disable-job: false
-    disabled: '{disable-job}'
-
-    # Runs once a day
-    triggers:
-      - timed: '@daily'
+      name: lf-onap-release-docker-hub
+      build-timeout: 90
 
-#   Define needed parameters for lf-infra-docker-login
-    parameters:
-      - string:
-          name: DOCKER_REGISTRY
-          default: 'nexus3.onap.org'
-      - string:
-          name: REGISTRY_PORTS
-          default: '10002'
-      - string:
-          name: DOCKERHUB_REGISTRY
-          default: 'docker.io'
+      project-type: freestyle
+      node: ubuntu1804-docker-8c-8g ## Probably don't need this much
+      disable-job: false
+      disabled: "{disable-job}"
 
-#   Define needed parameters for lf-onap-releasedockerhub-macro
-      - string:
-          name: RELEASEDOCKERHUB_ORG
-          default: 'onap'
-          description: ''
-      - string:
-          name: RELEASEDOCKERHUB_REPO
-          default: ''
-          description: 'Only match repos that contains this string'
-      - string:
-          name: RELEASEDOCKERHUB_EXACT
-          default: ''
-          description: 'Repo has to exactly match RELEASEDOCKERHUB_REPO '
-      - string:
-          name: RELEASEDOCKERHUB_SUMMARY
-          default: 'Yes'
-          description: 'Provides a brief statistic summary of what it found, and what it should do. Activate with Yes'
-      - string:
-          name: RELEASEDOCKERHUB_VERBOSE
-          default: ''
-          description: 'Provides a verbose output of the operations. Activate with Yes'
-      - string:
-          name: RELEASEDOCKERHUB_COPY
-          default: 'Yes'
-          description: 'If a copy operation should be done from Nexus3 to docker hub. Activate with Yes'
+      # Runs once a day
+      triggers:
+          - timed: "@daily"
 
+      #   Define needed parameters for lf-infra-docker-login
+      parameters:
+          - string:
+                name: DOCKER_REGISTRY
+                default: "nexus3.onap.org"
+          - string:
+                name: REGISTRY_PORTS
+                default: "10002"
+          - string:
+                name: DOCKERHUB_REGISTRY
+                default: "docker.io"
 
-    builders:
-      - lf-infra-pre-build                                  ## shell/python-tools-install.sh
-      - lf-infra-docker-login:
-          global-settings-file: 'global-settings'
-          settings-file: 'onap-releasedockerhub-authz-settings'
-      - lf-onap-releasedockerhub-macro
+          #   Define needed parameters for lf-onap-releasedockerhub-macro
+          - string:
+                name: RELEASEDOCKERHUB_ORG
+                default: "onap"
+                description: ""
+          - string:
+                name: RELEASEDOCKERHUB_REPO
+                default: ""
+                description: "Only match repos that contains this string"
+          - string:
+                name: RELEASEDOCKERHUB_EXACT
+                default: ""
+                description: "Repo has to exactly match RELEASEDOCKERHUB_REPO "
+          - string:
+                name: RELEASEDOCKERHUB_SUMMARY
+                default: "Yes"
+                # yamllint disable-line rule:line-length
+                description: "Provides a brief statistic summary of what it found, and what it should do. Activate with Yes"
+          - string:
+                name: RELEASEDOCKERHUB_VERBOSE
+                default: ""
+                description: "Provides a verbose output of the operations. Activate with Yes"
+          - string:
+                name: RELEASEDOCKERHUB_COPY
+                default: "Yes"
+                description: "If a copy operation should be done from Nexus3 to docker hub. Activate with Yes"
 
+      builders:
+          - lf-infra-pre-build ## shell/python-tools-install.sh
+          - lf-infra-docker-login:
+                global-settings-file: "global-settings"
+                settings-file: "onap-releasedockerhub-authz-settings"
+          - lf-onap-releasedockerhub-macro