- 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:
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'
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: