Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
CI-CD Pipelines
Commits
38123a6b
Commit
38123a6b
authored
Apr 20, 2021
by
Gokul Nagare
Committed by
Anuj Gupta
Apr 20, 2021
Browse files
IBM Policy service pipeline integration
parent
a10491ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
cloud-providers/ibm-policy.yml
0 → 100644
View file @
38123a6b
.ibm
:
tags
:
[
'
osdu-medium'
]
image
:
openshift/origin-cli
environment
:
name
:
IBM
variables
:
IBM_OPENSHIFT_PROJECT
:
og-cicd
IBM_OPENSHIFT_PRESHIP_PROJECT
:
og-devops
before_script
:
-
oc login --token=$IBM_OPENSHIFT_TOKEN --server=$IBM_OPENSHIFT_URL
.ibm_variables
:
variables
:
# IBM Services
ENTITLEMENTS_BASE_URL
:
$IBM_ENTITLEMENTS_BASE_URL
ENTITLEMENTS_BASE_PATH
:
$IBM_ENTITLEMENTS_BASE_PATH
LEGAL_BASE_URL
:
$IBM_LEGAL_BASE_URL
OPA_URL
:
$IBM_OPA_URL
ibm-deploy
:
extends
:
-
.ibm
-
.ibm_variables
stage
:
deploy
needs
:
[
'
compile-and-unit-test'
]
script
:
-
echo "In IBM deploy"
-
oc project $IBM_OPENSHIFT_PROJECT
-
oc get bc/$CI_PROJECT_NAME 2> /dev/null || oc new-build --name $CI_PROJECT_NAME --binary --strategy source --image-stream openshift/python:3.8
-
oc start-build $CI_PROJECT_NAME --from-dir=. --follow
-
oc get service $CI_PROJECT_NAME 2> /dev/null || oc new-app $CI_PROJECT_NAME
only
:
variables
:
-
$IBM == 'true'
#ibm-test:
# stage: integration
# image: python:3.8
# needs: ["ibm-deploy"]
# allow_failure: true
# extends:
# - .ibm_variables
# script:
# - pip install virtualenv
# - virtualenv venv
# - source venv/bin/activate
# - pip install --upgrade pip
# - pip install wheel pytest pytest-cov
# - pip install -r requirements.txt
# - pip install -r requirements_dev.txt
# - svctoken=$(python devops/scripts/ibm_jwt_client.py)
# - cd tests/integration
# - python ./gen_postman_env.py --token ${svctoken} --base_url ${SERVICE_HOST_WELLBORE} --cloud_provider ${CLOUD_PROVIDER} --acl_domain ${ACL_DOMAIN} --legal_tag ${LEGAL_TAG} --data_partition ${DATA_PARTITION_ID}
# - pytest ./functional --environment="./generated/postman_environment.json" --insecure --timeout-request=15000 --filter-tag=basic
# only:
# variables:
# - $IBM == 'true'
# except:
# variables:
# - $IBM_SKIP_TEST == 'true'
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment