Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new jenkins job for upgrade and to run weekly #245

Merged
merged 1 commit into from
Jun 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,18 @@ Here are the trigger phrases for individual checks:
- `/nephe-test-e2e-azure`: Run end-to-end Azure tests on a Kind cluster with Azure VMs
- `/nephe-test-e2e-eks`: Run end-to-end AWS tests on EKS cluster with AWS VMs
- `/nephe-test-e2e-aks`: Run end-to-end Azure tests on AKS cluster with Azure VMs
- `/nephe-test-e2e-aws-upgrade`: Run end-to-end AWS upgrade tests on a Kind cluster with AWS VMs
- `/nephe-test-e2e-azure-upgrade`: Run end-to-end Azure upgrade tests on a Kind cluster with Azure VMs
- `/nephe-test-e2e-eks-linux-agent`: Run end-to-end AWS tests on EKS cluster with AWS VMs with Linux agent installed
- `/nephe-test-e2e-aks-linux-agent`: Run end-to-end Azure tests on AKS cluster with Azure VMs with Linux agent installed
- `/nephe-test-e2e-eks-windows-agent`: Run end-to-end AWS tests on EKS cluster with AWS VMs with Windows agent installed
- `/nephe-test-e2e-aks-windows-agent`: Run end-to-end Azure tests on AKS cluster with Azure VMs with Windows agent installed

Here are the trigger phrases for groups of checks:

- `/nephe-test-e2e-kind`: Run end-to-end tests on a Kind cluster.
- `/nephe-test-e2e-agentless`: Run all the end-to-end tests on a kind cluster.
- `/nephe-test-e2e-agentless-upgrade`: Run all the end-to-end upgrade tests on a kind cluster.
- `/nephe-test-e2e-agented`: Run all the end-to-end tests on AKS and EKS cluster with VM agent installed.
- `/nephe-test-e2e-all`: Runs all the end-to-end tests.

For more information about the tests we run as part of CI, please refer to
Expand Down
6 changes: 6 additions & 0 deletions ci/jenkins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,9 @@ cloud will be automatically updated with the new changes.
- `nephe-test-e2e-azure-for-pull-request`: Run end-to-end Azure tests on a Kind cluster with Azure VMs
- `nephe-test-e2e-eks-for-pull-request`: Run end-to-end AWS tests on EKS cluster with AWS VMs
- `nephe-test-e2e-aks-for-pull-request`: Run end-to-end Azure tests on AKS cluster with Azure VMs
- `nephe-test-e2e-aws-upgrade-for-pull-request`: Run end-to-end AWS upgrade tests on a Kind cluster with AWS VMs
- `nephe-test-e2e-azure-upgrade-for-pull-request`: Run end-to-end Azure upgrade tests on a Kind cluster with Azure VMs
- `nephe-test-e2e-with-agent-eks-for-pull-request`: Run end-to-end AWS tests on EKS cluster with AWS VMs with Linux agent installed.
- `nephe-test-e2e-with-agent-aks--for-pull-request`: Run end-to-end Azure tests on AKS cluster with Azure VMs with Linux agent installed.
- `nephe-test-e2e-with-windows-eks-for-pull-request`: Run end-to-end AWS tests on EKS cluster with AWS VMs with Windows agent installed.
- `nephe-test-e2e-with-windows-aks-for-pull-request`: Run end-to-end Azure tests on AKS cluster with Azure VMs with Windows agent installed.
2 changes: 1 addition & 1 deletion ci/jenkins/jobs/default.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- defaults:
name: global
ghpr_auth: ""
ghpr_auth: "15795878-237c-4156-a264-2206937fd042"
nephe_admin_list: ["liu4480", "reachjainrahul", "Anandkumar26", "shenmo3"]
nephe_org_list: [""]
nephe_white_list: []
Expand Down
2 changes: 1 addition & 1 deletion ci/jenkins/jobs/job-templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
wrappers: '{wrappers}'

- job-template:
name: '{test_name}'
name: '{test_name}-cron'
node: '{node}'
triggers: '{triggers}'
builders: '{builders}'
Expand Down
41 changes: 21 additions & 20 deletions ci/jenkins/jobs/macros.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
- builder:
name: builder-slack-notify-declare
builders:
- shell: |-
#!/bin/bash
set -ex

declare -a nanny
nanny=("rahulj" "kumaranand")

d=$(date '+%d')
r=$((d % ${#nanny[@]}))
chosen_nanny=${nanny[$r]}

cat > chosen_nanny <<EOF
chosen_nanny=${chosen_nanny}
EOF

cat chosen_nanny

- builder:
name: deploy-vm-and-run-aws-tests-for-nephe
builders:
Expand All @@ -38,6 +18,27 @@
--vcCluster "${VC_CLUSTER}" --resourcePool "${RESOURCEPOOLPATH}" --vcNetwork "${VMC_NETWORK_1}" \
--virtualMachine "${VIRTUAL_MACHINE}" --goVcPassword "${GOVC_PASSWORD}" --testType azure \
--dockerUser "${DOCKER_USERNAME}" --dockerPassword "${DOCKER_PASSWORD}"
- builder:
name: deploy-vm-and-run-aws-upgrade-tests-for-nephe
builders:
- shell: |-
#!/bin/bash
./ci/jenkins/nephe-ci.sh --buildnumber "${BUILD_NUMBER}" --vchost "${VC_HOST}" \
--vcuser "${VC_USER}" --datacenter "${DATACENTERNAME}" --datastore "${DATA_STORE}" \
--vcCluster "${VC_CLUSTER}" --resourcePool "${RESOURCEPOOLPATH}" --vcNetwork "${VMC_NETWORK_1}" \
--virtualMachine "${VIRTUAL_MACHINE}" --goVcPassword "${GOVC_PASSWORD}" --testType aws-upgrade \
--dockerUser "${DOCKER_USERNAME}" --dockerPassword "${DOCKER_PASSWORD}"
- builder:
name: deploy-vm-and-run-azure-upgrade-tests-for-nephe
builders:
- shell: |-
#!/bin/bash
./ci/jenkins/nephe-ci.sh --buildnumber "${BUILD_NUMBER}" --vchost "${VC_HOST}" \
--vcuser "${VC_USER}" --datacenter "${DATACENTERNAME}" --datastore "${DATA_STORE}" \
--vcCluster "${VC_CLUSTER}" --resourcePool "${RESOURCEPOOLPATH}" --vcNetwork "${VMC_NETWORK_1}" \
--virtualMachine "${VIRTUAL_MACHINE}" --goVcPassword "${GOVC_PASSWORD}" --testType azure-upgrade \
--dockerUser "${DOCKER_USERNAME}" --dockerPassword "${DOCKER_PASSWORD}"

- builder:
name: deploy-vm-and-run-eks-tests-for-nephe
builders:
Expand Down
Loading