Skip to content

Commit

Permalink
Prepare APIM Release 3.8.0 : migration to new CICD on CIrcle CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste-Lasselle committed Apr 13, 2021
1 parent 2973ebc commit a036d54
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
25 changes: 19 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
parameters:
gio_action:
type: enum
enum: [release, pr_build]
enum: [release, nexus_staging, pr_build]
default: pr_build
dry_run:
type: boolean
Expand All @@ -15,12 +15,16 @@ parameters:
description: "Maven ID of the Maven profile to use for a dry run ?"
secrethub_org:
type: string
default: "gravitee-lab"
default: "gravitee-io"
description: "SecretHub Org to use to fetch secrets ?"
secrethub_repo:
type: string
default: "cicd"
description: "SecretHub Repo to use to fetch secrets ?"
s3_bucket_name:
type: string
default: $s3_bucket_name
description: "Name of the S3 Bucket used to store and retrieve the state of the maven project, to perform the nexus staging ?"

orbs:
gravitee: gravitee-io/gravitee@dev:1.0.4
Expand All @@ -34,30 +38,39 @@ workflows:
- gravitee/pr-build:
context: cicd-orchestrator
release:
# see https://circleci.com/docs/2.0/configuration-reference/#logic-statement-examples
when:
and:
- equal: [ release, << pipeline.parameters.gio_action >> ]
- not: << pipeline.parameters.dry_run >>
jobs:
# return to simple definition :
- gravitee/release:
context: cicd-orchestrator
dry_run: << pipeline.parameters.dry_run >>
secrethub_org: << pipeline.parameters.secrethub_org >>
secrethub_repo: << pipeline.parameters.secrethub_repo >>
maven_profile_id: << pipeline.parameters.maven_profile_id >>
s3_bucket_name: << pipeline.parameters.s3_bucket_name >>
release_dry_run:
# see https://circleci.com/docs/2.0/configuration-reference/#logic-statement-examples
when:
and:
- equal: [ release, << pipeline.parameters.gio_action >> ]
- << pipeline.parameters.dry_run >>
jobs:
# return to simple definition :
- gravitee/release:
context: cicd-orchestrator
dry_run: << pipeline.parameters.dry_run >>
secrethub_org: << pipeline.parameters.secrethub_org >>
secrethub_repo: << pipeline.parameters.secrethub_repo >>
maven_profile_id: << pipeline.parameters.maven_profile_id >>
s3_bucket_name: << pipeline.parameters.s3_bucket_name >>

nexus_staging:
when:
equal: [ nexus_staging, << pipeline.parameters.gio_action >> ]
jobs:
- gravitee/nexus_staging:
context: cicd-orchestrator
secrethub_org: << pipeline.parameters.secrethub_org >>
secrethub_repo: << pipeline.parameters.secrethub_repo >>
maven_profile_id: << pipeline.parameters.maven_profile_id >>
s3_bucket_name: << pipeline.parameters.s3_bucket_name >>
12 changes: 10 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<parent>
<groupId>io.gravitee</groupId>
<artifactId>gravitee-parent</artifactId>
<version>16</version>
<version>16.1</version>
</parent>

<properties>
Expand Down Expand Up @@ -186,7 +186,15 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<additionalOptions>-Xdoclint:none</additionalOptions>
<source>8</source>
</configuration>
</plugin>
</plugins>
</build>

</project>

0 comments on commit a036d54

Please sign in to comment.