Activate ONAP promotion from Online Pipelines 87/2687/4
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 22 Oct 2019 07:56:35 +0000 (09:56 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Mon, 28 Oct 2019 15:11:30 +0000 (16:11 +0100)
Change-Id: Ia86b2aac6b508750769ee01548284f54dfadd789

jjb/cloud-infra/cloud-infra-periodic-onap.yaml
jjb/cloud-infra/onap-macros.yaml
jjb/cloud-infra/promote-onap.sh

index 7818e05264268bd168380353fa28e14ba8788476..ebe4796af06de4d46a74da43c9a1a1d371c3c9de 100644 (file)
       - build-timeout:
           timeout: '{build-timeout}'
       - fix-workspace-permissions
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: 'nordix-cicd-arm-credentials'
+              username: NORDIX_ARM_USERNAME
+              password: NORDIX_ARM_TOKEN
+          - username-password-separated:
+              credential-id: 'nordix-cicd-harbor-credentials'
+              username: NORDIX_HARBOR_USERNAME
+              password: NORDIX_HARBOR_PASSWORD
 
     scm:
       - git-scm:
index e2763b59e458acaa7326d4ed7658e94ab51de16d..f6ea614def64a632dfaeae62558d4d04ab763eb3 100644 (file)
           name: TEST_TYPE
           default: 'oom-healthcheck'
           description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
+      - string:
+          name: NORDIX_ARM_REPO_URL
+          default: 'https://artifactory.nordix.org/artifactory'
+          description: 'URL to Nordix Artifactory'
+      - string:
+          name: NORDIX_HARBOR_REPO_URL
+          default: 'registry.nordix.org'
+          description: 'URL to Nordix Harbor'
       - string:
           name: XTESTING_REPO_URL
           default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
index 2ac25dd2e7e9200ee300361fd9c87a4360c4f1a2..345754b09ff204a73467c35c66586fc0a486c450 100644 (file)
@@ -22,9 +22,14 @@ set -o errexit
 set -o nounset
 
 cd $WORKSPACE
-echo "Info: Promoting ONAP"
+echo "Info: Promoting ONAP. Please note that this may take about 3 hours to complete. Do not interrupt!"
 echo "-------------------------------------------------------------------------"
-echo "Warning: Not implemented!"
+cd /tmp && /bin/rm -rf $WORKSPACE
+git clone -q https://gerrit.nordix.org/infra/swconfig.git $WORKSPACE
+cd $WORKSPACE/scenarios/onap-nofeature-noha/kubespray/playbooks
+source /opt/engine/.venv/bin/activate
+ansible-playbook -i /tmp/inventory.ini promote.yml
 echo "-------------------------------------------------------------------------"
+echo "Info: Promotion done!"
 
 # vim: set ts=2 sw=2 expandtab: