|
10 | 10 | |
11 | 11 | cp operators/scripts/pipeline/* ./scripts/pipeline/ |
12 | 12 | cp -rf operators/scripts/build ./scripts/ |
| 13 | + cp -rf operators/scripts/configure-cluster ./scripts |
| 14 | + cp -rf operators/scripts/test ./scripts/ |
13 | 15 |
|
14 | 16 | ./scripts/pipeline/code-setup-stage.sh |
15 | 17 | |
@@ -121,39 +123,7 @@ acceptance-test: |
121 | 123 | #!/usr/bin/env bash |
122 | 124 | echo $STAGE |
123 | 125 |
|
124 | | - PERIODIC_SCAN=$(get_env periodic-rescan) |
125 | | - PERIODIC_SCAN="$(echo "$PERIODIC_SCAN" | tr '[:upper:]' '[:lower:]')" |
126 | | -
|
127 | | - if [[ ! -z "$PERIODIC_SCAN" && "$PERIODIC_SCAN" != "false" && "$PERIODIC_SCAN" != "no" ]]; then |
128 | | - echo "Skipping acceptance-test. This is a periodic run that is only meant to produce CVE information." |
129 | | - exit 0 |
130 | | - fi |
131 | | -
|
132 | | - SKIP_ACCEPTANCE_TEST=$(get_env SKIP_ACCEPTANCE_TEST) |
133 | | - SKIP_ACCEPTANCE_TEST="$(echo "$SKIP_ACCEPTANCE_TEST" | tr '[:upper:]' '[:lower:]')" |
134 | | - if [[ ! -z "$SKIP_ACCEPTANCE_TEST" && "$SKIP_ACCEPTANCE_TEST" != "false" && "$SKIP_ACCEPTANCE_TEST" != "no" ]]; then |
135 | | - echo "Skipping acceptance-test, SKIP_ACCEPTANCE_TEST=$SKIP_ACCEPTANCE_TEST" |
136 | | - exit 0 |
137 | | - fi |
138 | | -
|
139 | | - export intranetId_USR=$(get_env ebc_id) |
140 | | - export intranetId_PSW=$(get_env ebc_pw) |
141 | | - export ebcEnvironment=prod |
142 | | -
|
143 | | - cd scripts/pipeline |
144 | | - rm -rf .git |
145 | | - git clone https://$(get_env git-token)@github.ibm.com/elastic-build-cloud/ebc-gateway-http.git |
146 | | -
|
147 | | - export arch=$(get_env architecture) |
148 | | - export test_arch=$(get_env test-architecture) |
149 | | - |
150 | | - if [[ "$test_arch" == "ZXP" && "$arch" == "ZXP" ]]; then |
151 | | - source runTest.sh Z |
152 | | - source runTest.sh X |
153 | | - source runTest.sh P |
154 | | - else |
155 | | - source runTest.sh X |
156 | | - fi |
| 126 | + ./scripts/pipeline/acceptance-test-stage.sh |
157 | 127 |
|
158 | 128 | scan-artifact: |
159 | 129 | abort_on_failure: false |
|
0 commit comments