File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,26 @@ jobs:
241241 - store_artifacts :
242242 path : /tmp/logs/test/integration/eks
243243
244+ openshift3_integration_tests :
245+ << : *default_machine_config
246+ steps :
247+ - checkout
248+ - setup_node12
249+ - run :
250+ name : Create temporary directory for logs
251+ command : mkdir -p /tmp/logs/test/integration/openshift3
252+ - run :
253+ name : Integration tests OpenShift 3
254+ command : |
255+ export KUBERNETES_MONITOR_IMAGE_NAME_AND_TAG=$(./scripts/circleci-jobs/setup-openshift3-integration-tests.py)
256+ npm run test:integration:openshift3
257+ - run :
258+ name : Notify Slack on failure
259+ command : ./scripts/slack-notify-failure.sh "staging-openshift3-integration-tests-${CIRCLE_SHA1}"
260+ when : on_fail
261+ - store_artifacts :
262+ path : /tmp/logs/test/integration/openshift3
263+
244264 openshift4_integration_tests :
245265 << : *default_machine_config
246266 steps :
@@ -437,6 +457,10 @@ workflows:
437457 requires :
438458 - build_image
439459 << : *staging_branch_only_filter
460+ - openshift3_integration_tests :
461+ requires :
462+ - build_image
463+ << : *staging_branch_only_filter
440464 - openshift4_integration_tests :
441465 requires :
442466 - build_image
Original file line number Diff line number Diff line change 1+ #!/usr/bin/python3
2+
3+ import os
4+ import subprocess
5+
6+ dockerhub_user = os .getenv ('DOCKERHUB_USER' )
7+ dockerhub_password = os .getenv ('DOCKERHUB_PASSWORD' )
8+
9+ subprocess .getoutput ("docker login --username " + dockerhub_user + " --password " + dockerhub_password )
10+
11+ circle_branch = os .getenv ("CIRCLE_BRANCH" )
12+ if circle_branch == "staging" :
13+ image_tag = "staging-candidate"
14+ else :
15+ image_tag = "discardable"
16+ circle_sha1 = os .getenv ("CIRCLE_SHA1" )
17+ kubernetes_monitor_image_name_and_tag = "snyk/kubernetes-monitor:" + image_tag + "-" + circle_sha1
18+
19+ subprocess .getoutput ("docker pull " + kubernetes_monitor_image_name_and_tag )
20+
21+ print (kubernetes_monitor_image_name_and_tag )
You can’t perform that action at this time.
0 commit comments