Versions Compared

Key

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

...

addProperty pPropertyName, Object pPropertyValue

This depends on type of Project being created. For example,

// using hard Default would be true
MethodRequiredDescription
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.

You must make sure that you are defining last element in Project Path consistently as Application. For example, along with above example FlexDeploy/SOA/HR, if you used path as FlexDeploy/SOA/HR/Application, you will have issues.

Project.setProjectName(String pProjectName)YesSet Project Name.
Project.setDeployPriority(Integer pDeployPriority)YesSet Project Priority. If not supplied 1 is used.
Project.setDeployPriorityScope(String pDeployPriorityScope)YesDefaults to Application. Possible values are Application, Folder, Global.
Project.setDescription(String pDescription)Yes
Project.setProjectClassification(String pClassification)No
Code Block
languagegroovy
Classification for this project.  Possible values are Standard, PartialDeployments, Container, Utility.  Default is Standard.
Project.setProjectType(String)NoRequired if partial deployment project. Examples are GENERAL, EBS, PARTIAL_FILE, PARTIAL_JDBC, OracleForms, ORACLE_DB, ORACLE_BI, ORACLE_APEX, MFT, SALESFORCE, UTILITY, MDS, SAP, OSB, GENERIC
Project.addProperty(String pPropertyName, Object pPropertyValue)No

This depends on type of Project being created. For example,

Code Block
languagegroovy
// using hard coded partition name as default.
Project.addProperty("FDSOA_PARTITION", "default");

// Using Input PartitionName. Each project can specify different partition
Project.addProperty("FDSOA_PARTITION", PartitionName);

Project.addProperty("FDSOA_OVERWRITE_REVISION", false);

Project.addProperty("FDSOA_MAKE_DEFAULT_REVISION", true);


Project.addProperty(String pPropertyName, Object pPropertyValue, boolean pExpression)NoSame as above method, except you can specify whether Property Value is expression or not by using boolean parameter.Project.setActive(boolean pActive)NoProperty Value is expression or not by using boolean parameter.
Project.setActive(boolean pActive)NoDefault would be true.
Project.setWebhooksEnabled(boolean pWebhookEnabled)NoEnables or disables webhook enabled flag for project. This was added in 5.3.0.2
Project.setProjectBuildSequence(Long pSequenceNumber)No@since 5.4.0.2 Set the initial value for the ProjectBuildSequence variable which can be used in stream syntax scripts. Defaults to 1 if not set.
Change default stream name.No
This must be done prior to adding any Stream.
Project.getStreams().get(0).setStreamName("master");

...

MethodRequiredDescription
Project.setSCMType(pSCMType)NoSet SCM Type or use Project Defaults. Possible values are SVNCVS, FILE, GIT, TFVC, CVSNONE, PERF, PVCS, SVN, TFVC, OIC.


MethodRequiredDescription
Project.setSVNForSCM()NoCall to use Subversion for Project.
Project.setGITForSCM()NoCall to use Git for Project.
Project.setTFVCForSCM()NoCall to use Microsoft TFVC for Project.
Project.setCVSForSCM()NoCall to use CVS for Project.
Project.setPERFForSCM()NoCall to use Perforce for Project.
Project.setPVCSForSCM()NoCall to use PVCS for Project.
Project.setFILEForSCM()NoCall to use File System SCM type for project.

...

Code Block
languagegroovy
Project.createStreamFromMainStream(String pStreamName)

Project.createStream(String pStreamName, String pVersionSyntaxScript)
Project.createStream(String pStreamNameString pStreamName, String pVersionSyntaxScript, String pDescription)
Project.createStream(String pStreamName, String pVersionSyntaxScript, String pDescription, String pAttribute1, String pVersionSyntaxScriptpAttribute2, String pDescriptionpAttribute3) 
Project.createStream(String pStreamName, String pVersionSyntaxScript, String pDescription, String pAttribute1, String pAttribute2, String pAttribute3, Long pSequenceNumber) 


MethodRequiredDescription
Project.createStreamFromMainStream(String pStreamNameString pStreamName)No

Create a copy of the main stream with a new name.  The main stream is generated from default configurations.

For example,

Project.createStreamFromMainStream("branch1")

Project.createStream(String pStreamName, String pVersionSyntaxScript)No

Create a copy of the main stream with a new name.  The main stream is generated from default configurationsan additional stream based on the inputs.  Description, Attribute1, Attribute2 and Attribute3 will be defaulted to blank entries.

For example,

Project.createStreamFromMainStreamcreateStream("branch1", "\"1.0")

Project.createStream(String pStreamName, String pVersionSyntaxScript, String pDescription)No

Create an additional stream based on the inputs.  Description, Attribute1, Attribute2 and Attribute3 will be defaulted default to blank entries.

For example, 

Project.createStream("branch1", "\"1.0.0", "March release")

Project.createStream(String pStreamName, String pVersionSyntaxScript, String pDescription, String pAttribute1, String pAttribute2, String pAttribute3)No

Create an additional stream based on the inputs.  Attribute1, Attribute2 and Attribute3 will be default to blank entriesThe attribute values can be further utilized in different path scripts during SCM configurations below.

For example, 

Project.createStream("branch1", "\"1.0", "March release","attr1","", "")

@since 5.4.0.2 Project.createStream(String pStreamName, String pVersionSyntaxScript, String pDescription, String pAttribute1, String pAttribute2, String pAttribute3, Long pSequenceNumber)No

Create an additional stream based on the inputs.  The attribute values can be further utilized in different path scripts during SCM configurations below.

For example,

Project.createStream("branch1", "\"1.0", "March release","attr1","", "", 10)

SCM Details

Next, configure the SCM details for your selected SCM Type. Choose one of the methods that contains the options that you need to configure for your projects from the list.

...