Deploy Environments

Deploy Environments are locations where a Deploy Tool uses a Deploy script to unpack and deploy a Build Result. The Deploy Environment can be OS-specific and the Deploy process can be steered with Deploy Parameters.

Deploy Environments must be assigned to a Level in a Lifecycle in order to be active.

The Deploy Environments submenu option lets you start the following procedures:

Creating a Deploy Environment

  1. In the Project Administration context, select Deploy Environments > Create.

    The following screen is displayed:

    ProjAdmin DeployEnv Create
  2. Fill out the fields for the new Deploy Environment.

    The following fields are available. Fields marked with a red asterisk are mandatory

    Field Meaning

    Name

    In this field, enter the name for the new Deploy Environment.

    Level

    From the drop-down list, select the Level to which you want to assign this Deploy Environment.

    Machine

    From the drop-down list, select the Machine on which this Deploy Environment is physically available.

    Build Environment

    From the drop-down list, select the Build Environment this Deploy Environment is based on.

    The Build Result of this Build Environment will be deployed.

    Deploy Tool

    From the drop-down list, select the Deploy Tool for this Deploy Environment.

    Paths defined in the selected Deploy Tool must exist on the linked Machine.

    Deploy Script

    This field may contain the relative path to the Deploy Script that is selected specifically for this Deploy Environment.

    If the field is empty, the default Deploy Script whose relative path is defined on the Project Settings screen will be used for this Deploy Environment.

    Source Location

    This field contains the path to the physical location where the unpacked build result is placed.

    IKAN ALM adds the Deploy OID:

    SourceLocation/DeployOID/ProjectName_VCR

    This location is passed to the Deploy Script as a parameter named source.

    Target Location

    For a Deploy Environment, this field contains the path to the physical location where the Deploy Script will deploy the Build result.

    This location is passed to the Deploy Script as a parameter named target.

    Partial Deploy

    Indicate whether the Partial Deploy option must be activated for this Deploy Environment.

    If the option is activated, IKAN ALM will analyze the differences between the two build results on the IKAN ALM Server and only new and modified files will be transported to the Agent.

    This is achieved as follows:

    Both the newly compiled Build result and the base-line Build (the one the new Build results are compared with) are decompressed (unzipped).

    The decompressed files are compared and the following actions are taken:

    • Identical files are deleted and not deployed.

    • Modified and new files (available in the new but not in the base-line Build results) are transported.

    • For deleted files (available in the base-line Build result, but not in the new one), dummy files with names in the format FileName.to_be_deleted are created. The Deploy Script must be written in such a way, that it deletes the matching files from the Deploy Environment’s Source Location.

    Debug

    Select whether or not the Debug option must be activated for this Deploy Environment.

    If Debug is activated for a Deploy Environment, the Build Clean-up action (action 28 of the Build and Deploy Level Requests Overview) will not be performed, so that the user may use the available build results to run the deploy script manually for testing purposes.

    User Controlled Parameters

    Allow Users with a Project User role to create, read, update and delete Environment Parameters. Once enabled, the Parameters retain this state even if a Project Administrator disables this option afterwards.

  3. Verify the information on the Deploy Environments Overview panel.

    This Overview lists all Deploy Environments defined for all Levels belonging to the selected Project.

    For more information on the available links, refer to The Deploy Environments Overview Screen.

  4. Click Create to confirm the creation of the new Deploy Environment.

    You can also click the Reset button to clear the fields and restore the initial values.

The Deploy Environments Overview Screen

  1. In the Project Administration context, select Deploy Environments > Overview.

    The following screen is displayed:

    ProjAdmin DeployEnv Overview
  2. Define the required search criteria on the search panel.

    The list of items on the overview will be automatically updated based on the selected criteria.

    You can also:

    • click the Show/hide advanced options link to display or hide all available search criteria,

    • click the Search link to refresh the list based on the current search criteria,

    • click the Reset search link to clear the search fields,

  3. Verify the Information available on the Deploy Environments Overview.

    For a detailed description of the fields, see Creating a Deploy Environment.

    Columns marked with the icon sort icon can be sorted alphabetically (ascending or descending).

  4. Depending on your access rights, the following links may be available on the Deploy Environments Overview panel:

    edit

    Edit

    This option allows editing a the Deploy Environment settings.

    Editing a Deploy Environment

    delete

    Delete

    This option allows deleting a Deploy Environment.

    Deleting a Deploy Environment

    clone

    clone

    This option allows cloning a Deploy Environment.

    Cloning a Deploy Environment

    edit phases

    Edit Phases

    This option allows editing the Deploy Environment Phases.

    Editing a Deploy Environment Phase

    icon viewparameters

    View Parameters

    This option allows viewing the Deploy Environment Parameters.

    Viewing the Deploy Environment Parameters

    history

    History

    This option allows viewing the Deploy Environment History.

    Viewing the Deploy Environment History

