Page tree
Skip to end of metadata
Go to start of metadata

This documentation is no longer maintained and may contain obsolete information. You should instead refer to https://github.com/CAST-Extend/com.castsoftware.aip.console.tools for more information about automating source code delivery/analysis with AIP Console.

In this section:

Target audience:

  • CAST administrators
  • Delivery Managers
Summary: This section of documentation provides an explanation of how to deliver source code in an automated and repeatable way when working with a CAST AIC Portal and multiple Delivery Managers.

Introduction

Usage scenarios

The DMT command line utility is designed for the following scenarios, ONLY:

  • One single CAST Delivery Manager - can automate the delivery of a Version "n+1" and all its Packages, e.g.: it is possible to add a new Version "n+1" (copied from an existing Version "n"), package the same packages created in Version "n" and deliver the Version "n+1" (with "close" option).
  • Multiple CAST Delivery Managers:
    • Delivery Manager 1 - can add a new Version "n+1" (copied from an existing Version "n"), package his/her packages and deliver the Version "n+1" (with no "close" option)
    • Delivery Manager 2 - can refresh to import the latest Version "n+1" delivered by Delivery Manager 1, package his/her packages and deliver the Version "n+1" (with "close" option if he/she is the last Delivery Manager)
If your environment uses a web proxy to control or improve performance of internet or intranet access, please see Notes for using the CAST Delivery Manager Tool CLI via a web proxy.

Required common batch file parameters

Each batch file you create requires common parameters to launch the CAST Delivery Manager Tool in command line mode - you should modify them all (except the JNLP_FILE parameter) and match them to your local environment. Please see Required common batch file parameters in Automating source code delivery for more information.

Required Batch file parameters for one single Delivery Manager scenario

In this scenario, we have one Delivery Manager who is responsible for all source code. In this case, the Delivery Manager can run one command line batch that will automate the creation of a new version (copied from an existing version) - V2, package the same packages and deliver the Version (V2) with "close" option. The required parameters are shown below:

