Commit 7465607e authored by David Diederich's avatar David Diederich
Browse files

Adding dummy CI config values to trick GitLab into creating a standard...

Adding dummy CI config values to trick GitLab into creating a standard pipeline structure, without actually doing anything
parent 4d3179de
Pipeline #28915 passed with stages
in 55 seconds
# ================================================================================
# Variable Declares
# These variable declarations trick the OSDU Pipeline components into thinking they are running in a normal environment. We'll later
# override the script components so they don't try to act on the variables.
variables:
FOSSA_API_KEY: 'dummy-value'
FOSSA_ACCESS: 'dummy-value'
AWS: 'true'
AZURE: 'true'
IBM: 'true'
OSDU_GCP: 'true'
IBM_BUILD_SUBDIR: 'dummy-value'
IBM_OPENSHIFT_URL: 'dummy-value'
IBM_OPENSHIFT_TOKEN: 'dummy-value'
IBM_INT_TEST_SUBDIR: 'dummy-value'
OSDU_GCP_BUILD_SUBDIR: 'dummy-value'
OSDU_GCP_INT_TEST_SUBDIR: 'dummy-value'
OSDU_GCP_APPLICATION_NAME: 'dummy-value'
OSDU_GCP_ENVIRONMENT: 'dummy-value'
OSDU_GCP_PROJECT: 'dummy-value'
OSDU_GCP_DEPLOY_FILE: 'dummy-value'
# ================================================================================
# Inclusions
# This emulates the typical pipeline includes for a java based project within OSDU
include:
- project: "osdu/platform/ci-cd-pipelines"
file: "standard-setup.yml"
- 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: "scanners/gitlab-ultimate.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/aws.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/azure.yml"
- project: "osdu/platform/ci-cd-pipelines"
file: "cloud-providers/ibm.yml"
- project: 'osdu/platform/ci-cd-pipelines'
file: 'cloud-providers/osdu-gcp.yml'
# ================================================================================
# Job suppressions
# These overrides do two things.
#
# 1. All the tags need to be changed to 'docker-runner' instead of 'osdu-*', because this project is sitting in a personal
# namespace and doesn't have access to the OSDU runners
#
# 2. All scripts and before_scripts are overridden with echo statements. This is done because I care about the structure of the
# pipeline for this testing, but do not care about the content or actual deployment logic. This also lets me get a successful
# build without having access to any of the secret variables.
# --------------------------------------------------------------------------------
# standard-setup
trusted-merge-branch-verification:
tags: ['docker-runner']
trigger-trusted-tests:
tags: ['docker-runner']
# --------------------------------------------------------------------------------
# maven
.maven:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for .maven'
compile-and-unit-test:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for compile-and-unit-test'
# --------------------------------------------------------------------------------
# fossa-global
fossa-check-notice:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for fossa-check-notice'
fossa-report:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for fossa-report'
# --------------------------------------------------------------------------------
# fossa-maven
fossa-analyze:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for fossa-analyze'
# --------------------------------------------------------------------------------
# gitlab-ultimate
.ultimate-scanner-config:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for .ultimate-scanner-config'
after_script:
- echo 'Suppressing normal after_script for .ultimate-scanner-config'
dependency_scanning:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for dependency_scanning'
sast:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for sast'
license_scanning:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for license_scanning'
gemnasium-maven-dependency_scanning:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for gemnasium-maven-dependency_scanning'
spotbugs-sast:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for spotbugs-sast'
# --------------------------------------------------------------------------------
# aws
.aws:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for .aws'
aws-containerize:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for aws-containerize'
aws-update-ecs:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for aws-update-ecs'
aws-test-java:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for aws-test-java'
aws-test-python:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for aws-test-python'
# --------------------------------------------------------------------------------
# azure
azure_containerize:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for azure_containerize'
script:
- echo 'Suppressing normal script for azure_containerize'
azure_deploy:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for azure_deploy'
script:
- echo 'Suppressing normal script for azure_deploy'
azure_test:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for azure_test'
azure_test_py:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for azure_test_py'
# --------------------------------------------------------------------------------
# ibm
.ibm:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for .ibm'
ibm-deploy:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for ibm-deploy'
ibm-test:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for ibm-test'
ibm-test-py:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for ibm-test-py'
ibm-preship-promote:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for ibm-preship-promote'
# --------------------------------------------------------------------------------
# osdu-gcp
.osdu-gcp:
tags: ['docker-runner']
before_script:
- echo 'Suppressing normal before_script for .osdu-gcp'
osdu-gcp-deploy:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for osdu-gcp-deploy'
osdu-gcp-test:
tags: ['docker-runner']
script:
- echo 'Suppressing normal script for osdu-gcp-test'
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