Editing a Deploy Environment

  1. Switch to the Deploy Environments Overview screen.

  2. Click edit Edit to change the selected Deploy Environment definition.

    The following screen is displayed:

    ProjAdmin DeployEnv Edit
  3. Click the Edit button on the Deploy Environment Info panel.

    The Edit Deploy Environment window is displayed:

    ProjAdmin DeployEnv Edit popup
  4. Edit the fields as required.

    For a detailed description of the fields, refer to Creating a Deploy Environment.

  5. Click Save, once you have finished your changes.

    You can also click Refresh to retrieve the settings from the database or Cancel to return to the Edit Deploy Environment screen without saving your changes.

Deleting a Deploy Environment

  1. Switch to the Deploy Environments Overview screen.

  2. Click delete Delete to delete the selected Deploy Environment definition.

    The following screen is displayed:

    ProjAdmin DeployEnv Delete
  3. Click Delete to confirm the deletion.

    You can also click Back to return to the previous screen without deleting the Environment.

    Deleting a Deploy Environments may also delete Historical information linked to the Environment, like Deploys and Deploy Logs.

Cloning a Deploy Environment

When cloning an Environment, all settings, including the Phases and Parameters, will be cloned.

  1. Switch to the Deploy Environments Overview screen.

  2. Click clone Clone to clone the selected Deploy Environment definition.

    The following screen is displayed:

    ProjAdmin DeployEnv Clone
  3. On the clone Deploy Environment panel, specify the Name and Target Location, and specify a Level for the new Environment.

    If required, you can also edit the other fields. For a detailed description of the fields, refer to Creating a Deploy Environment.

  4. Click Clone to confirm the action.

    You can also click Back to return to the previous screen without cloning the Environment.

Deploy Environment Phases

When creating a Deploy Environment, IKAN ALM will automatically link the default flow of Deploy Environment Phases to it.

The default Phases are:

  • Transport Build Result

  • Decompress Build Result

  • Verify Deploy Script

  • Execute Deploy Script

  • Cleanup Build Result

When executing a Deploy for this Environment, a log will be created for each of the Phases. The logs will be shown on the Level Request Details page. For more information, see : Level Request Detail.

Refer to the following procedures for more information:

The Deploy Environment Phases Overview Screen

  1. Switch to the Deploy Environments Overview screen.

  2. On the Deploy Environments Overview panel, click the edit phases Edit Phases link.

    The Deploy Environment Phases Overview screen is displayed:

    ProjAdmin DeployEnv EditPhases

    A link to this screen is also available on the Edit Deploy Environment screen.

  3. Use the links on the Phases Overview panel, if required.

    The following links are available:

  4. Insert a Phase, if required.

    Select the Insert Phase link underneath the Phases Overview panel.

  5. When done, click Back to return to the Deploy Environments Overview screen.

Inserting a Deploy Environment Phase

  1. Switch to the Deploy Environments Overview screen.

  2. On the Deploy Environments Overview panel, click the edit phases Edit Phases link.

  3. On the Phases Overview panel, click the Insert Phase link.

    The Insert Phase screen is displayed.

    ProjAdmin DeployEnv InsertPhase
  4. Select a Phase to insert from the Available Phases panel.

  5. Fill out the fields for the new Phase.

    The following fields are available:

    Field Meaning

    Phase

    from the Available Phases panel, select the Phase to add.

    Fail on Error

    In this field, indicate whether the Deploy is considered failed when this Phase goes into Error.

    Insert at Position

    This field indicates at which position the Phase will be inserted into the Deploy Environment workflow. The Phase Position is also indicated on the Phases Overview panel.

    Next Phase On Error

    In this field, indicate the next Phase to execute in case this Phase goes into Error.

    Label

    In this optional field you can add a Label for the Phase to be inserted.

    In case you use the same Phase several times, adding a label is useful to provide additional information concerning the usage of the Phase.

  6. Click Insert to confirm the creation of the new Phase.

    You can also click Cancel to return to the previous screen without saving the changes.

Editing a Deploy Environment Phase

  1. Switch to the Deploy Environments Overview screen.

  2. On the Deploy Environments Overview panel, click the edit phases Edit Phases link.

  3. Click the edit Edit link in front of the Phase you want to edit.

    The Edit Deploy Environment Phase window is displayed.

    ProjAdmin DeployEnv EditDeployEnvPhase
  4. Edit the fields on the Edit Deploy Environment Phase panel.

    For a description of the fields, refer to the section Inserting a Deploy Environment Phase.

  5. Click Save to save your changes.

    You can also click Refresh to retrieve the settings from the database or Cancel to return to the previous screen without saving your changes.

Changing the Order of the Deploy Environment Phases

  1. Switch to the Deploy Environments Overview screen.

  2. On the Deploy Environments Overview panel, click the edit phases Edit Phases link.

  3. Use the up Up and down Down links in front of a Deploy Environment Phase to change its position in the sequence.

  4. Click Back to return to the Deploy Environments Overview screen.

    Avoid changing a Phase’s position in such a way that its Next Phase on Error is in an earlier position in the workflow: this could result in an infinite loop.

