diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 25b54f08fe6e97ca6abfd83e02af323df0fc10b4..f6f852009aee52abd386d1b868b0f243d30b34ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,6 +61,18 @@ include: - project: "osdu/platform/ci-cd-pipelines" file: "cloud-providers/core-global.yml" + + - project: "osdu/platform/ci-cd-pipelines" + file: "cloud-providers/aws-one-pipeline.yml" + + - project: "osdu/platform/ci-cd-pipelines" + file: "cloud-providers/azure-one-pipeline.yml" + + - project: "osdu/platform/ci-cd-pipelines" + file: "cloud-providers/gc-one-pipeline.yml" + + - project: "osdu/platform/ci-cd-pipelines" + file: "cloud-providers/ibm-one-pipeline.yml" - local: "devops/gc/pipeline/override-stages.yml" - local: "devops/aws/pipeline/override-stages.yml" diff --git a/devops/gc/pipeline/override-stages.yml b/devops/gc/pipeline/override-stages.yml index 3e15876937f911431d4aa012507a51f43dde56c0..5447cb5e31921df1e8907d4a9f5f2b196f637d15 100644 --- a/devops/gc/pipeline/override-stages.yml +++ b/devops/gc/pipeline/override-stages.yml @@ -35,7 +35,7 @@ download_gc_plugins: - $GC == '1' gc-containerize-gitlab: - needs: ["compile-and-unit-test", "download_gc_plugins"] + needs: ["gc-compile-and-unit-test", "download_gc_plugins"] gc-containerize-gcr: - needs: ["compile-and-unit-test", "download_gc_plugins"] + needs: ["gc-compile-and-unit-test", "download_gc_plugins"] diff --git a/pom.xml b/pom.xml index 31695dc46b8a6bf4e538bee79cbe2fda38f9a08b..584683bc64ff05fb0fa952980310d5748eee0c81 100644 --- a/pom.xml +++ b/pom.xml @@ -127,15 +127,6 @@ </dependency> </dependencies> - <modules> - <module>indexer-core</module> - <module>indexer-core-plus</module> - <module>provider/indexer-aws</module> - <module>provider/indexer-azure</module> - <module>provider/indexer-gc</module> - <module>provider/indexer-ibm</module> - </modules> - <repositories> <repository> <id>${repo.releases.id}</id> @@ -171,6 +162,40 @@ <publish.releases.url>https://community.opengroup.org/api/v4/projects/25/packages/maven</publish.releases.url> </properties> </profile> + <profile> + <id>core</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <modules> + <module>indexer-core</module> + <module>indexer-core-plus</module> + </modules> + </profile> + <profile> + <id>aws</id> + <modules> + <module>provider/indexer-aws</module> + </modules> + </profile> + <profile> + <id>azure</id> + <modules> + <module>provider/indexer-azure</module> + </modules> + </profile> + <profile> + <id>gc</id> + <modules> + <module>provider/indexer-gc</module> + </modules> + </profile> + <profile> + <id>ibm</id> + <modules> + <module>provider/indexer-ibm</module> + </modules> + </profile> </profiles> <build> diff --git a/provider/indexer-aws/build-aws/buildspec.yaml b/provider/indexer-aws/build-aws/buildspec.yaml index 88011f261a204f76424b6aa02af4856d40416347..e90a1e1e553c0e511408c6772e780a3dfc30bced 100644 --- a/provider/indexer-aws/build-aws/buildspec.yaml +++ b/provider/indexer-aws/build-aws/buildspec.yaml @@ -69,8 +69,8 @@ phases: - if [ "$GIT_SECRETS_SCAN_RESULT" = "FAILED" ]; then echo "Secrets detected!" && exit 1; fi - echo "Building primary service assemblies..." - - mvn -ntp -B test install -pl .,indexer-core,provider/indexer-aws -Ddeployment.environment=prod - - mvn sonar:sonar -pl .,provider/indexer-aws -Dsonar.login=${SONAR_USERNAME} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.branch.name=${BRANCH_NAME} -Dsonar.host.url=${SONAR_URL} + - mvn -ntp -B test install -f pom.xml -P aws -Ddeployment.environment=prod + - mvn sonar:sonar -P aws -Dsonar.login=${SONAR_USERNAME} -Dsonar.password=${SONAR_PASSWORD} -Dsonar.branch.name=${BRANCH_NAME} -Dsonar.host.url=${SONAR_URL} - echo "Building integration testing assemblies and gathering artifacts..." - ./testing/indexer-test-aws/build-aws/prepare-dist.sh