----
-#
-# ============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 deploying and testing
-# ONAP scenario onap-nofeature-noha.
-#--------------------------------------------------------------------------------------
-
-- project:
- name: 'onap-deploy-test-online'
-
- project: 'infra/engine'
-
- distro:
- - ubuntu1804
-
- deploy-scenario:
- - k8-calico-onap:
- deploy-scenario-version: master
- deploy-scenario-refspec: master
-
- onap-profile:
- - sdc
- - so
-
- onap-branch:
- - elalto:
- onap-version: elalto
- nordix-branch: master
- engine-version: master
- engine-refspec: master
- disabled: false
- - master:
- onap-version: master
- nordix-branch: master
- engine-version: master
- engine-refspec: master
- disabled: false
-
- type:
- - cloud:
- pod-name: est-cloud
- provisioner-type: bifrost
- installer-type: kubespray
-
- environment-type:
- - online:
- execution-mode: online-deployment
-
- cloud:
- - city:
- slave-label: 'engine-jumphost-online-ubuntu1804-fra'
- openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
- daily-trigger: '@midnight'
-
- ci-loop:
- - periodic
-
- job-phase:
- - deploy:
- build-timeout: 420
- - oom-healthcheck:
- build-timeout: 30
- test-type: oom-healthcheck
- - healthcheck:
- build-timeout: 30
- test-type: onap-healthcheck
-
- jobs:
- - '{deploy-scenario}-{onap-profile}-{environment-type}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
- - 'onap-{onap-profile}-{environment-type}-{job-phase}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
-
-- job-template:
- name: '{deploy-scenario}-{onap-profile}-{environment-type}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
-
- project-type: multijob
-
- disabled: '{obj:disabled}'
-
- concurrent: false
-
- parameters:
- - project-parameters:
- project: '{project}'
- branch: '{nordix-branch}'
- - nordix-gerrit-parameters
- - label:
- name: SLAVE_LABEL
- default: '{slave-label}'
- description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
- - string:
- name: PROVISIONER_TYPE
- default: 'heat'
- description: 'Provisioner to use for provisioning nodes'
- - string:
- name: INSTALLER_TYPE
- default: 'kubespray'
- description: 'Installer to use for deploying the scenario'
- - string:
- name: DEPLOY_SCENARIO
- default: '{deploy-scenario}'
- description: 'Scenario to deploy and test'
- - string:
- name: DEPLOY_TYPE
- default: '{type}'
- description: 'Type of the deployment'
- - string:
- name: DISTRO
- default: '{distro}'
- description: 'Distribution to use for configuring target nodes (networking etc.)'
- - string:
- name: ONAP_VERSION
- default: '{onap-version}'
- description: 'ONAP version to deploy'
- - string:
- name: ONAP_PROFILE
- default: '{onap-profile}'
- description: 'ONAP profile to deploy - could be sdc or so.'
- - string:
- name: OPENSTACK_CLOUD_PROVIDER
- default: '{cloud}'
- description: 'Name of the cloud where this job is run'
- - string:
- name: STACK_NAME
- default: 'nordix-cicd-{deploy-scenario}-{onap-profile}-{onap-branch}'
- description: 'Stack to create'
- - string:
- name: KEYPAIR_NAME
- default: 'keypair-nordix-cicd-{deploy-scenario}-{onap-profile}-{onap-branch}'
- description: 'Keypair to create and use'
- - string:
- name: HEAT_ENVIRONMENT_FILENAME
- default: 'heat-environment-{cloud}-{distro}-{onap-profile}.yaml'
- description: 'Heat environment file to use'
- - string:
- name: EXECUTION_MODE
- default: '{execution-mode}'
- description: 'Engine execution mode - could be online-deployment or offline-deployment'
- - 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.'
- - string:
- name: POD_NAME
- default: 'none'
- description: 'Development purposes only! Set to none for disabling test results DB reporting.'
- - string:
- 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'
- description: 'URL to Nordix xtesting-onap repository'
- - string:
- name: ENGINE_ANSIBLE_PARAMS
- default: ''
- description: 'Extra parameters that can be added when run the play books.'
-
- properties:
- - logrotate
- - build-blocker:
- use-build-blocker: true
- blocking-jobs:
- - 'cloud-infra-verify-engine-.*'
- - 'cloud-infra-verify-scenario-.*'
- - 'cloud-infra-periodic-engine-.*'
- - 'onap-.*'
- - 'k8-.*'
- - 'os-.*'
- - 'nolabs-.*'
- block-level: 'NODE'
- - throttle:
- max-per-node: 1
- max-total: 1
- option: project
-
- wrappers:
- - mask-passwords
- - build-timeout:
- timeout: 630
- - fix-workspace-permissions
-
- triggers:
- - timed: '{daily-trigger}'
-
- scm:
- - git-scm:
- ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
- branch: '{nordix-branch}'
- refspec: ''
- wipe_workspace: true
- clean_before: false
-
- builders:
- - description-setter:
- description: $DEPLOY_SCENARIO | $ONAP_PROFILE
- - multijob:
- name: Deploy ONAP using OOM (not activated)
- condition: ALWAYS
- projects:
- - name: 'onap-{onap-profile}-{environment-type}-deploy-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
- current-parameters: false
- predefined-parameters: |
- DISTRO=$DISTRO
- PROVISIONER_TYPE=$PROVISIONER_TYPE
- INSTALLER_TYPE=$INSTALLER_TYPE
- DEPLOY_SCENARIO=$DEPLOY_SCENARIO
- ONAP_VERSION=$ONAP_VERSION
- ONAP_PROFILE=$ONAP_PROFILE
- POD_NAME=$POD_NAME
- OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
- STACK_NAME=$STACK_NAME
- KEYPAIR_NAME=$KEYPAIR_NAME
- HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
- EXECUTION_MODE=$EXECUTION_MODE
- 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
- git-revision: true
- node-parameters: true
- kill-phase-on: NEVER
- abort-all-job: false
- - multijob:
- name: K8S and OOM Healthcheck using xtesting (not activated)
- condition: ALWAYS
- projects:
- - name: 'onap-{onap-profile}-{environment-type}-oom-healthcheck-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
- current-parameters: false
- predefined-parameters: |
- DISTRO=$DISTRO
- PROVISIONER_TYPE=$PROVISIONER_TYPE
- INSTALLER_TYPE=$INSTALLER_TYPE
- DEPLOY_SCENARIO=$DEPLOY_SCENARIO
- ONAP_VERSION=$ONAP_VERSION
- ONAP_PROFILE=$ONAP_PROFILE
- TEST_TYPE=oom-healthcheck
- POD_NAME=$POD_NAME
- OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
- STACK_NAME=$STACK_NAME
- KEYPAIR_NAME=$KEYPAIR_NAME
- HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
- EXECUTION_MODE=$EXECUTION_MODE
- 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
- node-parameters: true
- kill-phase-on: NEVER
- abort-all-job: false
- - multijob:
- name: ONAP Healthcheck using xtesting (not activated)
- execution-type: SEQUENTIALLY
- condition: ALWAYS
- projects:
- - name: 'onap-{onap-profile}-{environment-type}-healthcheck-{distro}-{cloud}-{type}-{ci-loop}-{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
- ONAP_VERSION=$ONAP_VERSION
- ONAP_PROFILE=$ONAP_PROFILE
- TEST_TYPE=sdc-healthcheck
- POD_NAME=$POD_NAME
- OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
- STACK_NAME=$STACK_NAME
- KEYPAIR_NAME=$KEYPAIR_NAME
- HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
- ENGINE_VERSION=$ENGINE_VERSION
- EXECUTION_MODE=$EXECUTION_MODE
- 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
- node-parameters: true
- kill-phase-on: NEVER
- abort-all-job: false
- - name: 'onap-{onap-profile}-{environment-type}-healthdist-{distro}-{cloud}-{type}-{ci-loop}-{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
- ONAP_VERSION=$ONAP_VERSION
- ONAP_PROFILE=$ONAP_PROFILE
- TEST_TYPE=onap-healthcheck
- POD_NAME=$POD_NAME
- OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
- STACK_NAME=$STACK_NAME
- KEYPAIR_NAME=$KEYPAIR_NAME
- HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
- EXECUTION_MODE=$EXECUTION_MODE
- 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
- node-parameters: true
- kill-phase-on: NEVER
- abort-all-job: false
-
-- job-template:
- name: 'onap-{onap-profile}-{environment-type}-{job-phase}-{distro}-{cloud}-{type}-{ci-loop}-{onap-branch}'
-
- disabled: false
-
- concurrent: true
-
- properties:
- - logrotate
-
- parameters:
- - onap-parameter-macro
-
- wrappers:
- - mask-passwords
- - 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:
- ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
- branch: '{nordix-branch}'
- refspec: ''
- wipe_workspace: true
- clean_before: false
-
- builders:
- - description-setter:
- description: $DEPLOY_SCENARIO | $ONAP_PROFILE
- - 'onap-{job-phase}-builder-macro'
-
-# vim: set ts=2 sw=2 expandtab: