Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Partition
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
System
Partition
Commits
9b3b1b8f
Commit
9b3b1b8f
authored
1 year ago
by
Yauheni Rykhter (EPAM)
Committed by
Oleksandr Kosse (EPAM)
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
GONRG-8943: update pipeline
parent
dc53826c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!503
GONRG-8943: update pipeline
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
devops/core-plus/pipeline.yml
+65
-62
65 additions, 62 deletions
devops/core-plus/pipeline.yml
with
65 additions
and
62 deletions
devops/core-plus/pipeline.yml
+
65
−
62
View file @
9b3b1b8f
...
...
@@ -8,73 +8,14 @@ gc-containerize-gitlab:core-plus:
BUILD_ARGS
:
"
--build-arg
PORT=$GC_PORT"
BUILD_PATH
:
"
devops/core-plus/build/Dockerfile"
IMAGE_NAME
:
"
partition-core-plus"
TEST_IMAGE
:
"
partition-core-plus-test"
script
:
-
!reference
[
.gc_set_image_name
,
script
]
-
docker build $EXTRA_TAG -f $BUILD_PATH $BUILD_ARGS .
-
docker build -t $CI_REGISTRY_IMAGE/$TEST_IMAGE:$CI_COMMIT_SHORT_SHA -f $BUILD_PATH $BUILD_ARGS .
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker push $CI_REGISTRY_IMAGE/$IMAGE_NAME
rules
:
-
if
:
"
$CI_COMMIT_BRANCH
=~
/^release/"
when
:
never
-
if
:
"
$CI_COMMIT_TAG"
when
:
never
-
if
:
"
$PROTECTED
==
'1'"
when
:
on_success
gc-baremetal-test
:
tags
:
[
"
osdu-medium"
]
extends
:
-
.maven
stage
:
integration
needs
:
[
"
compile-and-unit-test"
,
"
gc-containerize-gitlab:core-plus"
]
retry
:
1
services
:
-
name
:
postgres
command
:
[
"
postgres"
,
"
-c"
,
"
shared_buffers=256MB"
,
"
-c"
,
"
max_connections=200"
]
-
name
:
$CI_REGISTRY_IMAGE/partition-core-plus:$CI_COMMIT_SHORT_SHA
alias
:
partition-service-image
variables
:
PARTITION_POSTGRESQL_DB_NAME
:
partition_db
#Used from bootstrapping script
PARTITION_POSTGRESQL_USERNAME
:
usr_partition_pg
#Used from bootstrapping script
PARTITION_POSTGRESQL_PASSWORD
:
partition_pg
#Used from bootstrapping script
POSTGRESQL_PORT
:
5432
#used from the docker script
POSTGRESQL_HOST
:
postgres
#used from the docker script
POSTGRESQL_USERNAME
:
postgres
#used from the docker script
POSTGRES_PASSWORD
:
$POSTGRES_PASSWORD
#used to start the postgres service alongside the runner
POSTGRESQL_DATABASE
:
postgres
#default postgres database for scripts to connect
POSTGRESQL_PASSWORD
:
$POSTGRES_PASSWORD
#password for above db
TEST_OPENID_PROVIDER_CLIENT_ID
:
integration-tester
#integration testing
TEST_OPENID_PROVIDER_CLIENT_SECRET
:
$GC_OPENID_PROVIDER_CLIENT_SECRET
#integration testing
TEST_NO_ACCESS_OPENID_PROVIDER_CLIENT_ID
:
no-access-tester
#integration testing
TEST_NO_ACCESS_OPENID_PROVIDER_CLIENT_SECRET
:
$GC_NO_ACCESS_OPENID_PROVIDER_CLIENT_SECRET
#integration testing
TEST_OPENID_PROVIDER_URL
:
https://keycloak.ref.gcp.gnrg-osdu.projects.epam.com/realms/osdu
#token provider for testing config, need to change it later
DATA_PARTITION_ID
:
test-partition
#for default configs
CUSTOM_PROJECT_NAME
:
"
partition-core-plus"
#required for integration tests
CLIENT_TENANT
:
osdu
#int tests
ENVIRONMENT
:
dev
#if this is not specified, it just assumes that the service is running locally
PARTITION_BASE_URL
:
http://partition-service-image:8080/
#url where integration tests are hitting
#CI_DEBUG_SERVICES: "true" #flag for debugging the services in the runner
PARTITION_POSTGRES_URL
:
$PARTITION_POSTGRES_URL
script
:
-
echo "--- Install psql ---"
-
apt-get update && apt-get install -y postgresql-client libpq-dev jq
-
echo "--- Bootstrap tables ---"
-
chmod +x devops/core-plus/test/bootstrap.sh
-
devops/core-plus/test/bootstrap.sh
-
echo "--- Run integration tests ---"
-
>
$MAVEN_BUILD . test-results.log
verify -DdisableXmlReport=true
--file testing/pom.xml
--projects partition-test-core,partition-test-core-plus
--update-snapshots
artifacts
:
when
:
always
paths
:
-
test-results.log
expire_in
:
1 days
-
docker push $CI_REGISTRY_IMAGE/$TEST_IMAGE
rules
:
-
if
:
"
$CI_COMMIT_BRANCH
=~
/^release/"
when
:
never
...
...
@@ -168,3 +109,65 @@ gc-baremetal-deploy: #infra deploy for on-prem install
when
:
never
-
if
:
'
$GC
==
"1"'
when
:
on_success
gc-baremetal-test
:
tags
:
[
"
osdu-medium"
]
extends
:
-
.maven
stage
:
integration
needs
:
[
"
compile-and-unit-test"
,
"
gc-containerize-gitlab:core-plus"
]
retry
:
1
services
:
-
name
:
postgres
command
:
[
"
postgres"
,
"
-c"
,
"
shared_buffers=256MB"
,
"
-c"
,
"
max_connections=200"
]
-
name
:
$CI_REGISTRY_IMAGE/partition-core-plus-test:$CI_COMMIT_SHORT_SHA
alias
:
partition-service-image
variables
:
PARTITION_POSTGRESQL_DB_NAME
:
partition_db
#Used from bootstrapping script
PARTITION_POSTGRESQL_USERNAME
:
usr_partition_pg
#Used from bootstrapping script
PARTITION_POSTGRESQL_PASSWORD
:
partition_pg
#Used from bootstrapping script
POSTGRESQL_PORT
:
5432
#used from the docker script
POSTGRESQL_HOST
:
postgres
#used from the docker script
POSTGRESQL_USERNAME
:
postgres
#used from the docker script
POSTGRES_PASSWORD
:
$POSTGRES_PASSWORD
#used to start the postgres service alongside the runner
POSTGRESQL_DATABASE
:
postgres
#default postgres database for scripts to connect
POSTGRESQL_PASSWORD
:
$POSTGRES_PASSWORD
#password for above db
TEST_OPENID_PROVIDER_CLIENT_ID
:
integration-tester
#integration testing
TEST_OPENID_PROVIDER_CLIENT_SECRET
:
$GC_OPENID_PROVIDER_CLIENT_SECRET
#integration testing
TEST_NO_ACCESS_OPENID_PROVIDER_CLIENT_ID
:
no-access-tester
#integration testing
TEST_NO_ACCESS_OPENID_PROVIDER_CLIENT_SECRET
:
$GC_NO_ACCESS_OPENID_PROVIDER_CLIENT_SECRET
#integration testing
TEST_OPENID_PROVIDER_URL
:
https://keycloak.ref.gcp.gnrg-osdu.projects.epam.com/realms/osdu
#token provider for testing config, need to change it later
DATA_PARTITION_ID
:
test-partition
#for default configs
CUSTOM_PROJECT_NAME
:
"
partition-core-plus"
#required for integration tests
CLIENT_TENANT
:
osdu
#int tests
ENVIRONMENT
:
dev
#if this is not specified, it just assumes that the service is running locally
PARTITION_BASE_URL
:
http://partition-service-image:8080/
#url where integration tests are hitting
#CI_DEBUG_SERVICES: "true" #flag for debugging the services in the runner
PARTITION_POSTGRES_URL
:
$PARTITION_POSTGRES_URL
script
:
-
echo "--- Install psql ---"
-
apt-get update && apt-get install -y postgresql-client libpq-dev jq
-
echo "--- Bootstrap tables ---"
-
chmod +x devops/core-plus/test/bootstrap.sh
-
devops/core-plus/test/bootstrap.sh
-
echo "--- Run integration tests ---"
-
>
$MAVEN_BUILD . test-results.log
verify -DdisableXmlReport=true
--file testing/pom.xml
--projects partition-test-core,partition-test-core-plus
--update-snapshots
artifacts
:
when
:
always
paths
:
-
test-results.log
expire_in
:
1 days
rules
:
-
if
:
"
$CI_COMMIT_BRANCH
=~
/^release/"
when
:
never
-
if
:
"
$CI_COMMIT_TAG"
when
:
never
-
if
:
"
$PROTECTED
==
'1'"
when
:
on_success
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment