# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
# is set for the change.
if [ -z "${GERRIT_TOPIC:-}" ] ; then
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
else
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
fi
echo >&2 "Pushing to Acumos"
description: 'IDF file to use for deployment'
- string:
name: HEAT_STACK_NAME
- default: "nordix-cicd-verify-onap-{environment-type}-{distro}-$GERRIT_CHANGE_NUMBER"
+ default: "nordix-cicd-verify-onap-{environment-type}-{distro}-{stream}"
description: 'Name of the created stack'
- string:
name: KEYPAIR_NAME
- default: "keypair-nordix-cicd-verify-onap-{environment-type}-{distro}-$GERRIT_CHANGE_NUMBER"
+ default: "keypair-nordix-cicd-verify-onap-{environment-type}-{distro}-{stream}"
description: 'Name of the created keypair'
- string:
name: USE_PREBUILT_DEPLOYMENT_IMAGE
wipe-workspace: true
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: false
- property-file: $WORKSPACE/change.properties
+ property-file: $WORKSPACE/release.properties
publishers:
- postbuildscript:
builders:
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
option: project
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
stream:
- 'master':
branch: 'master'
+ oom_branch: 'master'
deploy-scenario: 'onap-sdc-nofeature'
k8s-version: '1.15'
promote-stack: 'false'
- 'frankfurt':
branch: 'frankfurt'
+ oom_branch: 'master'
deploy-scenario: 'onap-sdc-nofeature'
k8s-version: '1.15'
promote-stack: 'true'
- 'elalto':
branch: 'elalto'
+ oom_branch: 'master'
deploy-scenario: 'onap-sdc-nofeature'
k8s-version: '1.15'
promote-stack: 'true'
name: STACK_VERSION
default: '{branch}'
description: 'Stack version of engine to package, deploy, test, release'
+ - string:
+ name: NORDIX_OOM_VERSION
+ default: '{oom_branch}'
+ description: 'Stack version of oom to package, deploy, test, release'
- string:
name: PROMOTE_STACK
default: '{promote-stack}'
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- username-password-separated:
credential-id: 'nordix-cicd-arm-credentials'
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
wrappers:
- build-timeout:
- timeout: 180
+ timeout: 300
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
- openstack:
single-use: True
- build-timeout:
- timeout: 240
+ timeout: 300
- credentials-binding:
- username-password-separated:
credential-id: 'nordix-cicd-arm-credentials'
echo "Info : Generating k8s properties"
-# determine the project
-# this scripts is used by all engine repos so we need to determine what this change is for
-export ENGINE_COMPONENT="${GERRIT_PROJECT//*\//}"
-
echo "Info : Setting STACK_TYPE and STACK_VERSION"
export STACK_TYPE="kubernetes"
echo "NORDIX_KUBESPRAY_VERSION=$NORDIX_KUBESPRAY_VERSION" >> $RELEASE_METADATA_FILE
;;
onap)
- echo "NORDIX_HEAT_VERSION=$NORDIX_HEAT_VERSION" >> $RELEASE_METADATA_FILE
echo "NORDIX_OOM_VERSION=$NORDIX_OOM_VERSION" >> $RELEASE_METADATA_FILE
;;
openstack)
# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
# is set for the change.
if [ -z "${GERRIT_TOPIC:-}" ] ; then
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
else
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
fi
echo >&2 "Pushing to FDio Gerrit"
- master:
branch: '{stream}'
jdk-version: java-11
- - cps-poc:
+ - cps_poc:
branch: '{stream}'
jdk-version: java-11
jobs:
# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
# is set for the change.
if [ -z "${GERRIT_TOPIC:-}" ] ; then
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
else
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
fi
echo >&2 "Pushing to ONAP"
# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
# is set for the change.
if [ -z "${GERRIT_TOPIC:-}" ] ; then
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
else
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
fi
echo >&2 "Pushing to OpenDaylight"
# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
# is set for the change.
if [ -z "${GERRIT_TOPIC:-}" ] ; then
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
else
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
fi
echo >&2 "Pushing to OpenDev"
# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
# is set for the change.
if [ -z "${GERRIT_TOPIC:-}" ] ; then
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
else
- refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+ refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
fi
echo >&2 "Pushing to ORANSC Gerrit"