After stax.net was acquired by CloudBees it made sense to move to the new endpoints etc to ensure on-going usefulness of the plugin in case the stax.net endpoints are ever decommissioned. This version is a complete rewrite from the previous version.
Changes:
- If any configuration parameter is not defined, the plugin auto-prompts you for it
- Now deploy your application with "bees-deploy" in place of "stax-deploy"
- Rename your staxApplicationId to beesApplicationId
- Rename your staxUsername to beesUsername
CloudBees Run@Cloud SBT Plugin
Integration for SBT that lets you deploy apps to the CloudBees RUN@Cloud PaaS
Usage
Firstly, you need to grab the key and secret from grandcentral.cloudbees.com, which should look like:
Once you have these two values, you can do one of two things:
- Enter them when the plugin prompts you; this will be on everytime you run a deployment to the cloud
- Create a properties file called bees.config in $HOME/.bees/ so that you only need to define them once per computer. This properties file needs to be a key-value pair style like this:
bees.api.key=XXXXXXXXXX
bees.api.secret=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX=
Whichever route you choose to specify that information, you then only need to define the plugin information in any given project. Specifically, in the Plugins.scala file define the following:
import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
lazy val cloudbees = "eu.getintheloop" % "sbt-cloudbees-plugin" % "0.2.6"
lazy val sonatypeRepo = "sonatype.repo" at "https://oss.sonatype.org/content/groups/public"
}
Add the plugin to your SBT project like so:
import sbt._
class YourProject(info: ProjectInfo) extends DefaultWebProject(info) with bees.RunCloudPlugin {
....
override def beesApplicationId = Some("whatever")
override def beesUsername = Some("youruser")
}
Again, if you would prefer to enter these values when you deploy your application then you can of course just enter the appropriate values when prompted. Now your all configured and good to go, there are two commands you can run with this plugin:
- Get a list of your configured applications:
bees-applist
- Deploy your application
bees-deploy