Dukes Bank and Self Service

From ControlTier

Jump to: navigation, search

Java duke mascot.jpg This is part of the DukesBank portion of the ControlTier Demo

Contents

Overview

This page describes how to demonstrate the build and deployment processes for Dukes Bank JBoss application using a self service web interface, rather than the command line like we did in previous demos.

The examples in this demo will introduce you to the Jobcenter tool, one of the ControlTier standard server tools that provides a web interface for running CTL commands.

The example will show use of Jobcenter as users with two different roles: Build and Deploy.

Screencast-icon.png Watch a video of this demo (less than 5:00)

Prerequisites

This demo assumes you have completed:

Preparation

Before getting started confirm all the necessary objects are deployed to CTL.

Run the ctl-project command:

$ ctl-project -p demo -a install
"Install" command running for resource: (Site) developmentDukesBank
"Install" command running for resource: (Updater) developmentDukesBank
"Install" command running for resource: (JBossAntBuilder) dukesBank
"Install" command running for resource: (HsqldbRdbExportBuilder) dukesBank
"Install" command running for resource: (JBossServer) developmentDukesBank
"Install" command running for resource: (HsqldbRdb) developmentDukesBank
.
.
.


Access Jobcenter

The Jobcenter web application can be accessed on your ControlTier web server. Go to the main application list page, and click on Jobcenter:

Jobcenter is linked to from their, or you can just add the "/jobcenter" path to the URL: http://ctier.mycompany.com:8080/jobcenter

Login as Build

Enter the default build username and password, both "build":

Jobcenter login build.png

You will see the listing of Jobs that are available for the Build user to run. Some Jobs are not shown because the "build" role only shows Jobs which apply to Builder types.

Jobcenter jobs build.png

If you have performed the previous two Tutorial steps you should see a message like "28 unauthorized jobs are not shown". This is to indicate that some jobs in Jobcenter are not available to the build user.

Scenario 1: Build the DukesBank application

As the Build user, you can perform the same Build command used to build the Dukes Bank sample application in the step Dukes Bank Checkout and Build#Run the Build Command.

First, create the Job.

  1. Click the "Create a new Job…" button. Jobcenter create new job button.png
  2. Select the "demo" project if it is not already selected
  3. Make sure that Defined Job is selected under "Type of Job"
  4. Select the appropriate Context from the scrolling list of available contexts: JBossAntBuilder/dukesbank
  5. Select the "Build" command from the list of commands that appears. Jobcenter create dukesbank build job.png
  6. Under "Save this Job?" click the "Yes" button.
  7. Name the job "Build DukesBank", and enter a description
  8. Under the "Group" section, enter "Build".

Jobcenter create dukesbank build job 2.png

Now click the "Create" button at the bottom of the form.

The Job will be created and you will be taken to the Job View:

Jobcenter dukesbank build job created.png

Run The Job

Click the "Run Job Now" button to immediately run the Build job.

You will be taken to the "Now Running" page that displays the list of currently running jobs.

Jobcenter dukesbank now running.png

The status of the job will be updated as long as this page is open. If you wish to view the progress of the Job, you can click the "output»" link next to the running Job.

Personal tools
Namespaces
Variants
Actions
Navigation
Communication
Development
Toolbox
Print/export