Commit 5cd2b052 authored by Anuj Gupta's avatar Anuj Gupta
Browse files

Merge branch 'ibm-policy-pipeline' into 'master'

IBM Policy service pipeline integration

See merge request !218
parents a10491ee 38123a6b
Pipeline #36625 passed with stages
in 23 seconds
.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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment