Versions Compared

Key

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

...

Templates can be accessed through the Administration menu.

Image RemovedImage Added

Predefined Templates

...

  • Create two template inputs of String type - ApplicationName, ProjectName. Use script code as shown below.
  • Most configurations are constant, i.e. workflow, instance, partition property etc.
  • Only change is location of composite in Git repository.Generated projects will have different
    • location in FlexDeploy project explorer
    • Sparse checkout folder script
Code Block
languagegroovy
// best practice is to have the projectName be the same as the composite name
CompositeName=ProjectName;
Project.setProjectName(ProjectName);
Project.setActive(true);
Project.setSCMType("GIT");
Project.setBuildWorkflowName("BuildSOA");
Project.setDeployWorkflowName("DeploySOA");
Project.setProjectPath("FlexDeploy/SOA/" + ApplicationName);
Project.setBuildInstanceName("SOA1");
Project.addDeployInstances("SOA1");

Project.addGITConfig(1,"GITREPO", "StreamName", "ProjectVersion", "ProjectName", "\"SOA/" + ApplicationName +   "/\" + ProjectName");
Project.getStreams().get(0).setStreamName("master");

Project.setDeployPriority(10);
Project.setDeployPriorityScope("Global");

Project.addProperty("FDSOA_COMPOSITE_NAME", CompositeName);
Project.addProperty("FDSOA_PARTITION", "default");

Project configured with this template would be like this for GetOrder as ProjectName and OrderServices as ApplicationName.

Image Added

Sample EBS Project

  • Create template inputs of String type - ProjectName. Use script code as shown below.
    • ProjectName values will be like XXHR, XXAP etc.
  • Most configurations are constant, i.e. workflow, instance, partition property etc.
  • Generated projects will have different
    • same location in FlexDeploy project explorer
    • Sparse checkout folder script is defaulted to Project Name, so you must have folder like XXHR, XXAP in root of repository, otherwise script will need some tweaks.
    • Application Short Name will be set to project name.
Code Block
languagegroovy
// best practice is to have the projectName be the same as the custom top name
Project.setProjectName(ProjectName);
Project.setActive(true);
Project.setSCMType("GIT");
Project.setBuildWorkflowName("BuildEBS");
Project.setDeployWorkflowName("DeployEBS");
Project.setProjectPath("FlexDeploy/EBS");
Project.setBuildInstanceName("EBS");
Project.addDeployInstances("EBS");

Project.addGITConfig(1,"GITREPO", "StreamName", "ProjectVersion", "ProjectName", "ProjectName");
Project.getStreams().get(0).setStreamName("master");

Project.setDeployPriority(10);
Project.setDeployPriorityScope("Application");

Project.addProperty("FDEBS_APPLICATION_SHORT_NAME", ProjectName);