# only run on os-(nosdn|odl_l3)-nofeature-ha scenario
# run with testsuite default, testarea mandatory, dovetail docker image with latest tag
# run with testsuite default, testarea optional, dovetail docker image with latest tag
+ # run with testsuite proposed_tests, testarea optional, dovetail docker image with latest tag
- conditional-step:
condition-kind: and
condition-operands:
build-step-failure-threshold: 'never'
failure-threshold: 'never'
unstable-threshold: 'FAILURE'
- - conditional-step:
- condition-kind: and
- condition-operands:
- - condition-kind: regex-match
- regex: os-(nosdn|odl_l3)-nofeature-ha
- label: '{scenario}'
- steps:
- - trigger-builds:
- project: 'dovetail-compass-{pod}-default-optional-{stream}'
current-parameters: false
predefined-parameters: |
build-step-failure-threshold: 'never'
failure-threshold: 'never'
unstable-threshold: 'FAILURE'
+ - project: 'dovetail-compass-{pod}-proposed_tests-optional-{stream}'
+ current-parameters: false
+ predefined-parameters: |
+ DOCKER_TAG=latest
+ DEPLOY_SCENARIO={scenario}
+ block: true
+ same-node: true
+ block-thresholds:
+ build-step-failure-threshold: 'never'
+ failure-threshold: 'never'
+ unstable-threshold: 'FAILURE'
- conditional-step:
condition-kind: and
condition-operands:
# 2.testsuite default here is for the test cases already added into OVP
# 3.run default testsuite mandatory test cases against ha scenario
# 4.run default testsuite optional test cases against ha scenario twice one week
- # 5.not used for release criteria or compliance, only to debug the dovetail tool bugs
+ # 5.run proposed_tests testsuite optional test cases against ha scenario
+ # 6.not used for release criteria or compliance, only to debug the dovetail tool bugs
- conditional-step:
condition-kind: and
condition-operands:
build-step-failure-threshold: 'never'
failure-threshold: 'never'
unstable-threshold: 'FAILURE'
+ - project: 'dovetail-fuel-{pod}-proposed_tests-optional-{stream}'
+ current-parameters: false
+ predefined-parameters: |
+ DEPLOY_SCENARIO={scenario}
+ INSTALLER_VERSION={stream}
+ block: true
+ same-node: true
+ block-thresholds:
+ build-step-failure-threshold: 'never'
+ failure-threshold: 'never'
+ unstable-threshold: 'FAILURE'
- conditional-step:
condition-kind: and
condition-operands:
image-feature-enabled:
api_v2: true
api_v1: false
+object-storage:
+ operator_role: SwiftOperator
volume:
storage_protocol: ceph
volume-feature-enabled:
EOF
;;
esac
+case ${BRANCH} in
+master)
+ cat << EOF >> "${tempest_conf_yaml}"
+compute:
+ max_microversion: latest
+EOF
+ ;;
+stable/hunter)
+ cat << EOF >> "${tempest_conf_yaml}"
+compute:
+ max_microversion: 2.65
+EOF
+ ;;
+stable/gambia)
+ cat << EOF >> "${tempest_conf_yaml}"
+compute:
+ max_microversion: 2.60
+EOF
+ ;;
+esac
echo "tempest_conf.yaml:" && cat "${tempest_conf_yaml}"
volumes="${images_vol} ${results_vol} ${sshkey_vol} ${libvirt_vol} \
elif [[ ${INSTALLER_TYPE} == 'joid' && ${BRANCH} == 'master' ]]; then
admin_conf_file_vol="-v ${HOME}/joid_config/config:/root/.kube/config"
rc_file=${HOME}/joid_config/k8config
+elif [[ ${INSTALLER_TYPE} == 'fuel' ]]; then
+ admin_conf_file_vol="-v ${HOME}/admin.conf:/root/.kube/config"
+ KUBE_MASTER_URL=$(awk '/server:/ {print $2}' ${HOME}/admin.conf | grep -Fv localhost)
+ KUBE_MASTER_IP=$(echo $KUBE_MASTER_URL | grep -Po '(\d+\.){3}\d+')
+ for k in KUBERNETES_PROVIDER KUBE_MASTER_URL KUBE_MASTER_IP; do
+ echo "export $k=${!k}" >> $rc_file
+ done
else
echo "Not supported by other installers yet"
exit 1
repo: 'opnfv'
port:
tag:
- - latest:
- branch: master
- hunter:
branch: stable/hunter
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- - '^functest-kubernetes-[a-z]+-(daily|check|gate)$'
+ - '^(functest|functest-kubernetes)-[a-z]+-(daily|check|gate)$'
builders:
- multijob:
name: remove former images
ref: $branch
- project:
- name: 'functest-kubernetes-_-golang-alpine3.8-rmi'
+ name: 'functest-kubernetes-_-golang-alpine3.9-rmi'
repo: _
port:
container: golang
- tag: alpine3.8
+ tag: alpine3.9
jobs:
- 'functest-kubernetes-{repo}-{container}-{tag}-rmi'
- project:
- name: 'functest-kubernetes-_-golang-alpine3.8-pull'
+ name: 'functest-kubernetes-_-golang-alpine3.9-pull'
repo: _
port:
container: golang
- tag: alpine3.8
+ tag: alpine3.9
jobs:
- 'functest-kubernetes-{repo}-{container}-{tag}-pull'
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- - '^functest-kubernetes-[a-z]+-(daily|check|gate)$'
+ - '^(functest|functest-kubernetes)-[a-z]+-(daily|check|gate)$'
builders:
- multijob:
name: remove former images
- multijob:
name: remove dependencies
projects:
- - name: 'functest-kubernetes-_-golang-alpine3.8-rmi'
+ - name: 'functest-kubernetes-_-golang-alpine3.9-rmi'
<<: *functest-kubernetes-jobs
- multijob:
name: pull dependencies
projects:
- - name: 'functest-kubernetes-_-golang-alpine3.8-pull'
+ - name: 'functest-kubernetes-_-golang-alpine3.9-pull'
<<: *functest-kubernetes-jobs
- multijob:
name: build opnfv/functest-kubernetes-core
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- - '^functest-kubernetes-[a-z]+-(daily|check|gate)$'
+ - '^(functest|functest-kubernetes)-[a-z]+-(daily|check|gate)$'
builders:
- multijob:
name: remove former images
- multijob:
name: remove dependencies
projects:
- - name: 'functest-kubernetes-_-golang-alpine3.8-rmi'
+ - name: 'functest-kubernetes-_-golang-alpine3.9-rmi'
<<: *functest-kubernetes-jobs
- multijob:
name: pull dependencies
projects:
- - name: 'functest-kubernetes-_-golang-alpine3.8-pull'
+ - name: 'functest-kubernetes-_-golang-alpine3.9-pull'
<<: *functest-kubernetes-jobs
- multijob:
name: build opnfv/functest-kubernetes-core
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- - '^functest-[a-z]+-(daily|check|gate)$'
+ - '^(functest|functest-kubernetes)-[a-z]+-(daily|check|gate)$'
builders:
- multijob:
name: remove former images
ref: $branch
- project:
- name: 'functest-_-alpine-3.8-rmi'
+ name: 'functest-_-alpine-3.9-rmi'
repo: _
port:
container: alpine
- tag: 3.8
+ tag: 3.9
jobs:
- 'functest-{repo}-{container}-{tag}-rmi'
- project:
- name: 'functest-_-alpine-3.8-pull'
+ name: 'functest-_-alpine-3.9-pull'
repo: _
port:
container: alpine
- tag: 3.8
+ tag: 3.9
jobs:
- 'functest-{repo}-{container}-{tag}-pull'
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- - '^functest-[a-z]+-(daily|check|gate)$'
+ - '^(functest|functest-kubernetes)-[a-z]+-(daily|check|gate)$'
builders:
- multijob:
name: remove former images
- multijob:
name: remove dependencies
projects:
- - name: 'functest-_-alpine-3.8-rmi'
+ - name: 'functest-_-alpine-3.9-rmi'
<<: *functest-jobs
- multijob:
name: pull dependencies
projects:
- - name: 'functest-_-alpine-3.8-pull'
+ - name: 'functest-_-alpine-3.9-pull'
<<: *functest-jobs
- multijob:
name: build opnfv/functest-core
use-build-blocker: true
blocking-level: 'NODE'
blocking-jobs:
- - '^functest-[a-z]+-(daily|check|gate)$'
+ - '^(functest|functest-kubernetes)-[a-z]+-(daily|check|gate)$'
builders:
- multijob:
name: remove former images
- multijob:
name: remove dependencies
projects:
- - name: 'functest-_-alpine-3.8-rmi'
+ - name: 'functest-_-alpine-3.9-rmi'
<<: *functest-jobs
- multijob:
name: pull dependencies
projects:
- - name: 'functest-_-alpine-3.8-pull'
+ - name: 'functest-_-alpine-3.9-pull'
<<: *functest-jobs
- multijob:
name: build opnfv/functest-core
branch: master
- hunter:
branch: stable/hunter
- - gambia:
- branch: stable/gambia
- parameter:
name: xtesting-slave
ref: $branch
- project:
- name: 'xtesting-_-alpine-3.8-rmi'
+ name: 'xtesting-_-alpine-3.9-rmi'
repo: _
port:
container: alpine
- tag: 3.8
+ tag: 3.9
jobs:
- 'xtesting-{repo}-{container}-{tag}-rmi'
- project:
- name: 'xtesting-_-alpine-3.8-pull'
+ name: 'xtesting-_-alpine-3.9-pull'
repo: _
port:
container: alpine
- tag: 3.8
+ tag: 3.9
jobs:
- 'xtesting-{repo}-{container}-{tag}-pull'
- multijob:
name: remove dependencies
projects:
- - name: 'xtesting-_-alpine-3.8-rmi'
+ - name: 'xtesting-_-alpine-3.9-rmi'
<<: *xtesting-jobs
- multijob:
name: pull dependencies
projects:
- - name: 'xtesting-_-alpine-3.8-pull'
+ - name: 'xtesting-_-alpine-3.9-pull'
<<: *xtesting-jobs
- multijob:
name: opnfv/functest-xtesting
- multijob:
name: remove dependencies
projects:
- - name: 'xtesting-_-alpine-3.8-rmi'
+ - name: 'xtesting-_-alpine-3.9-rmi'
<<: *xtesting-jobs
- multijob:
name: pull dependencies
projects:
- - name: 'xtesting-_-alpine-3.8-pull'
+ - name: 'xtesting-_-alpine-3.9-pull'
<<: *xtesting-jobs
- multijob:
name: opnfv/functest-xtesting
dockerdir: "docker"
docker_repo_name: "opnfv/{project}_aarch64"
arch_tag: ""
+ extra_build_args: ""
# yamllint disable rule:key-duplicates
dockerrepo:
name: ARCH_TAG
default: "{arch_tag}"
description: "If set, this value will be added to the docker image tag"
+ - string:
+ name: EXTRA_BUILD_ARGS
+ default: "{extra_build_args}"
+ description: "Whitespace separated key=value pairs. If set, these args will be used to build docker image"
properties:
- throttle:
ARCH_BUILD_ARG="--build-arg ARCH=${ARCH_TAG}"
fi
+EXTRA_BUILD_ARGS=${EXTRA_BUILD_ARGS:-}
+if [ -n "${EXTRA_BUILD_ARGS}" ]; then
+ EXTRA_BUILD_ARGS=" "$(echo ${EXTRA_BUILD_ARGS})
+ EXTRA_BUILD_ARGS=${EXTRA_BUILD_ARGS// / --build-arg }
+fi
+
# Start the build
echo "Building docker image: $DOCKER_REPO_NAME:$DOCKER_TAG"
echo "--------------------------------------------------------"
echo
cmd="docker build --pull=true --no-cache -t $DOCKER_REPO_NAME:$DOCKER_TAG --build-arg BRANCH=$BUILD_BRANCH
- $ARCH_BUILD_ARG
+ $ARCH_BUILD_ARG $EXTRA_BUILD_ARGS
-f $DOCKERFILE $DOCKER_PATH"
echo ${cmd}
dockerfile: "Dockerfile"
dockerdir: "docker"
arch_tag: ""
+ extra_build_args: ""
# This is the dockerhub repo the image will be pushed to as
# 'opnfv/{dockerrepo}. See: DOCKER_REPO_NAME parameter.
dockerfile: 'Dockerfile.web'
<<: *master
<<: *other-receivers
+ - 'dovetail-webportal-web-onap':
+ project: 'dovetail-webportal'
+ dockerfile: 'Dockerfile.web'
+ extra_build_args: 'CONTAINER=onap GUI=onap-ui'
+ <<: *master
+ <<: *other-receivers
- 'nfvbench':
project: 'nfvbench'
<<: *master
dockerfile: "Dockerfile"
dockerdir: "docker"
arch_tag: ""
+ extra_build_args: ""
project:
# projects with jobs for master
name: ARCH_TAG
default: "{arch_tag}"
description: "If set, this value will be added to the docker image tag as a prefix"
+ - string:
+ name: EXTRA_BUILD_ARGS
+ default: "{extra_build_args}"
+ description: "Whitespace separated key=value pairs. If set, these args will be used to build docker image"
properties:
- throttle:
--- /dev/null
+---
+project: snaps
+project-type: feature
+release-model: stable
+
+branches:
+ - name: stable/hunter
+ location:
+ snaps: 567cdf25e1319fbc8a1a874dd18d21f88948e67e
info "Fetch admin.conf successfully"
elif [ "$installer_type" == "joid" ]; then
info "Do nothing, config file has been provided in $HOME/joid_config/config for joid"
+elif [ "$installer_type" == "fuel" ]; then
+ info "Getting kubernetes config ..."
+ docker cp fuel:/opt/kubernetes.config $dest_path
else
error "Installer $installer_type is not supported by this script"
fi