Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Understand how to request a build for a Tomcat application
  • Understand how to request a deployment of the build artifact to an environment
  • Understand the FlexDeploy deployment model of build once and deploy to many environments
  • Understand how to view the execution data

Now that FlexDeploy is configured with everything that is required to execute a build and deploy request for the application, we can execute the first build. On the Project, select the first tab (green - Execution) and select the Build button.

Image RemovedImage Added

The Build Request Form will appear and we need to:

  1. Select the environment we want to build the application in, the environments that had the Build Environment checkbox will appear in the dropdown
  2. Select the SCM stream that was configured on the project, this will be pre-populated if there is only one configured stream
  3. Submit the request, this will initiate the mavenBuild workflow

Image Added

Upon submission, the build workflow is initiated and the workflow steps are executed on the Maven instance in the BLD environment, utilizing the MVNBLD endpoint.  Upon completion of the workflow, the execution status will be successful. More information about the workflow execution can be viewed from the Execution Id link.

Image RemovedImage Added

With the successful execution of the build, a WAR file artifact is created, stored in the artifact repository and marked with the Project Version. Every build will generate a new Project Version. The generated WAR artifact can be viewed from the Artifacts tab.

Image RemovedImage Added

Now the application can be deployed to an environment by selecting the Deploy button.

Image RemovedImage Added


The Deploy Request Form will appear and we need to:

  1. Select the Project Version, the form will default to the latest Project Version but the dropdown will contain all previously create Project Versions
  2. Select the Environment that the deployment will be executed in
  3. Select the Deploy Instance, will be default from the Project configuration. Deployments can happen on multiple instances.
  4. Submit the request, this will initiate the tomcatDeploy workflow

Image RemovedImage Added

Upon submission, the deploy workflow is initiated and the workflow steps are executed on the TOMCAT instance in the DEV environment, utilizing the TCATDEV endpoint.  Upon completion of the workflow, the execution status will be successful.

Image RemovedImage Added

With the successful execution of the deploy, the WAR file artifact will be deployed to the DEV environment. Now follow the same deployment steps and deploy the composite to the QA and PROD environments. Upon completion of the deployments, the execution screen should show the Current State of Project Deployments with the same Project Version in all three environments.

Image RemovedImage Added

The Execution Id is a link to all of the execution data related to each request, such as

  1. The workflow execution steps
  2. The logs for each workflow step, click on the link under step
  3. The artifact which can be downloaded
  4. The project and environment instance property values at the time of execution

Image RemovedImage Added

Image RemovedImage Added

Image RemovedImage Added


...