blob: 169aa23346e273d7cbf304aa2e6809eb14db4c00 [file] [log] [blame]
---
#
# ============LICENSE_START=======================================================
# Copyright (C) 2019 Nordix Foundation.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# ============LICENSE_END=========================================================
#--------------------------------------------------------------------------------------
# The jobs declared in this JJB configuration file are used for verifying cloud-infra
# engine from the tip of the master branch periodically to check the stability of it.
#
# These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
# The slaves have
# - Ubuntu1604 as the base distro
# - nested virtualization
# - internet access
# - passwordless sudo
# - 16 CPUs/32GB RAM/200 GB Disk
# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
#
# The slaves should not have a cloud infra scenario deployed on them.
#--------------------------------------------------------------------------------------
- project:
name: 'cloud-infra-periodic-onap'
project: 'infra/engine'
onap-branch:
- 'dublin':
nordix-branch: master
onap-version: 4.0.0-ONAP
engine-version: master
engine-refspec: "refs/changes/71/1771/4"
deploy-scenario-version: "9a215b7935ab2b14cc7451ba15ea575e62e26da7"
deploy-scenario-refspec: "refs/changes/65/1765/12"
disabled: false
- 'master':
nordix-branch: master
onap-version: master
engine-version: master
engine-refspec: master
deploy-scenario-version: master
deploy-scenario-refspec: master
disabled: true
distro:
- ubuntu1804
deploy-scenario:
- onap-oom-nofeature
type:
- cloud:
provisioner-type: heat
installer-type: kubespray
slave-label: 'jumphost-onap-ubuntu1804'
onap-other-phases:
- onap-deploy:
build-timeout: 150
- oom-healthcheck:
build-timeout: 30
test-type: oom-healthcheck
- promote-onap:
build-timeout: 5
- delete-stack:
build-timeout: 5
onap-healthcheck-phases:
- onap-healthcheck-core:
build-timeout: 30
test-type: onap-healthcheck
- onap-healthcheck-small:
build-timeout: 30
test-type: onap-healthcheck
- onap-healthcheck-medium:
build-timeout: 30
test-type: onap-healthcheck
- onap-healthcheck-full:
build-timeout: 30
test-type: onap-healthcheck
jobs:
- '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
- '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
- '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
- job-template:
name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
project-type: multijob
disabled: '{obj:disabled}'
concurrent: true
parameters:
- onap-parameter-macro
- string:
name: ONAP_VERSION
default: '{onap-version}'
description: 'ONAP version to deploy'
- string:
name: ENGINE_VERSION
default: '{engine-version}'
description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
- string:
name: ENGINE_REFSPEC
default: '{engine-refspec}'
description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
- string:
name: DEPLOY_SCENARIO_VERSION
default: '{deploy-scenario-version}'
description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
- string:
name: DEPLOY_SCENARIO_REFSPEC
default: '{deploy-scenario-refspec}'
description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
properties:
- logrotate
- build-blocker:
use-build-blocker: true
blocking-jobs:
- 'cloud-infra-periodic-engine-.*'
- 'onap-.*'
- 'k8-.*'
block-level: 'NODE'
- throttle:
max-per-node: 1
max-total: 3
option: project
wrappers:
- build-timeout:
timeout: 220
- fix-workspace-permissions
scm:
- git-scm:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{nordix-branch}'
refspec: ''
wipe_workspace: true
clean_before: false
builders:
- description-setter:
description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
- multijob:
name: Deploy ONAP using OOM
condition: SUCCESSFUL
projects:
- name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
DISTRO=$DISTRO
DEPLOY_TYPE=$DEPLOY_TYPE
PROVISIONER_TYPE=$PROVISIONER_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=$ONAP_FLAVOR
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
git-revision: true
node-parameters: true
kill-phase-on: FAILURE
abort-all-job: true
- multijob:
name: K8S and OOM Healthcheck using xtesting
condition: ALWAYS
projects:
- name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
DISTRO=$DISTRO
DEPLOY_TYPE=$DEPLOY_TYPE
PROVISIONER_TYPE=$PROVISIONER_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=full
TEST_TYPE=oom-healthcheck
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- multijob:
name: ONAP Healthcheck using xtesting
condition: ALWAYS
projects:
- name: 'onap-healthcheck-core-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
SLAVE_LABEL=$SLAVE_LABEL
DISTRO=$DISTRO
PROVISIONER_TYPE=$PROVISIONER_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
DEPLOY_TYPE=$DEPLOY_TYPE
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=core
TEST_TYPE=onap-healthcheck
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- name: 'onap-healthcheck-small-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
SLAVE_LABEL=$SLAVE_LABEL
DISTRO=$DISTRO
PROVISIONER_TYPE=$PROVISIONER_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
DEPLOY_TYPE=$DEPLOY_TYPE
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=small
TEST_TYPE=onap-healthcheck
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- name: 'onap-healthcheck-medium-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
SLAVE_LABEL=$SLAVE_LABEL
DISTRO=$DISTRO
PROVISIONER_TYPE=$PROVISIONER_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
DEPLOY_TYPE=$DEPLOY_TYPE
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=medium
TEST_TYPE=onap-healthcheck
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- name: 'onap-healthcheck-full-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
SLAVE_LABEL=$SLAVE_LABEL
DISTRO=$DISTRO
PROVISIONER_TYPE=$PROVISIONER_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
DEPLOY_TYPE=$DEPLOY_TYPE
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=full
TEST_TYPE=onap-healthcheck
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- multijob:
name: Promote ONAP (not activated)
condition: ALWAYS
projects:
- name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
DISTRO=$DISTRO
DEPLOY_TYPE=$DEPLOY_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=$ONAP_FLAVOR
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- multijob:
name: Delete Stack
condition: ALWAYS
projects:
- name: 'delete-stack-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
current-parameters: false
predefined-parameters: |
DISTRO=$DISTRO
DEPLOY_TYPE=$DEPLOY_TYPE
INSTALLER_TYPE=$INSTALLER_TYPE
DEPLOY_SCENARIO=$DEPLOY_SCENARIO
ONAP_VERSION=$ONAP_VERSION
ONAP_FLAVOR=$ONAP_FLAVOR
ENGINE_VERSION=$ENGINE_VERSION
ENGINE_REFSPEC=$ENGINE_REFSPEC
DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
XTESTING_REPO_URL=$XTESTING_REPO_URL
ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
CLEANUP=$CLEANUP
node-parameters: true
kill-phase-on: NEVER
abort-all-job: false
- job-template:
name: '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
disabled: false
concurrent: true
properties:
- logrotate
parameters:
- onap-parameter-macro
- string:
name: ONAP_VERSION
default: '{onap-version}'
description: 'ONAP version to deploy'
wrappers:
- credentials-binding:
- file:
credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
variable: OPENRC_FILE
- mask-passwords
- build-timeout:
timeout: '{build-timeout}'
- fix-workspace-permissions
scm:
- git-scm:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{nordix-branch}'
refspec: ''
wipe_workspace: true
clean_before: false
builders:
- description-setter:
description: $INSTALLER_TYPE $DEPLOY_SCENARIO
- '{onap-other-phases}-macro'
- job-template:
name: '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
disabled: false
concurrent: true
properties:
- logrotate
parameters:
- onap-parameter-macro
- string:
name: ONAP_VERSION
default: '{onap-version}'
description: 'ONAP version to deploy'
- string:
name: ENGINE_VERSION
default: '{engine-version}'
description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
- string:
name: ENGINE_REFSPEC
default: '{engine-refspec}'
description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
- string:
name: DEPLOY_SCENARIO_VERSION
default: '{deploy-scenario-version}'
description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
- string:
name: DEPLOY_SCENARIO_REFSPEC
default: '{deploy-scenario-refspec}'
description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
wrappers:
- credentials-binding:
- file:
credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
variable: OPENRC_FILE
- mask-passwords
- build-timeout:
timeout: '{build-timeout}'
- fix-workspace-permissions
scm:
- git-scm:
ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
branch: '{nordix-branch}'
refspec: ''
wipe_workspace: true
clean_before: false
builders:
- description-setter:
description: $INSTALLER_TYPE $DEPLOY_SCENARIO
- 'onap-healthcheck-macro'
# vim: set ts=2 sw=2 expandtab: