X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fiec%2Fiec.yaml;h=faab5459d7598e7cfe77ee855a501cecb94c976f;hp=b0cc699a8b7026384f3c300ec2e95bbf24bd639c;hb=f7334c68f9ea63449e7cf83d4f810e45792f2cd6;hpb=6f714fdac06a476b776a0019eef4ea7983a2253d diff --git a/jjb/iec/iec.yaml b/jjb/iec/iec.yaml index b0cc699..faab545 100644 --- a/jjb/iec/iec.yaml +++ b/jjb/iec/iec.yaml @@ -28,9 +28,18 @@ slave-label: 'aarch64_dev' scenario: 'k8-calico-iec-noha' + # ------------------------------- + # USECASE DEFINITIONS + # ------------------------------- + usecase: + - seba_on_arm: + slave-label: 'aarch64_dev' + scenario: 'k8-calico-iec-noha' + jobs: - 'iec-{deploy-type}-daily-{stream}' - 'iec-deploy-{deploy-type}-daily-{stream}' + - 'iec-install-{usecase}-{deploy-type}-daily-{stream}' ############## # PARAMETERS # @@ -44,7 +53,7 @@ description: 'IP of the installer' - string: name: SSH_KEY - default: "/var/lib/opnfv/mcp.rsa" + default: '/var/lib/opnfv/mcp.rsa' description: 'Path to private SSH key to access environment nodes' - string: name: EXTERNAL_NETWORK @@ -53,7 +62,26 @@ - string: name: CI_DEBUG default: 'false' - description: "Show debug output information" + description: 'Show debug output information' + - string: + name: ARCHIVE_ARTIFACTS + default: '**/*.log' + description: Artifacts to archive to the logs server. +- parameter: + name: 'seba_on_arm-defaults' + parameters: + - string: + name: K8S_SSH_USER + default: 'ubuntu' + description: 'SSH username to connect to the K8s master ' + - string: + name: K8S_SSH_PASSWORD + default: '' + description: 'SSH password to connect to the K8s master' + - string: + name: K8S_SSH_KEY + default: '' + description: 'SSH key to connect to the K8s master' ######################## # job templates @@ -90,7 +118,7 @@ - '{project}-defaults' - string: name: DEPLOY_SCENARIO - default: 'k8-calico-iec-noha' + default: '{scenario}' builders: - trigger-builds: @@ -98,7 +126,10 @@ current-parameters: false predefined-parameters: | DEPLOY_SCENARIO={scenario} - INSTALLER_VERSION={stream} + same-node: true + block: true + - project: 'iec-install-{usecase}-daily-{stream}' + current-parameters: false same-node: true block: true @@ -126,13 +157,13 @@ - '{project}-defaults' - string: name: DEPLOY_SCENARIO - default: 'k8-calico-iec-noha' + default: '{scenario}' wrappers: - build-name: name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO' - scm: + scm: &scm - git: credentials-id: '{jenkins-ssh-credential}' url: '{git-url}/{project}.git' @@ -172,6 +203,47 @@ publishers: - email: recipients: armband@enea.com + - lf-infra-publish + +- job-template: + name: 'iec-install-{usecase}-{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-*' + - '.*-install-{usecase}-{deploy-type}-daily-*' + blocking-level: 'NODE' + + parameters: + - lf-infra-parameters: + project: '{project}' + stream: '{stream}' + branch: '{branch}' + - '{project}-defaults' + - '{usecase}-defaults' + + wrappers: + - build-name: + name: '$BUILD_NUMBER - Usecase: ${usecase} DeployType: ${deploy-type}' + + scm: *scm + + builders: + - shell: + !include-raw-escape: ./iec-{usecase}.sh + + publishers: + - email: + recipients: armband@enea.com + - lf-infra-publish ######################## # trigger macros