name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
properties:
- build-discarder:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
+ - 'main'
status-context: "test-integration-airship-centos"
success-status: "Passed"
failure-status: "Failed"
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
properties:
- build-discarder:
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for K8s CAPM3 integration test.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: bml_integration_tests_centos
+ name: '{job_prefix}_{name}_bml_integration_tests_centos'
+ description: "K8s CAPIM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS in Bare Metal Lab."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'master'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'master'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'centos'
+ description: 'Distribution to use for the tests. Can be ubuntu or centos'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Centos'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ 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-centos(\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-centos"
+ success-status: "Passed"
+ failure-status: "Failed"
+ error-status: "Error"
+ cancel-builds-on-update: True
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: 'jenkins/jobs/bml_integration_tests.pipeline'
+ lightweight-checkout: False
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for K8s CAPM3 integration test.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: bml_master_integration_tests_centos
+ name: '{job_prefix}_master_bml_integration_tests_centos'
+ description: "K8s CAPIM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS in Bare Metal Lab."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'master'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'master'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'centos'
+ description: 'Distribution to use for the tests. Can be ubuntu or centos'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Centos'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 300
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: -1
+
+ triggers:
+ - timed: "H 2 * * *"
+
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: 'jenkins/jobs/bml_integration_tests.pipeline'
+ lightweight-checkout: False
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- master
+ - main
status-context: "integration-tests"
success-status: "Passed"
failure-status: "Failed"
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.21.2"
- description: 'Kubernetes version'
properties:
- build-discarder:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
+ - 'main'
- 'release-0.4'
- 'release-0.0'
status-context: "test-v1a4-centos-integration"
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.21.2"
- description: 'Kubernetes version'
properties:
- build-discarder:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
+ - 'main'
- 'release-0.4'
- 'release-0.0'
status-context: "test-v1a4-integration"
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.21.2"
- description: 'Kubernetes version'
properties:
- build-discarder:
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "0 4 * * *"
pipeline-scm:
scm:
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.21.2"
- description: 'Kubernetes version'
properties:
- build-discarder:
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "15 4 * * *"
pipeline-scm:
scm:
- string:
name: CAPI_VERSION
default: 'v1alpha4'
- description: 'Cluster API version. Can be v1alpha4.'
+ description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
default: 'v1alpha5'
- description: 'Cluster API provider Metal3 version. Can be v1alpha5 or v1alpha4.'
+ description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
default: 'Centos'
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
-
+
properties:
- build-discarder:
days-to-keep: 30
org-list: "{ci_github_whitelist_org}"
cron: 'H/5 * * * *'
auth-id: "{ci_ghprb_auth_id}"
- trigger-phrase: '((.|\n)*\s)?/test-centos-integration(\s(.|\n)*)?'
+ trigger-phrase: '((.|\n)*\s)?/test-v1a5-centos-integration(\s(.|\n)*)?'
skip-build-phrase: '/skip-test'
only-trigger-phrase: True
github-hooks: True
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
- status-context: "test-centos-integration"
+ - 'main'
+ - 'release-0.5'
+ - 'release-0.1'
+ status-context: "test-v1a5-centos-integration"
success-status: "Passed"
failure-status: "Failed"
error-status: "Error"
- string:
name: CAPI_VERSION
default: 'v1alpha4'
- description: 'Cluster API version. Can be v1alpha4.'
+ description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
default: 'v1alpha5'
- description: 'Cluster API provider Metal3 version. Can be v1alpha5 or v1alpha4.'
+ description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
default: 'Ubuntu'
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
-
+
properties:
- build-discarder:
days-to-keep: 30
org-list: "{ci_github_whitelist_org}"
cron: 'H/5 * * * *'
auth-id: "{ci_ghprb_auth_id}"
- trigger-phrase: '((.|\n)*\s)?/test-integration(\s(.|\n)*)?'
+ trigger-phrase: '((.|\n)*\s)?/test-v1a5-integration(\s(.|\n)*)?'
skip-build-phrase: '/skip-test'
only-trigger-phrase: True
github-hooks: True
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
- status-context: "test-integration"
+ - 'main'
+ - 'release-0.5'
+ - 'release-0.1'
+ status-context: "test-v1a5-integration"
success-status: "Passed"
failure-status: "Failed"
error-status: "Error"
- string:
name: CAPI_VERSION
default: 'v1alpha4'
- description: 'Cluster API version. Can be v1alpha4.'
+ description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
default: 'v1alpha5'
- description: 'Cluster API provider Metal3 version. Can be v1alpha5 or v1alpha4.'
+ description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
default: 'Centos'
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
-
+
properties:
- build-discarder:
days-to-keep: 30
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "30 4 * * *"
pipeline-scm:
scm:
- string:
name: CAPI_VERSION
default: 'v1alpha4'
- description: 'Cluster API version. Can be v1alpha4.'
+ description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
default: 'v1alpha5'
- description: 'Cluster API provider Metal3 version. Can be v1alpha5 or v1alpha4.'
+ description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
default: 'Ubuntu'
name: TARGET_NODE_MEMORY
default: 4096
description: 'RAM size of the target host.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
-
+
properties:
- build-discarder:
days-to-keep: 30
artifact-num-to-keep: -1
triggers:
- - timed: "H 4 * * *"
+ - timed: "45 4 * * *"
pipeline-scm:
scm:
# pipeline job. The pipeline scripts are maintained in Airship CI repository.
- job-template:
- id: capi_capm3_v1a5_e2e_tests_centos
- name: '{job_prefix}_{name}_e2e_test_centos'
+ id: capi_capm3_e2e_v1a5_tests_centos
+ name: '{job_prefix}_{name}_v1a5_e2e_test_centos'
description: "K8s CAPI metal3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on CentOS. "
project-type: pipeline
defaults: global
name: TESTS_FOR
default: "e2e_tests"
description: 'Tests using the e2e framework.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
properties:
- build-discarder:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
+ - 'main'
+ - 'release-0.5'
status-context: "test-v1a5-centos-e2e"
success-status: "Passed"
failure-status: "Failed"
# pipeline job. The pipeline scripts are maintained in Airship CI repository.
- job-template:
- id: capi_capm3_v1a5_e2e_tests_ubuntu
- name: '{job_prefix}_{name}_e2e_test_ubuntu'
+ id: capi_capm3_e2e_v1a5_tests_ubuntu
+ name: '{job_prefix}_{name}_v1a5_e2e_test_ubuntu'
description: "K8s CAPI metal3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on Ubuntu. "
project-type: pipeline
defaults: global
name: TESTS_FOR
default: "e2e_tests"
description: 'Tests using the e2e framework.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
properties:
- build-discarder:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
+ - 'main'
+ - 'release-0.5'
status-context: "test-v1a5-e2e"
success-status: "Passed"
failure-status: "Failed"
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for K8s CAPI Baremetal e2e tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: capi_capm3_e2e_v1b1_tests_centos
+ name: '{job_prefix}_{name}_v1b1_e2e_test_centos'
+ description: "K8s CAPI metal3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on CentOS. "
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'master'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'master'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'centos'
+ description: 'Distribution to use for the tests. Can be ubuntu or centos'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version. Can be v1beta1.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version. Can be v1beta1.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Centos'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+ - string:
+ name: TESTS_FOR
+ default: "e2e_tests"
+ description: 'Tests using the e2e framework.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ 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-v1b1-centos-e2e(\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-v1b1-centos-e2e"
+ success-status: "Passed"
+ failure-status: "Failed"
+ error-status: "Error"
+ cancel-builds-on-update: True
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for K8s CAPI Baremetal e2e tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: capi_capm3_e2e_v1b1_tests_ubuntu
+ name: '{job_prefix}_{name}_v1b1_e2e_test_ubuntu'
+ description: "K8s CAPI metal3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on Ubuntu. "
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'master'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'master'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'ubuntu'
+ description: 'Distribution to use for the tests. Can be ubuntu or centos'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version. Can be v1beta1.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version. Can be v1beta1.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Ubuntu'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+ - string:
+ name: TESTS_FOR
+ default: "e2e_tests"
+ description: 'Tests using the e2e framework.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ 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-v1b1-e2e(\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-v1b1-e2e"
+ success-status: "Passed"
+ failure-status: "Failed"
+ error-status: "Error"
+ cancel-builds-on-update: True
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
# pipeline job. The pipeline scripts are maintained in metal3 project infra repository.
- job-template:
- id: capi_capm3_v1a5_master_e2e_tests_centos
- name: '{job_prefix}_{name}_master_e2e_test_centos'
+ id: capi_capm3_master_e2e_v1a5_tests_centos
+ name: '{job_prefix}_master_e2e_v1a5_test_centos'
description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on CentOS."
project-type: pipeline
defaults: global
description: 'Project github repo name'
- string:
name: ghprbActualCommit
- default: 'master'
+ default: 'release-0.5'
description: 'CI Repo branch for triggering manual build'
- string:
name: ghprbAuthorRepoGitUrl
description: 'CI Repo URL for triggering manual build'
- string:
name: ghprbTargetBranch
- default: 'master'
+ default: 'release-0.5'
description: 'Target branch of the PR'
- string:
name: DISTRIBUTION
name: TESTS_FOR
default: "e2e_tests"
description: 'Tests using the e2e framework.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
properties:
- build-discarder:
# pipeline job. The pipeline scripts are maintained in metal3 project infra repository.
- job-template:
- id: capi_capm3_v1a5_master_e2e_tests_ubuntu
- name: '{job_prefix}_{name}_master_e2e_test_ubuntu'
+ id: capi_capm3_master_e2e_v1a5_tests_ubuntu
+ name: '{job_prefix}_master_e2e_v1a5_test_ubuntu'
description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
project-type: pipeline
defaults: global
description: 'Project github repo name'
- string:
name: ghprbActualCommit
- default: 'master'
+ default: 'release-0.5'
description: 'CI Repo branch for triggering manual build'
- string:
name: ghprbAuthorRepoGitUrl
description: 'CI Repo URL for triggering manual build'
- string:
name: ghprbTargetBranch
- default: 'master'
+ default: 'release-0.5'
description: 'Target branch of the PR'
- string:
name: DISTRIBUTION
name: TESTS_FOR
default: "e2e_tests"
description: 'Tests using the e2e framework.'
- - string:
- name: KUBERNETES_VERSION
- default: "v1.22.0"
- description: 'Kubernetes version'
properties:
- build-discarder:
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for CAPM3 E2E tests.
+# This job can be triggered manually or periodically by the CI system. It creates a
+# pipeline job. The pipeline scripts are maintained in metal3 project infra repository.
+
+- job-template:
+ id: capi_capm3_master_e2e_v1b1_tests_centos
+ name: '{job_prefix}_master_e2e_v1b1_test_centos'
+ description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on CentOS."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'main'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'main'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'centos'
+ description: 'Distribution to use for the tests.'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Centos'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+ - string:
+ name: NUM_NODES
+ default: 4
+ description: 'Number of libvirt VMs.'
+ - string:
+ name: TESTS_FOR
+ default: "e2e_tests"
+ description: 'Tests using the e2e framework.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 300
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: -1
+
+ triggers:
+ - timed: "H 20 * * *"
+
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for CAPM3 E2E tests.
+# This job can be triggered manually or periodically by the CI system. It creates a
+# pipeline job. The pipeline scripts are maintained in metal3 project infra repository.
+
+- job-template:
+ id: capi_capm3_master_e2e_v1b1_tests_ubuntu
+ name: '{job_prefix}_master_e2e_v1b1_test_ubuntu'
+ description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'main'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'main'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'ubuntu'
+ description: 'Distribution to use for the tests.'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Ubuntu'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+ - string:
+ name: NUM_NODES
+ default: 4
+ description: 'Number of libvirt VMs.'
+ - string:
+ name: TESTS_FOR
+ default: "e2e_tests"
+ description: 'Tests using the e2e framework.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 300
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: -1
+
+ triggers:
+ - timed: "H 20 * * *"
+
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for CAPM3 v1beta1 integration tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: capm3_v1b1_integration_tests_centos
+ name: '{job_prefix}_{name}_v1b1_integration_test_centos'
+ description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'main'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'main'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'centos'
+ description: 'Distribution to use for the tests. Can be ubuntu or centos'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Centos'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ 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-v1b1-centos-integration(\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-v1b1-centos-integration"
+ success-status: "Passed"
+ failure-status: "Failed"
+ error-status: "Error"
+ cancel-builds-on-update: True
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
\ No newline at end of file
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for CAPM3 v1beta1 integration tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: capm3_v1b1_integration_tests_ubuntu
+ name: '{job_prefix}_{name}_v1b1_integration_test_ubuntu'
+ description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on Ubuntu."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'main'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'main'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'ubuntu'
+ description: 'Distribution to use for the tests. Can be ubuntu or centos'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Ubuntu'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ 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-v1b1-integration(\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-v1b1-integration"
+ success-status: "Passed"
+ failure-status: "Failed"
+ error-status: "Error"
+ cancel-builds-on-update: True
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
\ No newline at end of file
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for CAPM3 v1beta1 master integration tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: capm3_v1b1_master_integration_tests_centos
+ name: '{job_prefix}_master_v1b1_integration_test_centos'
+ description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'master'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'master'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'centos'
+ description: 'Distribution to use for the tests.'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Centos'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 300
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: -1
+
+ triggers:
+ - timed: "H 4 * * *"
+
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
--- /dev/null
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for CAPM3 v1beta1 master integration tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Airship CI repository.
+
+- job-template:
+ id: capm3_v1b1_master_integration_tests_ubuntu
+ name: '{job_prefix}_master_v1b1_integration_test_ubuntu'
+ description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on Ubuntu."
+ project-type: pipeline
+ defaults: global
+ disabled: False
+ concurrent: True
+ parameters:
+ - string:
+ name: PROJECT_REPO_ORG
+ default: '{repo[org]}'
+ description: 'Project github repo org name'
+ - string:
+ name: PROJECT_REPO_NAME
+ default: '{repo[name]}'
+ description: 'Project github repo name'
+ - string:
+ name: ghprbActualCommit
+ default: 'master'
+ description: 'CI Repo branch for triggering manual build'
+ - string:
+ name: ghprbAuthorRepoGitUrl
+ default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+ description: 'CI Repo URL for triggering manual build'
+ - string:
+ name: ghprbTargetBranch
+ default: 'master'
+ description: 'Target branch of the PR'
+ - string:
+ name: DISTRIBUTION
+ default: 'ubuntu'
+ description: 'Distribution to use for the tests.'
+ - string:
+ name: CAPI_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API version.'
+ - string:
+ name: CAPM3_VERSION
+ default: 'v1beta1'
+ description: 'Cluster API provider Metal3 version.'
+ - string:
+ name: TARGET_NODE_OS
+ default: 'Ubuntu'
+ description: 'Distribution to use for the target host.'
+ - string:
+ name: TARGET_NODE_MEMORY
+ default: 4096
+ description: 'RAM size of the target host.'
+
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 300
+ artifact-days-to-keep: -1
+ artifact-num-to-keep: -1
+
+ triggers:
+ - timed: "H 4 * * *"
+
+ pipeline-scm:
+ scm:
+ - git:
+ url: "{ci_github_repo}"
+ credentials-id: "{ci_github_jenkins_credentials_id}"
+ branches:
+ - '{branch|master}'
+ name: 'origin'
+ refspec: '+refs/heads/*:refs/remotes/origin/*'
+ wipe-workspace: True
+ honor-refspec: True
+ shallow-clone: False
+ script-path: "{ci_github_pipeline}"
+ lightweight-checkout: False
description: 'Distribution to use for the tests.'
- string:
name: CAPI_VERSION
- default: 'v1alpha4'
+ default: 'v1beta1'
description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
- default: 'v1alpha5'
+ default: 'v1beta1'
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
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:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
- - 'release-0.4'
+ - 'main'
+ - 'release-0.5'
+ - 'release-0.1'
status-context: "test-features-centos"
success-status: "Passed"
failure-status: "Failed"
description: 'Distribution to use for the tests.'
- string:
name: CAPI_VERSION
- default: 'v1alpha4'
+ default: 'v1beta1'
description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
- default: 'v1alpha5'
+ default: 'v1beta1'
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
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:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
- - 'release-0.4'
+ - 'main'
+ - 'release-0.5'
+ - 'release-0.1'
status-context: "test-features"
success-status: "Passed"
failure-status: "Failed"
description: 'Distribution to use for the tests.'
- string:
name: CAPI_VERSION
- default: 'v1alpha4'
+ default: 'v1beta1'
description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
- default: 'v1alpha5'
+ default: 'v1beta1'
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
name: TESTS_FOR
default: "feature_tests_upgrade"
description: 'Tests for upgrade.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
- - 'release-0.4'
+ - 'main'
+ - 'release-0.5'
+ - 'release-0.1'
status-context: "test-upgrade-features"
success-status: "Passed"
failure-status: "Failed"
- string:
name: IRONIC_IMAGE_REPO_COMMIT
default: 'HEAD'
- description: 'Ironic Image repo commit hash to build'
+ description: 'Ironic Image repository commit hash to build'
- string:
name: IRONIC_IMAGE_BRANCH
default: 'master'
- description: 'Ironic image repo branch to build'
+ description: 'Ironic image repository branch to build'
- string:
name: IRONIC_INSPECTOR_REFSPEC
default: ''
description: 'Gerrit refspec of the patch we want to test. Example: refs/changes/84/800084/22'
- string:
- name: IPA_REPO_COMMIT
+ name: IPA_COMMIT
default: 'HEAD'
- description: 'Ironic Python Agent repo commit hash to build'
+ description: 'Ironic Python Agent repository commit hash to build'
- string:
name: IPA_BRANCH
default: 'master'
- description: 'Ironic Python Agent repo branch to build'
+ description: 'Ironic Python Agent repository branch to build'
+ - string:
+ name: BMO_COMMIT
+ default: 'HEAD'
+ description: 'Bare Metal Operator repository commit hash to build'
+ - string:
+ name: BMO_BRANCH
+ default: 'master'
+ description: 'Bare Metal Operator repository branch to build'
+ - string:
+ name: IPA_BUILDER_BRANCH
+ default: 'master'
+ description: 'Ironic Python Agent builder repository tool branch'
+ - string:
+ name: IPA_BUILDER_COMMIT
+ default: 'HEAD'
+ description: 'Ironic Python Agent builder repository tool commit'
+ - string:
+ name: METAL3_DEV_ENV_BRANCH
+ default: 'master'
+ description: 'Metal3 dev env repository branch'
+ - string:
+ name: METAL3_DEV_ENV_COMMIT
+ default: 'HEAD'
+ description: 'Metal3 dev env repository commit'
- string:
name: STAGING
default: 'true'
disabled: False
concurrent: True
parameters:
+ - string:
+ name: IRONIC_REFSPEC
+ default: ''
+ description: 'Gerrit refspec of the patch we want to test. Example: refs/changes/84/800084/22'
+ - string:
+ name: IRONIC_IMAGE_REPO_COMMIT
+ default: 'HEAD'
+ description: 'Ironic Image repository commit hash to build'
+ - string:
+ name: IRONIC_IMAGE_BRANCH
+ default: 'master'
+ description: 'Ironic image repository branch to build'
+ - string:
+ name: IRONIC_INSPECTOR_REFSPEC
+ default: ''
+ description: 'Gerrit refspec of the patch we want to test. Example: refs/changes/84/800084/22'
+ - string:
+ name: IPA_COMMIT
+ default: 'HEAD'
+ description: 'Ironic Python Agent repository commit hash to build'
+ - string:
+ name: IPA_BRANCH
+ default: 'master'
+ description: 'Ironic Python Agent repository branch to build'
+ - string:
+ name: BMO_COMMIT
+ default: 'HEAD'
+ description: 'Bare Metal Operator repository commit hash to build'
+ - string:
+ name: BMO_BRANCH
+ default: 'master'
+ description: 'Bare Metal Operator repository branch to build'
+ - string:
+ name: IPA_BUILDER_BRANCH
+ default: 'master'
+ description: 'Ironic Python Agent builder repository tool branch'
+ - string:
+ name: IPA_BUILDER_COMMIT
+ default: 'HEAD'
+ description: 'Ironic Python Agent builder repository tool commit'
+ - string:
+ name: METAL3_DEV_ENV_BRANCH
+ default: 'master'
+ description: 'Metal3 dev env repository branch'
+ - string:
+ name: METAL3_DEV_ENV_COMMIT
+ default: 'HEAD'
+ description: 'Metal3 dev env repository commit'
- string:
name: PROJECT_REPO_ORG
default: '{repo[org]}'
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- 'master'
+ - 'main'
status-context: "test-ipa"
success-status: "Passed"
failure-status: "Failed"
allow-whitelist-orgs-as-admins: True
white-list-target-branches:
- master
+ - main
status-context: "linter-tests"
success-status: "Passed"
failure-status: "Failed"
description: 'Distribution to use for the tests.'
- string:
name: CAPI_VERSION
- default: 'v1alpha4'
+ default: 'v1beta1'
description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
- default: 'v1alpha5'
+ default: 'v1beta1'
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
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:
artifact-num-to-keep: -1
triggers:
- - timed: "H 18 * * *"
+ - timed: "H 17 * * *"
pipeline-scm:
scm:
description: 'Distribution to use for the tests.'
- string:
name: CAPI_VERSION
- default: 'v1alpha4'
+ default: 'v1beta1'
description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
- default: 'v1alpha5'
+ default: 'v1beta1'
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
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:
artifact-num-to-keep: -1
triggers:
- - timed: "H 18 * * *"
+ - timed: "H 17 * * *"
pipeline-scm:
scm:
description: 'Distribution to use for the tests.'
- string:
name: CAPI_VERSION
- default: 'v1alpha4'
+ default: 'v1beta1'
description: 'Cluster API version.'
- string:
name: CAPM3_VERSION
- default: 'v1alpha5'
+ default: 'v1beta1'
description: 'Cluster API provider Metal3 version.'
- string:
name: TARGET_NODE_OS
name: TESTS_FOR
default: "feature_tests_upgrade"
description: 'Tests for upgrade.'
+ - string:
+ name: PROMETHEUS_MONITORING
+ default: "true"
+ description: 'Enable Prometheus metrics'
properties:
- build-discarder:
artifact-num-to-keep: -1
triggers:
- - timed: "H H(21-23) * * *"
+ - timed: "H 17 * * *"
pipeline-scm:
scm:
name: KUBERNETES_VERSION
default: "v1.22.0"
description: 'Kubernetes version'
-
+
properties:
- build-discarder:
days-to-keep: 30
triggers:
- timed: "0 5 */15 * *"
+ - github-pull-request:
+ included-regions:
+ - "ci/images/.*"
+ - "ci/scripts/image_scripts/.*"
pipeline-scm:
scm:
- project:
name: 'metal3io_project_infra'
branch: '${{ghprbActualCommit}}'
- ci_github_whitelist_org:
- - nordix-airship
repo:
org: "metal3-io"
name: "project-infra"
- capi_bm_v1a4_integration_tests_ubuntu
- capi_bm_v1a5_integration_tests_centos
- capi_bm_v1a5_integration_tests_ubuntu
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
- feature_tests_ubuntu
- feature_tests_centos
- feature_tests_upgrade_ubuntu
+ - bml_integration_tests_centos
- project:
name: 'metal3io_project_infra_cleanup'
- ci_github_whitelist_org:
- - nordix-airship
repo:
org: "metal3-io"
name: "project-infra"
- capi_bm_v1a4_integration_tests_ubuntu
- capi_bm_v1a5_integration_tests_centos
- capi_bm_v1a5_integration_tests_ubuntu
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
- feature_tests_ubuntu
- project:
- capi_bm_v1a4_integration_tests_ubuntu
- capi_bm_v1a5_integration_tests_centos
- capi_bm_v1a5_integration_tests_ubuntu
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
- project:
name: "metal3io_metal3_dev_env"
- capi_bm_v1a5_integration_tests_ubuntu
- capi_bm_v1a5_master_integration_tests_centos
- capi_bm_v1a5_master_integration_tests_ubuntu
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
+ - capm3_v1b1_master_integration_tests_centos
+ - capm3_v1b1_master_integration_tests_ubuntu
- feature_tests_ubuntu
- feature_tests_centos
- feature_tests_upgrade_ubuntu
- master_feature_tests_ubuntu
- master_feature_tests_centos
- master_feature_tests_upgrade_ubuntu
+ - bml_integration_tests_centos
+ - bml_master_integration_tests_centos
repo:
org: "metal3-io"
- capi_bm_v1a4_integration_tests_ubuntu
- capi_bm_v1a5_integration_tests_centos
- capi_bm_v1a5_integration_tests_ubuntu
- - capi_capm3_v1a5_e2e_tests_ubuntu
- - capi_capm3_v1a5_e2e_tests_centos
- - capi_capm3_v1a5_master_e2e_tests_ubuntu
- - capi_capm3_v1a5_master_e2e_tests_centos
+ - capi_capm3_e2e_v1a5_tests_ubuntu
+ - capi_capm3_e2e_v1a5_tests_centos
+ - capi_capm3_master_e2e_v1a5_tests_ubuntu
+ - capi_capm3_master_e2e_v1a5_tests_centos
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
+ - capi_capm3_e2e_v1b1_tests_centos
+ - capi_capm3_e2e_v1b1_tests_ubuntu
+ - capi_capm3_master_e2e_v1b1_tests_centos
+ - capi_capm3_master_e2e_v1b1_tests_ubuntu
- project:
- capi_bm_v1a4_integration_tests_ubuntu
- capi_bm_v1a5_integration_tests_centos
- capi_bm_v1a5_integration_tests_ubuntu
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
- project:
name: "metal3io_ironic_ipa_downloader"
jobs:
- capi_bm_v1a4_integration_tests_ubuntu
- capi_bm_v1a5_integration_tests_ubuntu
+ - capm3_v1b1_integration_tests_centos
+ - capm3_v1b1_integration_tests_ubuntu
stream:
- 'master':
branch: '{stream}'
- k8s-version: 'master'
+ k8s-version: '1.19'
deploy-scenario: 'onap-full-nofeature'
- 'guilin':
branch: '{stream}'
unstable: false
notbuilt: false
- offline:
- disabled: false
+ disabled: true
execution-mode: offline-deployment
successful: false
failed: false
openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-cicd'
# This should be
- dependency-jobs: 'onap-verify-package-{distro}-{stream}'
- dependency-job-var: 'TRIGGER_onap_verify_package_{distro}_{stream}_BUILD_RESULT'
+ dependency-jobs: 'onap-verify-tox-{stream}'
+ dependency-job-var: 'TRIGGER_onap_verify_tox_{stream}_BUILD_RESULT'
jobs:
- 'onap-verify-{environment-type}-deploy-test-{distro}-{cloud}-{type}-{stream}'
wrappers:
- build-timeout:
timeout: 600
+ - ssh-agent-credentials:
+ users:
+ - 'nordixinfra-nordix-gerrit-ssh'
- credentials-binding:
- file:
credential-id: '{openrc-credentials-file}'
single-use: True
- build-timeout:
timeout: 300
+ - ssh-agent-credentials:
+ users:
+ - 'nordixinfra-nordix-gerrit-ssh'
- credentials-binding:
- username-password-separated:
credential-id: 'nordix-cicd-arm-credentials'
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:
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: '{project}'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
project-name: etos-environment-provider-worker
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: 'etos-environment-provider'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile.workers'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: '{project}'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: '{project}'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: '{project}'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'Dockerfile'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: 'etos-test-runner-containers'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'base/Dockerfile'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: 'etos-test-runner-containers'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'go/Dockerfile'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: 'etos-test-runner-containers'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'python/Dockerfile'
stream:
- - 'master':
- branch: 'master'
+ - 'main':
+ branch: 'main'
project-git-repo: 'etos-test-runner-containers'
project-build-macro: 'eiffel-global-container-build-macro'
image-dockerfile: 'rust/Dockerfile'
wrappers:
- credentials-binding:
- username-password-separated:
- credential-id: nordix-eiffel-github-token
+ credential-id: nordixinfra-eiffel-username-personal-access-token
username: NORDIXINFRA_GITHUB_USERNAME
password: NORDIXINFRA_GITHUB_TOKEN
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+# this job gets triggered when a change is merged to
+# integration/simulators/A1-policy-enforcement-simulator project on ONAP Gerrit.
+
+- project:
+ name: integration-simulators-A1-policy-enforcement-simulator-rebase
+ project: integration/simulators/A1-policy-enforcement-simulator
+ project-name: integration-simulators-A1-policy-enforcement-simulator
+
+ jobs:
+ - 'onap-{project-name}-rebase'
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# this job gets triggered when push-upstream is commented on a change on Nordix Gerrit.
+- project:
+ name: integration-simulators-A1-policy-enforcement-simulator-push-upstream
+ project: integration/simulators/A1-policy-enforcement-simulator
+ project-name: integration-simulators-A1-policy-enforcement-simulator
+
+ jobs:
+ - 'onap-{project-name}-push-upstream'
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# this job gets triggered when push-upstream is commented on a change on Nordix Gerrit.
+- project:
+ name: integration-usecases-A1-policy-enforcement-r-apps-push-upstream
+ project: integration/usecases/A1-policy-enforcement-r-apps
+ project-name: integration-usecases-A1-policy-enforcement-r-apps
+
+ jobs:
+ - 'onap-{project-name}-push-upstream'
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+# this job gets triggered when a change is merged to
+# integration/usecases/A1-policy-enforcement-r-apps project on ONAP Gerrit.
+
+- project:
+ name: integration-usecases-A1-policy-enforcement-r-apps-rebase
+ project: integration/usecases/A1-policy-enforcement-r-apps
+ project-name: integration-usecases-A1-policy-enforcement-r-apps
+
+ jobs:
+ - 'onap-{project-name}-rebase'
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+# this job gets triggered when a change is merged to
+# integration/usecases/A1-policy-enforcement project on ONAP Gerrit.
+
+- project:
+ name: integration-usecases-A1-policy-enforcement-rebase
+ project: integration/usecases/A1-policy-enforcement
+ project-name: integration-usecases-A1-policy-enforcement
+
+ jobs:
+ - 'onap-{project-name}-rebase'
--- /dev/null
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2021 Nordix Foundation.
+# ================================================================================
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# this job gets triggered when push-upstream is commented on a change on Nordix Gerrit.
+- project:
+ name: integration-usecases-A1-policy-enforcement-upstream-jobs
+ project: integration/usecases/A1-policy-enforcement
+ project-name: integration-usecases-A1-policy-enforcement
+
+ jobs:
+ - 'onap-{project-name}-push-upstream'
- nordix-gerrit-parameters
- string:
name: HELM_URL
- default: 'https://get.helm.sh/helm-v3.3.4-linux-amd64.tar.gz'
+ default: 'https://get.helm.sh/helm-v3.5.0-linux-amd64.tar.gz'
description: Specifies the URL to fetch Helm.
- string:
name: HELM_PUSH_URL
.modeling.enabled=true,
.msb.enabled=true,
.multicloud.enabled=true,
+ .multicloud.multicloud-starlingx.enabled=true,
+ .multicloud.multicloud-vio.enabled=true,
+ .multicloud.multicloud-windriver.enabled=true,
.nbi.enabled=true,
.oof.enabled=true,
.platform.enabled=true,
- 'master':
branch: '{stream}'
jdk-version: java-11
+ - 'istanbul':
+ branch: '{stream}'
+ jdk-version: java-11
- '20.2':
branch: '{stream}'
jdk-version: java-11
- job-template:
name: 'oransc-{project-name}-verify-java'
- node: oransc-ubuntu1804
+ node: oransc-ubuntu2004
disabled: false
concurrent: true
name: MVN
default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
description: Path to mvn executable
+ - string:
+ name: GO_PATH
+ default: '/usr/local/go/bin'
+ description: Path to go executable
scm:
- git-scm-gerrit:
set -o nounset
set -o pipefail
-cd ${WORKSPACE}
+cd $WORKSPACE
+echo "Info: Update Java alternatives"
+echo "----------------------------------------------------"
+sudo /usr/bin/update-alternatives --install /usr/bin/java java "${JAVA_HOME}/bin/java" 1
+sudo /usr/bin/update-alternatives --install /usr/bin/javac javac "${JAVA_HOME}/bin/javac" 1
+sudo /usr/bin/update-alternatives --install /usr/bin/javadoc javadoc "${JAVA_HOME}/bin/javadoc" 1
+sudo /usr/bin/update-alternatives --install /usr/bin/jconsole jconsole "${JAVA_HOME}/bin/jconsole" 1
+sudo /usr/bin/update-alternatives --install /usr/lib/jvm/java-openjdk java_sdk_openjdk "${JAVA_HOME}" 1
+sudo /usr/bin/update-alternatives --set java "${JAVA_HOME}/bin/java"
+sudo /usr/bin/update-alternatives --set javac "${JAVA_HOME}/bin/javac"
+sudo /usr/bin/update-alternatives --set javadoc "${JAVA_HOME}/bin/javadoc"
+sudo /usr/bin/update-alternatives --set jconsole "${JAVA_HOME}/bin/jconsole"
+sudo /usr/bin/update-alternatives --set java_sdk_openjdk "${JAVA_HOME}"
echo "Info: Java version"
echo "----------------------------------------------------"
-${JAVA_HOME}/bin/java -version
+echo -e "\tJava version: $(java -version 2>&1 | head -n 1)"
+echo -e "\tJava compiler version: $(javac -version)"
+echo -e "\tJAVA_HOME set to: ${JAVA_HOME}"
echo "----------------------------------------------------"
echo "Downloading Maven $MVN_VERSION from $MVN_URL"
wget -q $MVN_URL && unzip -qq apache-maven-${MVN_VERSION}-bin.zip
echo "Info: Maven version"
echo "----------------------------------------------------"
-${MVN} -version
+$MVN -version
+echo "----------------------------------------------------"
+echo "Downloading ONAP Maven XML for build process from oparent repo"
+echo "----------------------------------------------------"
+git clone "https://git.onap.org/oparent" $WORKSPACE/oparent
+cd $WORKSPACE/oparent
+# Check if a commitid parameter is given to specify a version of
+# oparent repository to checkout. If commitid is not provided, the
+# latest master version is used as default for backward
+# compatibility for existing ONAP jobs.
+set +o nounset
+if [[ -v ${MVN_SETTINGS_XML_VERSION} ]]; then
+ git checkout "${MVN_SETTINGS_XML_VERSION}"
+fi
+set -o nounset
+
+# if MVN_PARAMS set then use them otherwise default to ""
+LOCAL_MVN_PARAMS=""
+set +o nounset
+if [[ -n ${MVN_PARAMS} ]]; then
+ LOCAL_MVN_PARAMS=${MVN_PARAMS}
+fi
+set -o nounset
+
+# Copy Onap maven settings.xml to Jenkins home directory
+if [ ! -d /home/jenkins/.m2 ]; then
+ mkdir -p /home/jenkins/.m2/
+fi
+cp settings.xml /home/jenkins/.m2/settings.xml
+cd $WORKSPACE
+
+POMFILE="-f $WORKSPACE/pom.xml"
+set +o nounset
+if [[ -n ${SUBDIRECTORY} ]]; then
+ POMFILE="-f $WORKSPACE/$SUBDIRECTORY/pom.xml"
+ echo "Setting pom.xml to use to $POMFILE"
+fi
+set -o nounset
+
+# Set PATH to go executable
+export PATH=${PATH}:${GO_PATH}
+
echo "----------------------------------------------------"
echo "Proceeding with unit test"
echo "----------------------------------------------------"
-${MVN} clean install -B -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
\ No newline at end of file
+$MVN clean install -U -B $POMFILE -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn $LOCAL_MVN_PARAMS