Skip to content

Commit

Permalink
refactored the code and reduced the number of lines
Browse files Browse the repository at this point in the history
  • Loading branch information
valen-mascarenhas14 committed Sep 26, 2023
1 parent 4d481a3 commit 36ba844
Show file tree
Hide file tree
Showing 40 changed files with 112 additions and 336 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/client-main.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/client-release-1.10.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/client-release-1.11.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/client-release-1.9.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/eventing-main.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down Expand Up @@ -308,12 +304,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-rekt-tests.sh --run-tests
command:
- runner.sh
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/eventing-release-1.10.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down Expand Up @@ -308,12 +304,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-rekt-tests.sh --run-tests
command:
- runner.sh
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/eventing-release-1.11.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down Expand Up @@ -308,12 +304,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-rekt-tests.sh --run-tests
command:
- runner.sh
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/eventing-release-1.9.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down Expand Up @@ -308,12 +304,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-rekt-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/operator-main.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/operator-release-1.10.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/operator-release-1.11.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
8 changes: 2 additions & 6 deletions prow/jobs/generated/knative/operator-release-1.9.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
./test/e2e-tests.sh --run-tests
command:
- runner.sh
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/serving-main.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -791,12 +791,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
export TEST_OPTIONS=$TEST_OPTIONS' --ingressendpoint '${server_vm}
./test/e2e-tests.sh --run-tests --kourier-version latest
command:
Expand Down Expand Up @@ -876,12 +872,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
export TEST_OPTIONS=$TEST_OPTIONS' --ingressendpoint '${server_vm}
./test/e2e-tests.sh --run-tests --contour-version latest
command:
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/serving-release-1.10.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
export TEST_OPTIONS=$TEST_OPTIONS' --ingressendpoint '${server_vm}
./test/e2e-tests.sh --run-tests --kourier-version latest
command:
Expand Down Expand Up @@ -343,12 +339,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
export TEST_OPTIONS=$TEST_OPTIONS' --ingressendpoint '${server_vm}
./test/e2e-tests.sh --run-tests --contour-version latest
command:
Expand Down
16 changes: 4 additions & 12 deletions prow/jobs/generated/knative/serving-release-1.11.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,12 +258,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
export TEST_OPTIONS=$TEST_OPTIONS' --ingressendpoint '${server_vm}
./test/e2e-tests.sh --run-tests --kourier-version latest
command:
Expand Down Expand Up @@ -343,12 +339,8 @@ periodics:
- bash
- -c
- |
cat /opt/cluster/vm-script > /tmp/vm.sh
cat /opt/cluster/ci-script > /tmp/connect.sh
chmod +x /tmp/vm.sh
chmod +x /tmp/connect.sh
server_vm=$(. /tmp/vm.sh)
. /tmp/connect.sh ${CI_JOB} ${server_vm}
server_vm="$(sh /opt/cluster/vm-script)"
source /opt/cluster/ci-script "${CI_JOB}" "${server_vm}"
export TEST_OPTIONS=$TEST_OPTIONS' --ingressendpoint '${server_vm}
./test/e2e-tests.sh --run-tests --contour-version latest
command:
Expand Down
Loading

0 comments on commit 36ba844

Please sign in to comment.