# pipeline job. The pipeline scripts are maintained in Airship CI repository.
- job-template:
- id: bml_integration_test_centos
- name: '{job_prefix}_{name}_bml_integration_test_centos'
+ id: bml_integration_tests_centos
+ name: '{job_prefix}_{name}_bml_integration_tests_centos'
description: "K8s CAPIM3 v1alpha5 integration tests for {repo[org]}/{repo[name]} on CentOS in Bare Metal Lab."
project-type: pipeline
defaults: global
# pipeline job. The pipeline scripts are maintained in Airship CI repository.
- job-template:
- id: bml_integration_test_ubuntu
- name: '{job_prefix}_{name}_bml_integration_test_ubuntu'
- description: "K8s CAPIM3 v1alpha5 integration tests for {repo[org]}/{repo[name]} on Ubuntu in Bare Metal Lab."
+ id: bml_master_integration_tests_centos
+ name: '{job_prefix}_master_bml_integration_tests_centos'
+ description: "K8s CAPIM3 v1alpha5 integration tests for {repo[org]}/{repo[name]} on CentOS in Bare Metal Lab."
project-type: pipeline
defaults: global
disabled: False
description: 'Target branch of the PR'
- string:
name: DISTRIBUTION
- default: 'ubuntu'
+ default: 'centos'
description: 'Distribution to use for the tests. Can be ubuntu or centos'
- string:
name: CAPI_VERSION
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
- default: 'Ubuntu'
+ default: 'Centos'
description: 'Distribution to use for the target host.'
- string:
name: TARGET_NODE_MEMORY
num-to-keep: 300
artifact-days-to-keep: -1
artifact-num-to-keep: -1
- - github:
- url: https://github.com/{repo[org]}/{repo[name]}
triggers:
- - github-pull-request:
- admin-list:
- - '{ci_github_admin_user}'
- org-list: "{ci_github_whitelist_org}"
- cron: 'H/5 * * * *'
- auth-id: "{ci_ghprb_auth_id}"
- trigger-phrase: '((.|\n)*\s)?/test-integration-bml-ubuntu(\s(.|\n)*)?'
- skip-build-phrase: '/skip-test'
- only-trigger-phrase: True
- github-hooks: True
- permit-all: False
- auto-close-on-fail: False
- allow-whitelist-orgs-as-admins: True
- white-list-target-branches:
- - 'master'
- - 'main'
- status-context: "test-integration-bml-ubuntu"
- success-status: "Passed"
- failure-status: "Failed"
- error-status: "Error"
- cancel-builds-on-update: True
+ - timed: "H 2 * * *"
+
pipeline-scm:
scm:
- git:
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "0 4 * * *"
pipeline-scm:
scm:
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "15 4 * * *"
pipeline-scm:
scm:
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "30 4 * * *"
pipeline-scm:
scm:
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "45 4 * * *"
pipeline-scm:
scm:
- job-template:
id: capi_capm3_v1a5_master_e2e_tests_centos
- name: '{job_prefix}_{name}_master_e2e_test_centos'
+ name: '{job_prefix}_master_e2e_test_centos'
description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on CentOS."
project-type: pipeline
defaults: global
- job-template:
id: capi_capm3_v1a5_master_e2e_tests_ubuntu
- name: '{job_prefix}_{name}_master_e2e_test_ubuntu'
+ name: '{job_prefix}_master_e2e_test_ubuntu'
description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
project-type: pipeline
defaults: global
name: TESTS_FOR
default: "feature_tests_centos"
description: 'Tests for pivoting and remediation.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
name: TESTS_FOR
default: "feature_tests"
description: 'Tests for pivoting and remediation.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
name: TESTS_FOR
default: "feature_tests_upgrade"
description: 'Tests for upgrade.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
name: TESTS_FOR
default: "feature_tests_centos"
description: 'Tests for pivoting and remediation.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
name: TESTS_FOR
default: "feature_tests"
description: 'Tests for pivoting and remediation.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
name: TESTS_FOR
default: "feature_tests_upgrade"
description: 'Tests for upgrade.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
- feature_tests_ubuntu
- feature_tests_centos
- feature_tests_upgrade_ubuntu
- - bml_integration_test_centos
- - bml_integration_test_ubuntu
+ - bml_integration_tests_centos
- project:
name: 'metal3io_project_infra_cleanup'
- master_feature_tests_ubuntu
- master_feature_tests_centos
- master_feature_tests_upgrade_ubuntu
- - bml_integration_test_centos
- - bml_integration_test_ubuntu
+ - bml_integration_tests_centos
+ - bml_master_integration_tests_centos
repo:
org: "metal3-io"
set -o errexit
set -o pipefail
-# NOTE (fdegir): we need to remove $WORKSPACE and clone infra/engine repository
-# as infra/engine is what drives the deployment
+# NOTE (akash): ONAP_TEST_BRANCH is set to master as
+# no other branch is available
+export ONAP_TEST_BRANCH="master"
+
+# NOTE (akash): we need to remove $WORKSPACE and clone infra/test repository
+# as infra/test is what drives the deployment
if [[ "$GERRIT_PROJECT" != "infra/test" ]]; then
cd "$HOME" && /bin/rm -rf "$WORKSPACE"
echo "Info : Cloning infra/engine repository"
git clone -q https://gerrit.nordix.org/infra/test.git "$WORKSPACE"
cd "$WORKSPACE"
- export STACK_VERSION="$GERRIT_BRANCH"
fi
echo "Info : Packaging test stack $STACK_TYPE"
cd "$WORKSPACE/test"
-./package.sh -s "$STACK_TYPE" -b "$STACK_VERSION" -d "$DISTRO" -v
+./package.sh -s "$STACK_TYPE" -b "$ONAP_TEST_BRANCH" -d "$DISTRO" -v
# vim: set ts=2 sw=2 expandtab: