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-apichannel 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 packagetarget from the master branch. - Then, there are two possible ways:
- Run
mvn -Darguments=-DskipTests clean deploytarget to deploy to Artifactory. For that you need to have local~/.m2/settings.xmlconfigured. - Deploy using Artifactory UI
Deploybutton
- Run
- Run
Artifactory provides a nice UI to help to setup settings file:
- Go to the
Artifactssection (left column) - Click the
Set Me Upbutton on the top right - Choose
cloud-release-localrepository - Click
Generate Maven Settingsand copy generated file - To deploy, you'll need to replace username with your
@elastic.coemail and password with theAPI Keygenerated in theEdit Profilesection:<username>${security.getCurrentUsername()}</username> <password>${security.getEscapedEncryptedPassword()!"*** Insert encrypted password here ***"</password>