Many project configuration options are available to the templates screen. This page seeks to list all of the available methods and enough information to use them in your templates.
Script Variables
Variable Name | Description |
---|
Project | Project being created. This corresponds to one row in input CSV file and will eventually create one single Project. |
<Custom Inputs> | Inputs defined on Template. |
General Project Methods
Method | Required | Description |
---|
Project.setProjectPath(String pProjectPath) | Yes | Set Project path. For example. FlexDeploy/SOA/HR. In this example, SOA folder will be created if it does not exist and HR application will be created if it does not exist. |
Project.setProjectName(String pProjectName) | Yes | Set Project Name. |
Project.setDeployPriority(Integer pDeployPriority) | No | Set Project Priority or use Project Defaults. |
Project.setDeployPriorityScope(String pDeployPriorityScope) | No |
|
Project.setDescription(String pDescription) | No |
|
Project.addProperty(String pPropertyName, Object pPropertyValue) | No |
|
Project.setActive(boolean pActive) | No |
|
Workflow Methods
Method | Required | Description |
---|
Project.setBuildWorkflowName(String pBuildWorkflowName) | Yes |
|
Project.setDeployWorkflowName(String pDeployWorkflowName) | Yes |
|
Instance Methods
Tip |
---|
All these methods take instance Codes, not Names as the methods suggest. |
Method | Required | Description |
---|
Project.setBuildInstanceName(String pBuildInstanceName) | Yes | Set Build Instance Code to be used for Project. |
Project.addDeployInstances(String pDeployInstances) | Yes | Set one or more Deploy Instance Code to be used for Project. Use comma (,) if you are passing more than one Deploy instance codes or call method more than once with single value. |
SCM Methods
SCM Type
Code Block |
---|
title | Setting the SCM Type for the Projects |
---|
|
Project.setSCMType("SCM Type") // Valid Strings for the "SCM Type" are SVN, GIT, TFS, CVS, PERF, CCUCM, PVCS
// Or, use one of these methods instead:
Project.setSVNForSCM()
Project.setGITForSCM()
Project.setTFVCForSCM()
Project.setCVSForSCM()
Project.setPERFForSCM()
Project.setCCUCMForSCM()
Project.setPVCSForSCM() |
...