Fork of swagger-codegen, primarily maintained by the Elastic Cloud team.
The Cloud team relies on the Scala and Java clients, generated from our OpenAPI specification, for building our integration tests. The Scala client in particular has proven to be buggy. Despite our efforts to contribute patches upstream, each new version of the client seems to bring on newer problems 😄. We've decided it's easier to just maintain our own fork for the sake of having a stable and reliable client for our tests.
- First, join the
#cloud-api
channel on Slack and give the Cloud API team a heads up 😄 - Open a PR bumping the version in:
- CI-Staging Jenkins job is no longer working way to publish Maven Artifacts. Instead, when a PR is merged to master, artifacts need to be packaged locally:
- Run
mvn clean package
target from the master branch. - Then, there are two possible ways:
- Run
mvn -Darguments=-DskipTests clean deploy
target to deploy to Artifactory. For that you need to have local~/.m2/settings.xml
configured. - Deploy using Artifactory UI
Deploy
button
- Run
- Run
Artifactory provides a nice UI to help to setup settings file:
- Go to the
Artifacts
section (left column) - Click the
Set Me Up
button on the top right - Choose
cloud-release-local
repository - Click
Generate Maven Settings
and copy generated file - To deploy, you'll need to replace username with your
@elastic.co
email and password with theAPI Key
generated in theEdit Profile
section:<username>${security.getCurrentUsername()}</username> <password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"</password>