summaryrefslogtreecommitdiffstats
path: root/jjb/lf-infra-releasedockerhub.yaml
diff options
context:
space:
mode:
authorBengt Thuree <bthuree@linuxfoundation.org>2019-10-30 17:12:26 +1100
committerBengt Thuree <bthuree@linuxfoundation.org>2020-01-06 09:31:26 +0100
commit8957be512fa94e58f4e1942726025f5daa979c90 (patch)
treeb1231ce1265a9db7a51c2bc5c66289bb01297a45 /jjb/lf-infra-releasedockerhub.yaml
parent570958fb0e4ffed452258ac22651c03e3edd20c0 (diff)
Add releasedockerhub command to cron
Executing releasedockerhub command in lftools every week, to ensure that not to many docker images needs to be copied every time, as well as to keep cost down. Signed-off-by: Bengt Thuree <bthuree@linuxfoundation.org> Change-Id: I2ccdc236910960b3af3c1f6f1f0c5db062538c9c Issue-ID: CIMAN-1
Diffstat (limited to 'jjb/lf-infra-releasedockerhub.yaml')
-rw-r--r--jjb/lf-infra-releasedockerhub.yaml68
1 files changed, 68 insertions, 0 deletions
diff --git a/jjb/lf-infra-releasedockerhub.yaml b/jjb/lf-infra-releasedockerhub.yaml
new file mode 100644
index 000000000..ca2ea85b0
--- /dev/null
+++ b/jjb/lf-infra-releasedockerhub.yaml
@@ -0,0 +1,68 @@
+---
+- builder:
+ name: lf-onap-releasedockerhub-macro
+ builders:
+ - shell: !include-raw-escape:
+ - ../shell/run_releasedockerhub.sh
+ ##- ../shell/run_releasedockerhub.sh "{org} {summary} {verbose} {copy}"
+
+
+- job:
+ name: lf-onap-release-docker-hub
+ build-timeout: 90
+
+ project-type: freestyle
+ node: ubuntu1604-docker-8c-8g ## Probably don't need this much
+ disable-job: false
+ disabled: '{disable-job}'
+
+ # Runs once a week
+ triggers:
+ - timed: '@weekly'
+
+# 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'
+
+# 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'
+
+
+ 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:
+