Viewing the Deploy Environment Phase Parameters

  1. Switch to the Deploy Environments Overview screen.

  2. On the Deploy Environments Overview panel, click the edit phases Edit Phases link.

  3. Click the icon viewparameters View Parameters links in front of a Deploy Environment Phase you want to manage the Phase Parameters for.

    The Phase Parameter Overview screen is displayed.

    ProjAdmin DeployEnv DeployEnvPhaseParamsOverview
  4. Verify the Deploy Environment Phase Parameters.

    The Phase Parameters panel displays all the defined Parameters of the Deploy Environment Phase and allows you to create non-mandatory Phase Parameters.

    The following fields are available:

    Field Meaning

    Name

    The name of the Parameter.

    This field may not be changed since it is defined in Global Administration.

    Value

    The Value of the Parameter.

    Initially, when the Phase is inserted, the value will be copied from the Default Value in Global Administration (if provided).

    This field may be changed by Editing the Phase Parameter.

    Integration Type

    This field indicates whether the value of the Parameter is a simple text value, or whether it represents a link (an integration) to an IKAN ALM Global Administration object type.

    The possible values are:

    • None: the value is simple text

    • Transporter: link to a Transporter

    • VCR: link to a Version Control Repository

    • ITS: link to an Issue Tracking System

    • Scripting Tool: link to a Scripting Tool

    • ANT: link to an Ant Scripting Tool

    • GRADLE: link to a Gradle Scripting Tool

    • NANT: link to a NAnt Scripting Tool

    • MAVEN2: link to a Maven2 Scripting Tool

    This field may not be changed since it is defined in Global Administration.

    Mandatory

    This field indicates whether the Parameter has been created automatically when the Phase is inserted in the Level. This is the case for Mandatory Parameters.

    Non-mandatory Parameters must be created after the Phase has been inserted in the Level, using the Create Parameter link.

    This field may not be changed since it is defined in Global Administration.

    Secure

    This field indicates whether the Parameter is secured or not.

    This field may not be changed since it is defined in Global Administration.

  5. Click the edit Edit Parameter link next to a Phase Parameter.

    The following pop-up window will be displayed.

    ProjAdmin DeployEnv DeployEnvPhaseParams EditValue

    Set the value of the Deploy Environment Phase Parameter and click Save to save the value.

    You can also click:

    • Refresh to retrieve the settings from the database.

    • Cancel to return to the Phase Parameter Overview screen without saving a value.

  6. If you want to create a non-mandatory Phase Parameter, click the icon createparameter Create Parameter link next to a Phase Parameter.

    The following pop-up window will be displayed.

    ProjAdmin DeployEnv DeployEnvPhaseParams CreateParam

    If a default Parameter value has been set in Global Administration, that value will be suggested.

    Set the value of the Deploy Environment Phase Parameter and click Create.

    • Reset to retrieve the settings from the database.

    • Cancel to return to the Phase Parameter Overview screen without saving a value.

  7. If you want to delete a non-mandatory Phase Parameter, click the delete Delete Parameter link next to a Phase Parameter.

    The following pop-up window will be displayed.

    ProjAdmin DeployEnv DeployEnvPhaseParams DeleteParamValue

    Click Delete to confirm the deletion of the mandatory Deploy Environment Phase Parameter.

    You can also click Cancel to close the pop-up window without deleting the Parameter.

  8. Click the Phase EditEnvPhaseParameter Edit Global Phase Parameter link next to a Phase Parameter.

    The User will be redirected to the Edit Phase screen (in the Global Administration context) and the Edit Phase Parameter Value pop-up window is opened.

    ProjAdmin DeployEnv DeployEnvPhaseParams EditGlobalPhaseParam

    You can Edit the Global Phase Parameter as described in the section Editing Phase Parameters.

    To go back to the Phase Parameter in the Project Administration context, click the appropriate Phase EditEnvPhaseParameter _ Edit Environment Phase Parameter_ link in the Connected Environment Parameters panel.

Deleting a Deploy Environment Phase

  1. Switch to the Deploy Environments Overview screen.

  2. On the Deploy Environments Overview panel, click the edit phases Edit Phases link.

  3. On the Phases Overview panel, click the Delete link.

    The Delete Deploy Environment Phase screen is displayed.

    ProjAdmin DeployEnv DeletePhase
  4. Click Yes to confirm the deletion of the Phase.

    You can also click No to return to the previous screen without deleting the Deploy Environment Phase.

Viewing the Deploy Environment Parameters

  1. Switch to the Deploy Environments Overview screen.

  2. Click icon viewparameters View Parameters to view all parameters defined for the selected Deploy Environment.

    The following screen is displayed:

    ProjAdmin DeployEnv ViewParameters

    For a more detailed description of this screen, refer to the section Creating Environment Parameters.

Viewing the Deploy Environment History

  1. Switch to the Deploy Environments Overview screen.

  2. Click the history History link to display the Deploy Environment History View.

    For more detailed information concerning this History View, refer to the section History and Event Logging.

    Click Back to return to the previous screen.