AutomateVersion

  • -application
  • [-version] > Note that this parameter is optional (if you omit it, then the last Version (I.e. the most recent) will always be used
  • -name
  • [-releaseDate] > Note that this is optional (defaults to current date if not set)
  • [-logFilePath]

Example:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = AutomateVersion - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================

set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version which will be copied>
set NAME=<Name of the new Version which will be created>
set RELEASE_DATE=<Date of release of the Version, e.g., YYYYMMDDHHSS>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_AUTOMATE=AutomateVersion -application \"%APPLICATION%\" -version \"%VERSION%\" -name \"%NAME%\" -releaseDate \"%RELEASE_DATE%\" -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_AUTOMATE%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version which will be copied>
NAME=<Name of the new Version which will be created>
DATE=`date '+%Y%m%d%H%M'`
RELEASE_DATE=$DATE
LOG_FILE_PATH="log1"
ACTION_AUTOMATE="AutomateVersion -application \"$APPLICATION\" -version \"$VERSION\" -name \"$NAME\" -releaseDate $RELEASE_DATE -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_AUTOMATE"

What you should expect after running the batch

Delivery Manager Tool

V1 will be copied to create V2, the Packages will be packaged and the Version will be marked as Delivered and Closed (read-only):

CAST Management Studio

The copied version will now move to Delivery done in the CAST Management Studio:

Required Batch file parameters for multiple Delivery Manager scenario

In this scenario, we have Version V1 containing two packages that has been delivered and closed. We have two Delivery Managers:

  • DM1 is the "first" Delivery Manager and is responsible for the database source code (TSQL_CASTPUBS)
  • DM2 is the "last" Delivery Manager and is responsible for the client source code (VB_CASTPUBS)

Step 1 - DM1 (first Delivery Manager) will create a new Version

In this example, DM1 will create a new Version (V2) from V1.

AddVersion

  • [-application]
  • -name
  • [-releaseDate] > Note that this is optional (defaults to current date if not set)
  • [-logFilePath]

Example:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = AddVersion - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================


set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version which will be copied>
set NAME=<Name of the new Version which will be created>
set RELEASE_DATE=<Date of release of the Version, e.g., YYYYMMDDHHSS>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_addVersion=addVersion -application \"%APPLICATION%\" -version \"%VERSION%\" -name \"%NAME%\" -releaseDate %RELEASE_DATE% -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_addVersion%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version which will be copied>
NAME=<Name of the new Version which will be created>
DATE=`date '+%Y%m%d%H%M'`
RELEASE_DATE=$DATE
LOG_FILE_PATH="log1"
ACTION_addVersion="addVersion -application \"$APPLICATION\" -version \"$VERSION\" -name \"$NAME\" -releaseDate $RELEASE_DATE -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_addVersion"

After running this step, you should expect the following:

Delivery Manager Tool

The new Version has been created by copying the previous Version:

The Packages in the new copied Version will not yet have been Packaged:

CAST Management StudioThe copied version will not be visible in the CAST Management Studio, because a Deliver action has not yet been run.

Step 2 - DM1 (first Delivery Manager) Packages his specific source code Package

In this example, DM1 will package his database source package, because the database has changed since V1. We are using the -reset option because the source code has changed.

Generate

  • [-application]
  • [-version]
  • [-package]
  • [-reset] > Note that this is optional, it will force the package to be extracted
  • [-forceScan] > Note that this is optional, it will force the CAST Delivery Manager Tool to run the scan step. This is recommended when you are re-packaging source code following the installation of a CAST AIP Extension.
  • [-logFilePath]

Example:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = Generate - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================


set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version that you are working with>
set PACKAGE=<Name of the source code package to Package>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_Generate=Generate -application \"%APPLICATION%\" -version \"%VERSION%\" -package \"%PACKAGE%\" -reset -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_Generate%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version that you are working with>
PACKAGE=<Name of the source code package to Package>
LOG_FILE_PATH="log1"
ACTION_Generate="Generate -application \"$APPLICATION\" -version \"$VERSION\" -package \"$PACKAGE\" -reset -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_Generate"

After running this step, you should expect the following:

Delivery Manager Tool

DM1's Package in the new copied Version will be marked as packaged:

CAST Management StudioThe copied version will not be visible in the CAST Management Studio, because a Deliver action has not yet been run.

Step 3 - DM1 will Deliver the version to the CAST AIC Portal

In this example, DM1 will now Deliver the Version (including his package) to the CAST AIC Portal. DM2 (and other Delivery Managers if they exist) will then be able to perform a Refresh and download V2 from the CAST AIC Portal. We are NOT using the -close action because we do not want to close the Version yet.

Deliver

  • -application
  • [-version] > Note this is optional, use -package instead if you need to Deliver just a Package.
  • [-package] > Note this is optional, use -version instead if you need to Deliver just a Version.
  • [-close] > Note that this is optional, it will force the Version to be closed (read-only)
  • [-logFilePath

Example:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = Deliver - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================


set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version that you are Delivering>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_Deliver=Deliver -application \"%APPLICATION%\" -version \"%VERSION%\" -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_Deliver%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version that you are Delivering>
LOG_FILE_PATH="log1"
ACTION_Deliver="Deliver -application \"$APPLICATION\" -version \"$VERSION\" -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_Deliver"

After running this step, you should expect the following:

Delivery Manager ToolNo change from Step 2.
CAST Management Studio

The copied version will now be visible in the CAST Management Studio:

Step 4 - DM2 refreshes the Version (V2) that was created by DM1

Refresh

  • -application
  • [-version] > Note this is optional, use -package instead if you need to Refresh just a Package.
  • [-package] > Note this is optional, use -version instead if you need to Refresh just a Version.
  • [-logFilePath]

Example:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = Refresh - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================


set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version that you are working with>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_Refresh=Refresh -application \"%APPLICATION%\" -version \"%VERSION%\" -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_Refresh%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version that you are working with>
LOG_FILE_PATH="log1"
ACTION_Refresh="Refresh -application \"$APPLICATION\" -version \"$VERSION\" -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_Refresh"

After running this step, you should expect the following:

Delivery Manager ToolDM2 will see V2 in the Delivery Manager Tool, with the packages.
CAST Management StudioNo change from Step 3.

Step 5 - DM2 (last Delivery Manager) Packages his specific source code Package

In this example, DM2 will package his VB source package, because the code has changed since V1. We are using the -reset option because the source code has changed.

Generate

  • [-application]
  • [-version]
  • [-package]
  • [-reset] > Note that this is optional, it will force the package to be extracted
  • [-logFilePath]

Example:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = Generate - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================


set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version that you are working with>
set PACKAGE=<Name of the source code package to Package>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_Generate=Generate -application \"%APPLICATION%\" -version \"%VERSION%\" -package \"%PACKAGE%\" -reset -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_Generate%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version that you are working with>
PACKAGE=<Name of the source code package to Package>
LOG_FILE_PATH="log1"
ACTION_Generate="Generate -application \"$APPLICATION\" -version \"$VERSION\" -package \"$PACKAGE\" -reset -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_Generate"

After running this step, you should expect the following:

Delivery Manager Tool

DM2's Package in the new copied Version will be marked as packaged:

CAST Management StudioNo change from Step 3.

Step 6 - DM2 will Deliver the version to the CAST AIC Portal

In this example, DM2 will now Deliver the Version (including his package) to the CAST AIC Portal. We are using the -close action because we want to close the Version as DM2 is the "last" Delivery Manager.

Deliver

  • -application
  • [-version] > Note this is optional, use -package instead if you need to Deliver just a Package.
  • [-package] > Note this is optional, use -version instead if you need to Deliver just a Version.
  • [-close] > Note that this is optional, it will force the Version to be closed (read-only)
  • [-logFilePath]

Exampe:

Windows

REM ===============================================
REM = DMT - Configuration
REM = Please do not change the JNLP_FILE parameter
REM ===============================================

set AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
set AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
set AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
set APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
set AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
set JNLP_FILE=http://%AICPORTAL_HOST%:%AICPORTAL_PORT%/%AICPORTAL_WEBAPP%/%APPLICATION_ID%/dmt-launcher.jnlp?url=http%%3A%%2F%%2F%AICPORTAL_HOST%%%3A%AICPORTAL_PORT%%%2F%AICPORTAL_WEBAPP%


REM ========================================================
REM = Deliver - one single Delivery Manager scenario
REM = Please only modify the path to your Java JRE "bin" folder
REM = note the quote marks that must be used for this path
REM = if it contains spaces.
REM ========================================================


set APPLICATION=<Name of the Application that you are working with>
set VERSION=<Name of the Version that you are Delivering>
set LOG_FILE_PATH=<Absolute path to the folder that will be used to store the log files generated using the command line, e.g. C:\TEMP - this folder must exist already!>
set ACTION_Deliver=Deliver -application \"%APPLICATION%\" -version \"%VERSION%\" -close -logFilePath \"%LOG_FILE_PATH%\"

"C:\Program Files (x86)\Java\jre7\bin\javaws.exe" %JNLP_FILE% -Xnosplash -silent -wait -open "%AUTH% %ACTION_Deliver%"

Linux

AICPORTAL_HOST=<name of machine hosting CAST AIC Portal - see below>
AICPORTAL_PORT=<port used by the application server hosting the CAST AIC Portal, e.g.: 8080>
AICPORTAL_WEBAPP=<Name of the CAST AIC Portal web application, e.g.: CAST-AICPortal>
APPLICATION_ID=<Application ID - this can be found in the DMT in the Application screen and will consists of a string of random characters and letters - see below>
AUTH=<The DMT requires authentication with CAST AIC Portal credentials prior to launch - see below for format>
JNLP_FILE=http://$AICPORTAL_HOST:$AICPORTAL_PORT/$AICPORTAL_WEBAPP/$APPLICATION_ID/dmt-launcher.jnlp?url=https%%3A%%2F%%2F$AICPORTAL_HOST%%3A$AICPORTAL_PORT%%2F$AICPORTAL_WEBAPP


APPLICATION=<Name of the Application that you are working with>
VERSION=<Name of the Version that you are Delivering>
LOG_FILE_PATH="log1"
ACTION_Deliver="Deliver -application \"$APPLICATION\" -version \"$VERSION\" -close -logFilePath \"$LOG_FILE_PATH\""

"/opt/jre1.8.0_171/bin/javaws" $JNLP_FILE -Xnosplash -silent -wait -open "$AUTH $ACTION_Deliver"

After running this step, you should expect the following:

Delivery Manager Tool

V2 will now be marked as Delivered and Closed (read-only):

CAST Management Studio

The copied version will now move to Delivery done in the CAST Management Studio:

  • No labels