Merge "Add Airship v1beta1 jobs"
authorFeruzjon Muyassarov <feruzjon.muyassarov@est.tech>
Fri, 29 Oct 2021 11:10:12 +0000 (11:10 +0000)
committerNordix Gerrit <gerrit@nordix.org>
Fri, 29 Oct 2021 11:10:12 +0000 (11:10 +0000)
16 files changed:
jjb/airship/job_bml_integration_tests_centos.yml [moved from jjb/airship/job_bml_integration_test_centos.yml with 97% similarity]
jjb/airship/job_bml_master_integration_tests_centos.yml [moved from jjb/airship/job_bml_integration_test_ubuntu.yml with 76% similarity]
jjb/airship/job_capi_bm_v1a4_master_integration_tests_centos.yml
jjb/airship/job_capi_bm_v1a4_master_integration_tests_ubuntu.yml
jjb/airship/job_capi_bm_v1a5_master_integration_tests_centos.yml
jjb/airship/job_capi_bm_v1a5_master_integration_tests_ubuntu.yml
jjb/airship/job_capi_capm3_v1a5_master_e2e_tests_centos.yml
jjb/airship/job_capi_capm3_v1a5_master_e2e_tests_ubuntu.yml
jjb/airship/job_feature_tests_centos.yml
jjb/airship/job_feature_tests_ubuntu.yml
jjb/airship/job_feature_tests_upgrade_ubuntu.yml
jjb/airship/job_master_feature_tests_centos.yml
jjb/airship/job_master_feature_tests_ubuntu.yml
jjb/airship/job_master_feature_tests_upgrade_ubuntu.yml
jjb/airship/projects.yml
jjb/cloud-infra/scripts/test-package.sh

similarity index 97%
rename from jjb/airship/job_bml_integration_test_centos.yml
rename to jjb/airship/job_bml_integration_tests_centos.yml
index 5d3204a3735b3558e6c85be1aa2dbe3dde01d677..c4772fde1b01c36301339f8d192f48f4874924c6 100644 (file)
@@ -25,8 +25,8 @@
 # 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
similarity index 76%
rename from jjb/airship/job_bml_integration_test_ubuntu.yml
rename to jjb/airship/job_bml_master_integration_tests_centos.yml
index fc7bd32c101a42c9c19af03a777d3655570d50d8..b7b84ee590a3d789f19c1668b5ae30dff0c833ef 100644 (file)
@@ -25,9 +25,9 @@
 # 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
@@ -55,7 +55,7 @@
         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
@@ -67,7 +67,7 @@
         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:
index 619ad065789f56152b9a1fea12b011fd997bcdcb..424f1e67e59aec694613314d4f04c485db8e8580 100644 (file)
@@ -82,7 +82,7 @@
         artifact-num-to-keep: -1
 
     triggers:
-      - timed: "H 4 * * *"
+      - timed: "0 4 * * *"
 
     pipeline-scm:
       scm:
index f6cf7f939d977dcf9ec1a5511557979d20167aa7..8fb68ae6aa93ecc65a0565cb23a2eed53a39eec7 100644 (file)
@@ -82,7 +82,7 @@
         artifact-num-to-keep: -1
 
     triggers:
-      - timed: "H 4 * * *"
+      - timed: "15 4 * * *"
 
     pipeline-scm:
       scm:
index bf404b0193d05996b4bb74708c52eb4ea159af69..7cc3fc0b4f5903662b182488c839abefa46ba79b 100644 (file)
@@ -82,7 +82,7 @@
         artifact-num-to-keep: -1
 
     triggers:
-      - timed: "H 4 * * *"
+      - timed: "30 4 * * *"
 
     pipeline-scm:
       scm:
index 725555098d5bae37146bf1b81916e13cf9029bb8..3c6efafbcd92bc38f5612b4fe3cd3103796299c7 100644 (file)
@@ -82,7 +82,7 @@
         artifact-num-to-keep: -1
 
     triggers:
-      - timed: "H 4 * * *"
+      - timed: "45 4 * * *"
 
     pipeline-scm:
       scm:
index 64be3f64191a64760e05d09b65dbba8d78db7232..d99a90547aa38e1411c1830733908e102ba9f4a2 100644 (file)
@@ -26,7 +26,7 @@
 
 - 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
index 12c4673c305edb9a008256faac06084ff92a645a..6f8ce00c775a630e63d118fb5c2ae728ab97aafd 100644 (file)
@@ -26,7 +26,7 @@
 
 - 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
index e880a630914190534503d6f7232dccd9e05514eb..dc59e7bf39f2f563ca978525300adde1299063df 100644 (file)
         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:
index 980dd6ff73989a2ec7202147ab2478372be06de0..da8b7376882ae8a66cb2efe61d9e97b94ac41b59 100644 (file)
         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:
index d623ac20a1ff3f3fffa8afd79035d1ea44084c7b..2f26569fdd5ee573e4c3b875e73aa9477c3a2f5a 100644 (file)
         name: TESTS_FOR
         default: "feature_tests_upgrade"
         description: 'Tests for upgrade.'
+    - string:
+        name: PROMETHEUS_MONITORING
+        default: "true"
+        description: 'Enable Prometheus metrics'
 
     properties:
     - build-discarder:
index a5d9184678d967611be1447f788d0aa93333cf4b..b55eaad89e55efb2b6d6e5378079add314ab2998 100644 (file)
         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:
index c2dbbf4c3b1dc52713cf63ae168daf73b42807f1..c9ef2df4cc8fadca77f47cc10615ec5d5683de64 100644 (file)
         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:
index 24837df5690fe4458477c1e28e10d3b2b9f0d850..729cab0612fc0073a7a118a833f82ca7d206e2ed 100644 (file)
         name: TESTS_FOR
         default: "feature_tests_upgrade"
         description: 'Tests for upgrade.'
+    - string:
+        name: PROMETHEUS_MONITORING
+        default: "true"
+        description: 'Enable Prometheus metrics'
 
     properties:
     - build-discarder:
index 4d3e04c90a50f49061b943655d59e34f1e707a93..f63765f3f69dfd6c947a86ce9668ec4dfe966f4b 100644 (file)
@@ -69,8 +69,7 @@
     - 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"
index 8685c337d441b236c75bc3d8d82d23766a488749..d9b9b53275fd16d1b482320a8facf97e975a5f8f 100644 (file)
 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: