master: &master
stream: master
branch: '{stream}'
- disabled: false
+ disabled: true
gs-pathname: ''
fraser: &fraser
stream: fraser
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
- disabled: false
+ disabled: true
# -------------------------------
# POD, INSTALLER, AND BRANCH MAPPING
- master:
branch: '{stream}'
gs-pathname: ''
- disabled: false
+ disabled: true
- fraser:
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
- disabled: false
+ disabled: true
phase:
- 'build':
- master:
branch: '{stream}'
gs-pathname: ''
- disabled: false
+ disabled: true
- fraser:
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
- disabled: false
+ disabled: true
#####################################
# patch merge phases
#####################################
- master:
branch: '{stream}'
gs-pathname: ''
- disabled: false
+ disabled: true
- fraser:
branch: 'stable/{stream}'
gs-pathname: '/{stream}'
- disabled: false
+ disabled: true
#####################################
# patch verification phases
expected-value: 'OPNFV'
- field: type
expected-value: 'ConfidenceLevelModifiedEvent'
+ - field: scenario
+ expected-value: 'os-odl-nofeature'
builders:
- shell: |
expected-value: 'OPNFV'
- field: type
expected-value: 'ConfidenceLevelModifiedEvent'
+ - field: scenario
+ expected-value: 'k8-nosdn-onap'
builders:
- shell: |
BUILD_BRANCH=$BRANCH
GERRIT_REFNAME=${GERRIT_REFNAME:-''}
-RELEASE_VERSION=${GERRIT_REFNAME/refs\/tags//}
+RELEASE_VERSION=${GERRIT_REFNAME/refs\/tags\/}
+
+# If we're being triggered by a comment-added job, then extract the tag
+# from the comment and use that as the release version.
+# Expected comment format: retag opnfv-x.y.z
+if [[ "$GERRIT_EVENT_TYPE" == "comment-added" ]]; then
+ RELEASE_VERSION=$(echo "$GERRIT_EVENT_COMMENT_TEXT" | grep 'retag' | awk '{print $2}')
+fi
if [[ "$BRANCH" == "master" ]]; then
DOCKER_TAG="latest"