Versions Compared

Key

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

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 NameDescription
ProjectProject 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

MethodRequiredDescription
Project.setProjectPath(String pProjectPath)YesSet 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)YesSet Project Name.
Project.setDeployPriority(Integer pDeployPriority)NoSet 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

MethodRequiredDescription
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.


MethodRequiredDescription
Project.setBuildInstanceName(String pBuildInstanceName)YesSet Build Instance Code to be used for Project.
Project.addDeployInstances(String pDeployInstances)YesSet 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
titleSetting 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()

...