Versions Compared

Key

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

...

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

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);