--- /dev/null
+---
+- project:
+ name: addon-onap-info
+ project-name: addon-onap
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: addon-onap
+ branch: master
--- /dev/null
+---
+- project:
+ name: addon-snappy-info
+ project-name: addon-snappy
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: addon-snappy
+ branch: master
--- /dev/null
+---
+- project:
+ name: aiedge-info
+ project-name: aiedge
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: aiedge
+ branch: master
--- /dev/null
+---
+- project:
+ name: airshipinabottle_deploy-info
+ project-name: airshipinabottle_deploy
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: airshipinabottle_deploy
+ branch: master
--- /dev/null
+---
+#
+# Copyright (c) 2019 Intel Corporation. All rights reserved.
+#
+# 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.
+#
+
+- daaas_job_boiler_plate: &daaas_job_boiler_plate
+ name: daaas_job_boiler_plate
+ archive-artifacts: >
+ **/*.log
+ build-days-to-keep: 30
+ build-timeout: 60
+ stream: master
+ project-type: freestyle
+ submodule-recursive: true
+ concurrent: true
+ node: "{build-node}"
+
+ properties:
+ - lf-infra-properties:
+ build-days-to-keep: "{build-days-to-keep}"
+
+ parameters:
+ - lf-infra-parameters:
+ project: "{project}"
+ stream: "{stream}"
+ branch: "{branch}"
+ lftools-version: "{lftools-version}"
+
+ - string:
+ name: ARCHIVE_ARTIFACTS
+ default: "{archive-artifacts}"
+ description: Artifacts to archive to the logs server.
+
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: "{build-timeout}"
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+
+ scm:
+ - lf-infra-gerrit-scm:
+ jenkins-ssh-credential: "{jenkins-ssh-credential}"
+ git-url: "{git-url}/{project}.git"
+ refspec: "$GERRIT_REFSPEC"
+ branch: "$GERRIT_BRANCH"
+ submodule-recursive: "{submodule-recursive}"
+ submodule-timeout: "{submodule-timeout}"
+ submodule-disable: false
+ choosing-strategy: "gerrit"
+
+ builders:
+ - shell: "{obj:script}"
+
+ publishers:
+ - lf-infra-publish
+
+#################
+# JOB TEMPLATES #
+#################
+- job-template:
+ # Job template for verify jobs
+
+ name: "{project-name}-{stream}-{type}-verify"
+ <<: *daaas_job_boiler_plate
+
+ triggers:
+ - gerrit:
+ server-name: "{gerrit-server-name}"
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: "false"
+ exclude-trivial-rebase: "false"
+ exclude-no-code-change: "false"
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: "recheck"
+ - comment-added-contains-event:
+ comment-contains-value: "reverify"
+ projects:
+ - project-compare-type: "ANT"
+ project-pattern: "{project}"
+ branches:
+ - branch-compare-type: "ANT"
+ branch-pattern: "**/{branch}"
+ file-paths:
+ - compare-type: REG_EXP
+ pattern: ".*/?{path}/.*"
+ disable-strict-forbidden-file-verification: "true"
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: "docs/**"
+ readable-message: true
+
+- job-template:
+ # Job template for merge jobs
+
+ name: "{project-name}-{stream}-{type}-merge"
+ <<: *daaas_job_boiler_plate
+
+ gerrit_merge_triggers:
+ - change-merged-event
+ - comment-added-contains-event:
+ comment-contains-value: remerge$
+
+ triggers:
+ - gerrit:
+ server-name: "{gerrit-server-name}"
+ trigger-on: "{obj:gerrit_merge_triggers}"
+ projects:
+ - project-compare-type: "ANT"
+ project-pattern: "{project}"
+ branches:
+ - branch-compare-type: "ANT"
+ branch-pattern: "**/{branch}"
+ file-paths:
+ - compare-type: REG_EXP
+ pattern: ".*/?{path}/.*"
+ disable-strict-forbidden-file-verification: "true"
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: "docs/**"
+ readable-message: true
# See the License for the specific language governing permissions and
# limitations under the License.
#
-- job-template:
- id: kni-installer-verify-installer
- name: '{project-name}-verify-installer'
+- kni_common: &kni_common
+ name: kni-common
######################
# Default parameters #
######################
- build-node: centos7-builder-2c-1g
+ build-node: "{build-node}"
build-days-to-keep: 30
build-timeout: 60
submodule-recursive: true
+ gerrit_trigger_file_paths: "{obj:gerrit_trigger_file_paths}"
#####################
# Job Configuration #
#####################
project-type: freestyle
- node: '{build-node}'
-
+ node: "{build-node}"
properties:
- lf-infra-properties:
build-days-to-keep: '{build-days-to-keep}'
build-timeout: '{build-timeout}'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
- gerrit_trigger_file_paths:
- - compare-type: ANT
- pattern: '**'
-
scm:
- lf-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
- branch-compare-type: ANT
branch-pattern: '**/{branch}'
file-paths: '{obj:gerrit_trigger_file_paths}'
-
- builders:
- - lf-infra-pre-build
- - shell: !include-raw-escape:
- - ../shell/install_go.sh
- - shell: !include-raw-escape:
- - ../shell/build_kni_installer.sh
-
publishers:
- lf-infra-publish
-- job-template:
- id: kni-installer-verify-binary
- name: '{project-name}-verify-binary'
-
- ######################
- # Default parameters #
- ######################
-
- build-days-to-keep: 30
- build-timeout: 60
- build-node: centos7-builder-8c-8g
- submodule-recursive: true
-
- #####################
- # Job Configuration #
- #####################
-
- project-type: freestyle
- node: '{build-node}'
-
- properties:
- - lf-infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
-
- parameters:
- - lf-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- stream: '{stream}'
- lftools-version: '{lftools-version}'
-
- wrappers:
- - lf-infra-wrappers:
- build-timeout: '{build-timeout}'
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
-
- gerrit_trigger_file_paths:
- - compare-type: ANT
- pattern: 'Makefile'
- - compare-type: ANT
- pattern: 'cmd/binary.go'
-
- gerrit_verify_triggers:
- - patchset-created-event:
- execlude-drafts: true
- exclude-trivial-rebase: false
- exclude-no-code-change: false
- - draft-published-event
- - comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
-
- scm:
- - lf-infra-gerrit-scm:
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
- git-url: '{git-url}/{project}.git'
- refspec: '$GERRIT_REFSPEC'
- branch: '$GERRIT_BRANCH'
- submodule-recursive: '{submodule-recursive}'
- submodule-timeout: '{submodule-timeout}'
- submodule-disable: false
- choosing-strategy: default
-
- triggers:
- - gerrit:
- server-name: '{gerrit-server-name}'
- trigger-on: '{obj:gerrit_verify_triggers}'
- projects:
- - project-compare-type: ANT
- project-pattern: '{project}'
- branches:
- - branch-compare-type: ANT
- branch-pattern: '**/{branch}'
- file-paths: '{obj:gerrit_trigger_file_paths}'
-
- builders:
- - lf-infra-pre-build
- - shell: !include-raw-escape:
- - ../shell/install_go.sh
- - shell: !include-raw-escape:
- - ../shell/build_kni_binary.sh
-
- publishers:
- - lf-infra-publish
-
-- job-template:
- id: kni-verify-deploy-aws
- name: 'kni-{project-name}-verify-deploy-aws'
-
- ######################
- # Default parameters #
- ######################
-
- build-days-to-keep: 30
- build-timeout: 60
- build-node: kni-libvirt
- submodule-recursive: true
-
- #####################
- # Job Configuration #
- #####################
-
- project-type: freestyle
- node: '{build-node}'
-
- properties:
- - lf-infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
-
+- kni_common_deploy: &kni_common_deploy
+ name: kni-common-deploy
+ <<: *kni_common
archive-artifacts: >
**/*.log
- ssh-user-private-key:
credential-id: kni-secrets
key-file-variable: KNI_KEY_PATH
-
- gerrit_trigger_file_paths:
- - compare-type: ANT
- pattern: 'profiles/production.aws/**'
- - compare-type: ANT
- pattern: 'sites/testing.aws.edge-sites.net/**'
- - compare-type: ANT
- pattern: 'base/**'
-
- gerrit_verify_triggers:
- - patchset-created-event:
- exclude-drafts: true
- exclude-trivial-rebase: false
- exclude-no-code-change: false
- - draft-published-event
- - comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
-
scm:
- akraino-lf-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
submodule-disable: false
choosing-strategy: default
basedir: 'installer'
+
+- job-template:
+ id: kni-installer-verify-installer
+ name: '{project-name}-verify-installer'
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: '**'
+ <<: *kni_common
+ build-node: centos7-builder-2c-1g
+
+ builders:
+ - lf-infra-pre-build
+ - shell: !include-raw-escape:
+ - ../shell/install_go.sh
+ - shell: !include-raw-escape:
+ - ../shell/build_kni_installer.sh
+
+- job-template:
+ id: kni-installer-verify-binary
+ name: '{project-name}-verify-binary'
+ <<: *kni_common
+ build-node: centos7-builder-8c-8g
+
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: 'Makefile'
+ - compare-type: ANT
+ pattern: 'cmd/binary.go'
+
triggers:
- gerrit:
server-name: '{gerrit-server-name}'
branch-pattern: '**/{branch}'
file-paths: '{obj:gerrit_trigger_file_paths}'
+ builders:
+ - lf-infra-pre-build
+ - shell: !include-raw-escape:
+ - ../shell/install_go.sh
+ - shell: !include-raw-escape:
+ - ../shell/build_kni_binary.sh
+
+- job-template:
+ id: kni-installer-publish-openshift-install-libvirt-binary
+ name: '{project-name}-publish-openshift-install-libvirt-binary'
+ <<: *kni_common
+ build-node: centos7-builder-8c-8g
+
+ gerrit_trigger_file_paths: []
+ gerrit_build_triggers:
+ - comment-added-contains-event:
+ comment-contains-value: '^build-binary'
+ builders:
+ - lf-infra-pre-build
+ - shell: !include-raw-escape:
+ - ../shell/install_go.sh
+ - shell: !include-raw-escape:
+ - ../shell/build_openshift_install_libvirt_binary.sh
+
+- job-template:
+ id: kni-verify-deploy-aws
+ name: 'kni-{project-name}-verify-deploy-aws'
+ build-node: kni-libvirt
+ <<: *kni_common_deploy
+
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: 'profiles/production.aws/**'
+ - compare-type: ANT
+ pattern: 'sites/testing.aws.edge-sites.net/**'
+ - compare-type: ANT
+ pattern: 'base/**'
+
builders:
- lf-infra-pre-build
- config-file-provider:
- ../shell/install_go.sh
- shell: ./installer/ci/kni_deploy_aws.sh
- publishers:
- - lf-infra-publish
-
- job-template:
id: kni-verify-deploy-libvirt
name: 'kni-{project-name}-verify-deploy-libvirt'
-
- ######################
- # Default parameters #
- ######################
-
- build-days-to-keep: 30
- build-timeout: 60
build-node: kni-libvirt
- submodule-recursive: true
-
- #####################
- # Job Configuration #
- #####################
-
- project-type: freestyle
- node: '{build-node}'
-
- properties:
- - lf-infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
-
- parameters:
- - lf-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- stream: '{stream}'
- lftools-version: '{lftools-version}'
- - string:
- name: ARCHIVE_ARTIFACTS
- default: '{archive-artifacts}'
- description: Artifacts to archive to the logs server.
-
- archive-artifacts: >
- **/*.log
-
- wrappers:
- - lf-infra-wrappers:
- build-timeout: '{build-timeout}'
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
- - credentials-binding:
- - ssh-user-private-key:
- credential-id: kni-secrets
- key-file-variable: KNI_KEY_PATH
+ <<: *kni_common_deploy
gerrit_trigger_file_paths:
- compare-type: ANT
- compare-type: ANT
pattern: 'base/**'
- gerrit_verify_triggers:
- - patchset-created-event:
- exclude-drafts: true
- exclude-trivial-rebase: false
- exclude-no-code-change: false
- - draft-published-event
- - comment-added-contains-event:
- comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
+ builders:
+ - lf-infra-pre-build
+ - config-file-provider:
+ files:
+ - file-id: kni-coreos-pull-secret
+ target: akraino-secrets/coreos-pull-secret
+ - file-id: kni-ssh-pub-key
+ target: akraino-secrets/ssh-pub-key
+ - shell: !include-raw-escape:
+ - ../shell/install_go.sh
+ - shell: ./installer/ci/kni_deploy_libvirt.sh
- triggers:
- - gerrit:
- server-name: '{gerrit-server-name}'
- trigger-on: '{obj:gerrit_verify_triggers}'
- projects:
- - project-compare-type: ANT
- project-pattern: '{project}'
- branches:
- - branch-compare-type: ANT
- branch-pattern: '**/{branch}'
- file-paths: '{obj:gerrit_trigger_file_paths}'
+- job-template:
+ id: kni-verify-deploy-baremetal
+ name: 'kni-{project-name}-verify-deploy-baremetal'
+ <<: *kni_common_deploy
+ build-timeout: 120
+ build-node: kni-baremetal
+
+ gerrit_trigger_file_paths:
+ - compare-type: ANT
+ pattern: 'profiles/production.baremetal/**'
+ - compare-type: ANT
+ pattern: 'sites/testing.baremetal.edge-sites.net/**'
+ - compare-type: ANT
+ pattern: 'base/**'
scm:
- akraino-lf-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
- git-url: '{git-url}/{project}.git'
+ git-url: 'https://github.com/yrobla/testing.baremetal.edge-sites.net'
refspec: '$GERRIT_REFSPEC'
branch: '$GERRIT_BRANCH'
submodule-recursive: '{submodule-recursive}'
submodule-timeout: '{submodule-timeout}'
submodule-disable: false
choosing-strategy: default
- basedir: '{project-name}'
+ basedir: 'testing.baremetal.edge-sites.net'
- akraino-lf-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
git-url: '{git-url}/kni/installer.git'
submodule-disable: false
choosing-strategy: default
basedir: 'installer'
+
builders:
- lf-infra-pre-build
- config-file-provider:
target: akraino-secrets/coreos-pull-secret
- file-id: kni-ssh-pub-key
target: akraino-secrets/ssh-pub-key
- - shell: !include-raw-escape:
- - ../shell/install_go.sh
- - shell: ./installer/ci/kni_deploy_libvirt.sh
-
- publishers:
- - lf-infra-publish
-
-- job-template:
- id: kni-installer-publish-openshift-install-libvirt-binary
- name: '{project-name}-publish-openshift-install-libvirt-binary'
-
- ######################
- # Default parameters #
- ######################
-
- build-days-to-keep: 200
- build-timeout: 60
- build-node: centos7-builder-8c-8g
- submodule-recursive: true
-
- #####################
- # Job Configuration #
- #####################
-
- project-type: freestyle
- node: '{build-node}'
-
- properties:
- - lf-infra-properties:
- build-days-to-keep: '{build-days-to-keep}'
-
- parameters:
- - lf-infra-parameters:
- project: '{project}'
- branch: '{branch}'
- stream: '{stream}'
- lftools-version: '{lftools-version}'
-
- wrappers:
- - lf-infra-wrappers:
- build-timeout: '{build-timeout}'
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
-
- gerrit_build_triggers:
- - comment-added-contains-event:
- comment-contains-value: '^build-binary'
-
- scm:
- - lf-infra-gerrit-scm:
- jenkins-ssh-credential: '{jenkins-ssh-credential}'
- git-url: '{git-url}/{project}.git'
- refspec: '$GERRIT_REFSPEC'
- branch: '$GERRIT_BRANCH'
- submodule-recursive: '{submodule-recursive}'
- submodule-timeout: '{submodule-timeout}'
- submodule-disable: false
- choosing-strategy: default
-
- triggers:
- - gerrit:
- server-name: '{gerrit-server-name}'
- trigger-on: '{obj:gerrit_build_triggers}'
- projects:
- - project-compare-type: ANT
- project-pattern: '{project}'
- branches:
- - branch-compare-type: ANT
- branch-pattern: '**/{branch}'
-
- builders:
- - lf-infra-pre-build
- - shell: !include-raw-escape:
- - ../shell/install_go.sh
- - shell: !include-raw-escape:
- - ../shell/build_openshift_install_libvirt_binary.sh
-
- publishers:
- - lf-infra-publish
+ - shell: sudo -E ./installer/ci/kni_deploy_baremetal.sh
use-build-blocker: true
blocking-jobs:
- 'validation-docker-.*'
- blocking-level: 'NODE'
+ block-level: 'NODE'
scm:
- validation-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
use-build-blocker: true
blocking-jobs:
- 'validation-docker-build-.*'
- blocking-level: 'NODE'
+ block-level: 'NODE'
scm:
- validation-infra-gerrit-scm:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
--- /dev/null
+---
+- project:
+ name: camunda_workflow-info
+ project-name: camunda_workflow
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: camunda_workflow
+ branch: master
--- /dev/null
+---
+- project:
+ name: chomp-info
+ project-name: chomp
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: chomp
+ branch: master
--- /dev/null
+---
+- project:
+ name: connected-vehicle-info
+ project-name: connected-vehicle
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: connected-vehicle
+ branch: master
--- /dev/null
+---
+- project:
+ name: eliot-info
+ project-name: eliot
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: eliot
+ branch: master
--- /dev/null
+---
+- project:
+ name: evp-info
+ project-name: evp
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: evp
+ branch: master
name: icn-daaas
project: 'icn/daaas'
project-name: icn-daaas
- build-node: icn-dev
+ build-node: ubuntu1804-helm-8c-32g
stream:
- master:
branch: master
+ type:
+ - golang:
+ path: microservices
+ script: |-
+ #!/bin/bash
+ cd $WORKSPACE/microservices
+ make all
+ - helm:
+ path: deploy
+ script: |-
+ #!/bin/bash
+ cd $WORKSPACE/deploy
+ make all
jobs:
- - akraino-project-stream-verify
+ - "{project-name}-{stream}-{type}-verify"
+ - "{project-name}-{stream}-{type}-merge"
views:
- project-view
--- /dev/null
+---
+- project:
+ name: icn-info
+ project-name: icn
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: icn
+ branch: master
- 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
- 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
- 'iec-{iecType}-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
+ - gerrit-sonar:
+ sonar-project-file: ""
+ build-node: centos7-builder-2c-1g
+ sonar-properties: |
+ # Required metadata
+ sonar.projectKey=iec
+ sonar.projectName=iec
+ sonar.organization=akraino-edge-stack
+
+ #Source
+ sonar.sources=.
+ sonar.exclusions=**/*_test.go,**/vendor/**
+
+ # Language
+ sonar.language=go
+
+ # Encoding
+ sonar.build.sourceEncoding=UTF-8
+
+ # Inclusions
+ sonar.inclusions=**/**.go
+
+ # Test Execution
+ sonar.tests=.
+ sonar.test.inclusions=**/*_test.go
+ sonar.test.exclusions=**/vendor/**
+
##############
# PARAMETERS #
blocking-jobs:
- '.*-fuel-{deploy_type}-.*'
- '.*-compass-{deploy_type}-.*'
- blocking-level: 'NODE'
+ block-level: 'NODE'
wrappers:
- build-name:
- '.*-{iecType}-deploy-{installer}-{deploy_type}-.*'
- '.*-{iecType}-destroy-{installer}-{deploy_type}-.*'
- '.*-{iecType}-install-.*-{installer}-{deploy_type}-.*'
- blocking-level: 'NODE'
+ block-level: 'NODE'
parameters:
- lf-infra-parameters:
publishers: *publishers
+
########################
# trigger macros
########################
--- /dev/null
+---
+- project:
+ name: iec-info
+ project-name: iec
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: iec
+ branch: master
--- /dev/null
+---
+- project:
+ name: kni-info
+ project-name: kni
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: kni
+ branch: master
jobs:
- kni-verify-deploy-aws
- kni-verify-deploy-libvirt
+ - kni-verify-deploy-baremetal
- project:
name: kni-blueprint-basic-3-masters
jobs:
- kni-verify-deploy-aws
- kni-verify-deploy-libvirt
+ - kni-verify-deploy-baremetal
--- /dev/null
+---
+- project:
+ name: mec-api-framework-info
+ project-name: mec-api-framework
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: mec-api-framework
+ branch: master
--- /dev/null
+---
+- project:
+ name: nc-info
+ project-name: nc
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: nc
+ branch: master
--- /dev/null
+---
+- project:
+ name: ovs-dpdk-airship-info
+ project-name: ovs-dpdk-airship
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: ovs-dpdk-airship
+ branch: master
--- /dev/null
+---
+- project:
+ name: portal-info
+ project-name: portal
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: portal
+ branch: master
--- /dev/null
+---
+- project:
+ name: portal_user_interface-info
+ project-name: portal_user_interface
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: portal_user_interface
+ branch: master
--- /dev/null
+---
+- project:
+ name: postgres_db_schema-info
+ project-name: postgres_db_schema
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: postgres_db_schema
+ branch: master
--- /dev/null
+---
+- project:
+ name: rec-info
+ project-name: rec
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: rec
+ branch: master
--- /dev/null
+---
+- project:
+ name: redfish-info
+ project-name: redfish
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: redfish
+ branch: master
--- /dev/null
+---
+- project:
+ name: regional_controller-info
+ project-name: regional_controller
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: regional_controller
+ branch: master
--- /dev/null
+---
+- project:
+ name: remote-server-os-bootstrap-info
+ project-name: remote-server-os-bootstrap
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: remote-server-os-bootstrap
+ branch: master
--- /dev/null
+---
+- project:
+ name: repo-beta-info
+ project-name: repo-beta
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: repo-beta
+ branch: master
--- /dev/null
+---
+- project:
+ name: sample_vnf-info
+ project-name: sample_vnf
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: sample_vnf
+ branch: master
--- /dev/null
+---
+- project:
+ name: serverless-info
+ project-name: serverless
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: serverless
+ branch: master
set -e
set -o errexit
set -o pipefail
+export PATH=$PATH:/home/jenkins/.local/bin
cwd=$(pwd)
current_user=$(whoami)
logger -s -t "run_blu_val.info" "$*"
}
+has_substring() {
+ [ "$1" != "${2/$1/}" ]
+}
+
change_res_owner() {
# change owner of results created by root in container
if [ -d "$results_dir" ]
}
usage() {
- echo "usage: $0 -n <blueprint_name>" >&2
- echo "[-r <results_dir> results dir">&2
+ echo "usage: $0" >&2
+ echo "[-n <blueprint_name>">&2
echo "[-b <blueprint_yaml> blueprint definition">&2
echo "[-k <k8s_config_dir> k8s config dir">&2
echo "[-j <k8s_master> k8s master">&2
s) ssh_key=${OPTARG} ;;
b) blueprint_yaml=${OPTARG} ;;
l) blueprint_layer=${OPTARG} ;;
- r) results_dir=${OPTARG} ;;
n) blueprint_name=${OPTARG} ;;
u) sh_user=${OPTARG} ;;
o) is_optional="true" ;;
done
# Blueprint name is mandatory
+blueprint_name=${blueprint_name:-$BLUEPRINT}
if [ -z "$blueprint_name" ]
then
usage
# Testing configuration
version=${version:-$VERSION}
-results_dir=${results_dir:-$cwd/results}
+results_dir=$cwd/results
k8s_master=${k8s_master:-$K8S_MASTER_IP}
ssh_user=${sh_user:-$K8S_SSH_USER}
blueprint_layer=${blueprint_layer:-$LAYER}
fi
fi
-if [ ! -d "$cwd/validation" ]
-then
- git clone http://gerrit.akraino.org/r/validation
-fi
-
if [[ -n $blueprint_yaml ]]
then
- cp "$blueprint_yaml" ./validation/bluval/
+ cp "$blueprint_yaml" ./bluval/
fi
-volumes_path="$cwd/validation/bluval/volumes.yaml"
+volumes_path="$cwd/bluval/volumes.yaml"
#update information in volumes yaml
-sed -i -e "/kube_config_dir/{n; s@local: ''@local: '$k8s_config_dir'@}" -e "/blueprint_dir/{n; s@local: ''@local: '$cwd/validation/bluval/'@}" -e "/results_dir/{n; s@local: ''@local: '$results_dir'@}" "$volumes_path"
+sed -i -e "/kube_config_dir/{n; s@local: ''@local: '$k8s_config_dir'@}" -e "/blueprint_dir/{n; s@local: ''@local: '$cwd/bluval/'@}" -e "/results_dir/{n; s@local: ''@local: '$results_dir'@}" "$volumes_path"
if [[ -n $blueprint_layer ]]
then
options+=" -o"
fi
+printf 'ok / PASS /\nerror / FAIL /\n' > ./bluval/rules.txt
+
set +e
# even if the script fails we need to change the owner of results
# shellcheck disable=SC2086
-python3 validation/bluval/blucon.py $options "$blueprint_name"
+python3 bluval/blucon.py $options "$blueprint_name"
if [ $? -ne 0 ]; then
change_res_owner
- error "Bluval validation failed!"
+ error "Bluval validation FAIL "
fi
-
set -e
change_res_owner
+if has_substring "$NODE_NAME" "snd-"
+then
+ echo "In sandbox the logs are not pushed"
+else
+ TIMESTAMP=$(date +'%Y%m%d-%H%M%S')
+ NEXUS_URL=https://nexus.akraino.org/
+ NEXUS_PATH="${LAB_SILO}/bluval_results/${blueprint_name}/${VERSION}/${TIMESTAMP}"
+ BUILD_URL="${JENKINS_HOSTNAME}/job/${JOB_NAME}/${BUILD_NUMBER}/"
+ zip -r results.zip ./results
+ lftools deploy nexus-zip "$NEXUS_URL" logs "$NEXUS_PATH" results.zip
+fi
+
+rm results.zip
+rm -f ~/.netrc
+
--- /dev/null
+---
+- project:
+ name: starlingx-info
+ project-name: starlingx
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: starlingx
+ branch: master
--- /dev/null
+---
+- project:
+ name: ta-info
+ project-name: ta
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: ta
+ branch: master
--- /dev/null
+---
+- project:
+ name: tc-info
+ project-name: tc
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: tc
+ branch: master
--- /dev/null
+---
+- project:
+ name: test_automation-info
+ project-name: test_automation
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: test_automation
+ branch: master
--- /dev/null
+---
+- project:
+ name: umec-info
+ project-name: umec
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: umec
+ branch: master
name: OPTIONAL
default: ''
description: 'If set to yes run optional tests'
+ - string:
+ name: LAB_SILO
+ default: ''
+ description: 'Folder in nexus where the logs are pushed.'
+ - string:
+ name: SETTINGS_FILE
+ default: '/home/jenkins/settings.xml'
+ description: 'Path to credentials file'
- job-template:
name: 'bluval-daily-{stream}'
scm:
- git:
credentials-id: '{jenkins-ssh-credential}'
- url: '{git-url}/ci-management.git'
+ url: '{git-url}/validation.git'
refspec: ''
branches:
- 'refs/heads/{branch}'
timeout: '{submodule-timeout}'
choosing-strategy: default
-
builders:
- description-setter:
description: "POD: $NODE_NAME"
- - shell: ./jjb/shell/run_bluval.sh -n "$BLUEPRINT"
+ - lf-infra-create-netrc:
+ server-id: logs
+ - shell: !include-raw-escape:
+ - ../shell/run_bluval.sh
+
+ publishers:
+ - logparser:
+ use-project-rules: true
+ parse-rules: "./bluval/rules.txt"
+ unstable-on-warning: true
+ fail-on-error: true
+ show-graphs: false
--- /dev/null
+---
+- project:
+ name: validation-info
+ project-name: validation
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: validation
+ branch: master
builders:
- trigger-builds:
- project: 'bluval-daily-{stream}'
+ predefined-parameters:
+ LAB_SILO={validation_lab}
same-node: true
current-parameters: true
--- /dev/null
+---
+- project:
+ name: yaml_builds-info
+ project-name: yaml_builds
+ build-node: centos7-builder-2c-1g
+ jobs:
+ - gerrit-info-yaml-verify
+ project: yaml_builds
+ branch: master