Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 6.07 KiB
variables:
    AWS_BUILD_SUBDIR: provider/notification-aws/build-aws
    AWS_TEST_SUBDIR: testing/notification-test-aws
    AWS_CHART_SUBDIR: devops/aws/chart
    AWS_SERVICE: notification
    AWS_SERVICE_GATEWAY: osdu-gateway
    AWS_ENVIRONMENT: dev
    AWS_DEPLOY_TARGET: TF
    AWS_EKS_DEPLOYMENT_NAME: os-notification

    AZURE_SERVICE: notification
    AZURE_BUILD_SUBDIR: provider/notification-azure
    AZURE_TEST_SUBDIR: testing/notification-test-azure
    AZURE_DEPLOYMENTS_SUBDIR: deployments/scripts/azure
    AZURE_COVERAGE_THRESHOLD: 80

    IBM_BUILD_SUBDIR: provider/notification-ibm
    IBM_INT_TEST_SUBDIR: testing/notification-test-ibm
    IBM_HELM_CONFIG_PATH: devops/ibm/ibm-notification-config
    IBM_HELM_DEPLOY_PATH: devops/ibm/ibm-notification-deploy

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/azure.yml"

    - project: "osdu/platform/ci-cd-pipelines"
      file: "cloud-providers/gc-global.yml"

    - project: "osdu/platform/ci-cd-pipelines"
      file: "cloud-providers/ibm.yml"

    # aws
    - local: "devops/aws/pipeline/override-stages.yml"

    - local: "devops/gc/pipeline/override-stages.yml"

    - local: "/publish.yml"

.maven:
    image: maven:3.9.3-eclipse-temurin-17
    tags: ["osdu-medium"]
    variables:
        MAVEN_REPO_PATH: "$CI_PROJECT_DIR/.m2/repository"
        MAVEN_CLI_OPTS: "--batch-mode --settings=$CI_PROJECT_DIR/.mvn/community-maven.settings.xml"

    cache:
        paths:
            - $MAVEN_REPO_PATH

    artifacts:
        paths:
            - ./**/target/*.jar
            - ./**/maven-*-output.txt
        when: always
        expire_in: 2 days

    before_script:
        - | # Check for the presence of a maven wrapper script