---
- project:
- name: iec-project-view
- project-name: iec
+ name: 'iec'
+ project-name: 'iec'
+ project: '{project-name}'
views:
- project-view
+ # -------------------------------
+ # BRANCH DEFINITIONS
+ # -------------------------------
+ stream:
+ - master:
+ branch: '{stream}'
+ gs-pathname: ''
+ disabled: false
+
+ # -------------------------------
+ # DEPLOY TYPE DEFINITIONS
+ # -------------------------------
+ deploy-type:
+ - fuel-baremetal:
+ slave-label: 'aarch64_dev'
+ scenario: 'k8-calico-iec-noha'
+ - fuel-virtual:
+ slave-label: 'aarch64_dev'
+ scenario: 'k8-calico-iec-noha'
+
+ jobs:
+ - 'iec-{deploy-type}-daily-{stream}'
+ - 'iec-deploy-{deploy-type}-daily-{stream}'
+
+##############
+# PARAMETERS #
+##############
+- parameter:
+ name: 'iec-defaults'
+ parameters:
+ - string:
+ name: INSTALLER_IP
+ default: '10.20.0.2'
+ description: 'IP of the installer'
+ - string:
+ name: SSH_KEY
+ default: "/var/lib/opnfv/mcp.rsa"
+ description: 'Path to private SSH key to access environment nodes'
+ - string:
+ name: EXTERNAL_NETWORK
+ default: 'floating_net'
+ description: 'external network for test'
+ - string:
+ name: CI_DEBUG
+ default: 'false'
+ description: "Show debug output information"
+
+########################
+# job templates
+########################
+- job-template:
+ name: 'iec-{deploy-type}-daily-{stream}'
+ disabled: '{obj:disabled}'
+ concurrent: false
+ node: '{slave-label}'
+ properties:
+ - throttle:
+ enabled: true
+ max-total: 4
+ max-per-node: 1
+ option: 'project'
+ - build-blocker:
+ use-build-blocker: true
+ blocking-jobs:
+ - '.*-{deploy-type}-daily-.*'
+ blocking-level: 'NODE'
+
+ wrappers:
+ - build-name:
+ name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
+
+ triggers:
+ - 'iec-{deploy-type}-daily-{stream}-trigger'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ stream: '{stream}'
+ branch: '{branch}'
+ - '{project}-defaults'
+ - string:
+ name: DEPLOY_SCENARIO
+ default: 'k8-calico-iec-noha'
+
+ builders:
+ - trigger-builds:
+ - project: 'iec-deploy-{deploy-type}-daily-{stream}'
+ current-parameters: false
+ predefined-parameters: |
+ DEPLOY_SCENARIO={scenario}
+ INSTALLER_VERSION={stream}
+ same-node: true
+ block: true
+
+- job-template:
+ name: 'iec-deploy-{deploy-type}-daily-{stream}'
+ concurrent: true
+ node: '{slave-label}'
+ properties:
+ - throttle:
+ enabled: true
+ max-total: 4
+ max-per-node: 1
+ option: 'project'
+ - build-blocker:
+ use-build-blocker: true
+ blocking-jobs:
+ - '.*-deploy-{deploy-type}-daily-*'
+ blocking-level: 'NODE'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ stream: '{stream}'
+ branch: '{branch}'
+ - '{project}-defaults'
+ - string:
+ name: DEPLOY_SCENARIO
+ default: 'k8-calico-iec-noha'
+
+ wrappers:
+ - build-name:
+ name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
+
+ scm:
+ - git:
+ credentials-id: '{jenkins-ssh-credential}'
+ url: '{git-url}/{project}.git'
+ refspec: ''
+ branches:
+ - 'refs/heads/{branch}'
+ skip-tag: true
+ wipe-workspace: true
+ submodule:
+ disable: true
+ recursive: false
+ timeout: '{submodule-timeout}'
+ choosing-strategy: default
+
+ builders:
+ - shell:
+ !include-raw-escape: ./iec-fuel-deploy.sh
+
+ publishers:
+ - email:
+ recipients: armband@enea.com
+
+########################
+# trigger macros
+########################
+# CI PODs
+# ----------------------------------------------------------------
+# Akraino IEC CI Baremetal Triggers running against master branch
+# ----------------------------------------------------------------
+- trigger:
+ name: 'iec-fuel-virtual-daily-master-trigger'
+ triggers:
+ - timed: '0 1 * * *'
+- trigger:
+ name: 'iec-fuel-baremetal-daily-master-trigger'
+ triggers:
+ - timed: ''