This clickstart sets up a build service, repository and a basic Wildfly app with continuous deployment. All built by maven.
Launch this clickstart and glory could be yours too ! Use it as a building block if you like. You can launch this on Cloudbees via a clickstart automatically, or follow the instructions below.
This is based on the Wildfly stack that you can read more about here.
bees app:create -a my-wildfly8-app -t wildfly8
bees db:create my-wildfly8-db
bees app:bind -a my-wildfly8-app -db my-wildfly8-db -as mydb
Supported JNDI names:
java:jboss/datasources/mydb
: qualified JNDI name is supported / OK
Samples:
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:jboss/datasources/mydb");
bees config:set -a my-wildfly8-app -R wildfly8.auth-realm.database=mydb
bees app:deploy -a my-wildfly8-app path/to/my/app.war
Create a new Maven project in Jenkins, changing the following:
-
Add this git repository (or yours, with this code) on Jenkins
-
Also check "Deploy to CloudBees" with those parameters:
Applications: First Match Application Id: MYAPP_ID Filename Pattern: target/*.war
where MYAPP_ID
is the name of your application.