Commit ed66336f authored by David Diederich's avatar David Diederich
Browse files

Configuring GitLab pipeline for testing changes to the CI-CD Pipelines include files

parent c534d46c
Pipeline #47853 failed
......@@ -25,7 +25,6 @@ variables:
AZURE_AD_APP_RESOURCE_ID: $AZURE_APP_ID
AZURE_STORAGE_CONNECTION_STRING: DefaultEndpointsProtocol=https;AccountName=${AZURE_BASE}data;AccountKey=${AZURE_STORAGE_KEY};EndpointSuffix=core.windows.net
AWS_BUILD_SUBDIR: provider/schema-aws/build-aws
AWS_TEST_SUBDIR: testing/schema-test-core
AWS_DEPLOYMENTS_SUBDIR: deployments/scripts/aws
......@@ -37,53 +36,22 @@ variables:
OSDU_GCP_VENDOR: gcp
OSDU_GCP_APPLICATION_NAME: os-schema
OSDU_GCP_TESTS_SUBDIR: testing/schema-test-core
OSDU_GCP_ENV_VARS: AUTHORIZE_API=$OSDU_GCP_ENTITLEMENTS_URL,AUTHORIZE_API_KEY=$OSDU_GCP_AUTHORIZE_API_KEY,LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG,SHARED_TENANT_NAME=$TENANT,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE --vpc-connector=$OSDU_GCP_VPC_CONNECTOR
OSDU_GCP_ENV_VARS: AUTHORIZE_API=$OSDU_GCP_ENTITLEMENTS_URL,AUTHORIZE_API_KEY=$OSDU_GCP_AUTHORIZE_API_KEY,LOGGING_LEVEL_ORG_SPRINGFRAMEWORK_WEB=DEBUG,SHARED_TENANT_NAME=$TENANT,PARTITION_API=$OSDU_GCP_PARTITION_API,GOOGLE_AUDIENCES=$GOOGLE_AUDIENCE
--vpc-connector=$OSDU_GCP_VPC_CONNECTOR
include:
- project: "osdu/platform/ci-cd-pipelines"
file: "standard-setup.yml"
ref: increase-spotbugs-memory
- project: "osdu/platform/ci-cd-pipelines"
file: "build/maven.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "scanners/fossa-maven.yml"
- project: 'osdu/platform/ci-cd-pipelines'
file: 'cloud-providers/aws.yml'
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/ibm.yml"
ref: increase-spotbugs-memory
- project: "osdu/platform/ci-cd-pipelines"
file: "scanners/gitlab-ultimate.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/azure.yml"
- project: "osdu/platform/ci-cd-pipelines"
ref: 'master'
file: 'cloud-providers/osdu-gcp-cloudrun.yml'
ref: increase-spotbugs-memory
- local: "/devops/azure/gitlab-bootstrap.yml"
- local: "/devops/aws/bootstrap.yaml"
- local: "/devops/ibm/bootstrap.yaml"
osdu-gcp-test:
image: maven:3.6.3-jdk-8
script:
- >
mvn verify
--batch-mode
--quiet
-s $CI_PROJECT_DIR/.mvn/community-maven.settings.xml
-f $OSDU_GCP_TESTS_SUBDIR/pom.xml
> test-results.log
artifacts:
when: always
paths:
- test-results.log
- $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml
reports:
junit:
- $OSDU_GCP_TESTS_SUBDIR/target/*/TEST-*.xml
aws_bootstrap:
stage: bootstrap
image: python:3.8
needs: ["aws-update-ecs"]
needs: [ "aws-update-ecs" ]
extends:
- .aws
- .aws_variables
......@@ -14,7 +14,7 @@ aws_bootstrap:
- $AWS == 'true'
aws-test-java:
needs: ["aws_bootstrap"]
needs: [ "aws_bootstrap" ]
only:
variables:
- $AWS == 'true'
azure_bootstrap:
stage: bootstrap
image: python:3.8
needs: ["azure_deploy"]
script:
- pip install -r $AZURE_DEPLOYMENTS_SUBDIR/requirements.txt
- chmod +x $AZURE_DEPLOYMENTS_SUBDIR/bootstrap.sh
- $AZURE_DEPLOYMENTS_SUBDIR/bootstrap.sh
only:
variables:
- $AZURE == 'true'
azure_test:
only:
variables:
- $AZURE == 'true'
ibm_bootstrap:
stage: bootstrap
image: python:3.8
needs: ["ibm-deploy"]
extends:
- .ibm_variables
script:
- pip install -r $IBM_DEPLOYMENTS_SUBDIR/requirements.txt
- chmod +x $IBM_DEPLOYMENTS_SUBDIR/bootstrap.sh
- $IBM_DEPLOYMENTS_SUBDIR/bootstrap.sh
only:
variables:
- $IBM == 'true'
ibm-test:
needs: ["ibm_bootstrap"]
only:
variables:
- $IBM == 'true'
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