Skip to content

Commit

Permalink
Add secrets to the openshift CI for fixing the 'GitHubPullRequestPlug…
Browse files Browse the repository at this point in the history
…in' test (#1074)

Signed-off-by: Ihor Okhrimenko <[email protected]>
  • Loading branch information
Ohrimenko1988 authored Oct 27, 2021
1 parent b0b20c8 commit df78c26
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .ci/openshift-ci/common-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ patchTestPodConfig(){
sed -i "s@TEST_USERSTORY@${TEST_USERSTORY}@g" plugins-test-pod.yaml
sed -i "s@POD_NAME@${TEST_POD_NAME}@g" plugins-test-pod.yaml
sed -i "s@OCP_TOKEN@${E2E_OPENSHIFT_TOKEN}@g" plugins-test-pod.yaml
sed -i "s@GH_USERNAME@${GH_USERNAME}@g" plugins-test-pod.yaml
sed -i "s@GH_PASSWORD@${GH_PASSWORD}@g" plugins-test-pod.yaml

cat plugins-test-pod.yaml
}
Expand Down
4 changes: 4 additions & 0 deletions .ci/openshift-ci/plugins-test-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
image: quay.io/eclipse/che-e2e:next
imagePullPolicy: Always
env:
- name: TS_GITHUB_USERNAME
value: GH_USERNAME
- name: TS_GITHUB_PASSWORD
value: GH_PASSWORD
- name: E2E_OPENSHIFT_TOKEN
value: OCP_TOKEN
- name: TS_SELENIUM_OCP_USERNAME
Expand Down
6 changes: 2 additions & 4 deletions .ci/openshift-ci/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
source "${SCRIPT_DIR}"/common-functions.sh

runTests() {
runTest "JavaPlugin" "java11-plugin-test"

# Disabled because of known bug https://github.com/eclipse/che/issues/20075
# runTest "TypescriptPlugin" "typescript-debug-plugins"
runTest "VscodeYamlPlugin" "nodejs-zmecm"
runTest "TypescriptPlugin" "typescript-debug-plugins"
}

setupTestEnvironment
Expand Down

0 comments on commit df78c26

Please sign in to comment.