From 5bec8948413ee422510b39e5e2eb1f56f232562e Mon Sep 17 00:00:00 2001 From: Thomas Bouron Date: Thu, 14 Mar 2024 13:12:38 +0100 Subject: [PATCH] Update CircleCI configuration --- .circleci/config.yml | 36 +++++++++++++++++++++++++++++++++ .circleci/m2-settings.xml | 42 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .circleci/m2-settings.xml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..c36e6fe --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,36 @@ +version: 2.1 + +orbs: + maven: circleci/maven@1.4.1 + +executors: + openjdk8: + docker: + - image: cimg/openjdk:8.0 + +workflows: + build-and-deploy: + jobs: + - maven/test: + name: build + executor: openjdk8 + filters: + branches: + only: + - master + settings_file: .circleci/m2-settings.xml + - maven/test: + name: deploy + executor: openjdk8 + requires: + - build + context: + - org-global + - cloudsoft-artifactory + filters: + branches: + only: + - master + settings_file: .circleci/m2-settings.xml + command: deploy -DskipTests -P cloudsoft-release + verify_dependencies: false \ No newline at end of file diff --git a/.circleci/m2-settings.xml b/.circleci/m2-settings.xml new file mode 100644 index 0000000..ea1c53d --- /dev/null +++ b/.circleci/m2-settings.xml @@ -0,0 +1,42 @@ + + + + cloudsoft-deploy-artifactory-snapshot + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + + + cloudsoft-deploy-artifactory-release + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + + + + cloudsoft-snapshots + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + + + cloudsoft-releases + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + + + cloudsoft-artifactory-repo + ${env.ARTIFACTORY_USERNAME} + ${env.ARTIFACTORY_PASSWORD} + + + + sonatype-nexus-staging + ${env.SONATYPE_USER} + ${env.SONATYPE_PASSWORD} + + + sonatype-nexus-snapshots + ${env.SONATYPE_USER} + ${env.SONATYPE_PASSWORD} + + + \ No newline at end of file