Skip to content

Commit

Permalink
Update CircleCI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouron committed Mar 14, 2024
1 parent 42b66f1 commit 5bec894
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 2.1

orbs:
maven: circleci/[email protected]

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
42 changes: 42 additions & 0 deletions .circleci/m2-settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>cloudsoft-deploy-artifactory-snapshot</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>cloudsoft-deploy-artifactory-release</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>

<server>
<id>cloudsoft-snapshots</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>cloudsoft-releases</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>
<server>
<id>cloudsoft-artifactory-repo</id>
<username>${env.ARTIFACTORY_USERNAME}</username>
<password>${env.ARTIFACTORY_PASSWORD}</password>
</server>

<server>
<id>sonatype-nexus-staging</id>
<username>${env.SONATYPE_USER}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
<server>
<id>sonatype-nexus-snapshots</id>
<username>${env.SONATYPE_USER}</username>
<password>${env.SONATYPE_PASSWORD}</password>
</server>
</servers>
</settings>

0 comments on commit 5bec894

Please sign in to comment.