Versions Compared

Key

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

...

Instance Methods

Code Block
languagegroovy
//All these methods take instance Codes, not Names as the methods suggest.
Project.setBuildInstanceName(String pBuildInstanceName)
Project.addDeployInstances(String... pDeployInstances)
Project.addDeployInstances(String pDeployInstances)
Project.addDeployInstances(String pDeployInstances, String pDelimiter)
Project.addDeployInstanceName(String pDeployInstanceName)

...

SCM TypeSupported Methods
SVN
Code Block
Project.addSVNConfig(int pSequenceNumber, String pInstanceNamepInstanceCode)
Project.addSVNConfig(int pSequenceNumber, String pInstanceNamepInstanceCode, String pTrunkPathScript, String pBranchPathScript, String pTagPathScript, String pCheckoutDirectory)
GIT
Code Block
Project.addGITConfig(int pSequenceNumber, String pInstanceNamepInstanceCode)
Project.addGITConfig(int pSequenceNumber, String pInstanceNamepInstanceCode, String pBranchPathScript, String pTagPathScript, String pCheckoutDirectory, String pSparseCheckoutFoldersScript)
TFVC
Code Block
Project.addTFVCConfig(int pSequenceNumber, String pInstanceNamepInstanceCode)
Project.addTFVCConfig(int pSequenceNumber, String pInstanceNamepInstanceCode, String pMainPathScript, String pBranchPathScript, String pLabelNameScript, String pCheckoutFolderScript)
PERF
Perforce support was added in FlexDeploy 4.0.2

Code Block
Project.addPERFConfig(int pSequenceNumber, String pInstanceNamepInstanceCode)
Project.addPERFConfig(int pSequenceNumber, String pInstanceNamepInstanceCode, String pMainPathScript, String pBranchPathScript, String pLabelNameScript, String pCheckoutFolderScript)
CVS
Code Block
Project.addCVSConfig(int pSequenceNumber, String pInstanceNamepInstanceCode)
Project.addCVSConfig(int pSequenceNumber, String pInstanceNamepInstanceCode, String pModuleNameScript, String pBranchNameScript, String pTagScript, String pCheckoutFolderScript)

...

Continuous Integration Methods

Code Block
languagegroovy
//These methods add Continuous Integration into your project.
putYourVariableNameHere = Project.addPollSCMTrigger(int pIntervalMinutes, String pStreamName, String pEnvironmentName)
putYourVariableNameHere = Project.addScheduledBuildTrigger(String pCronExpression, String pStreamName, String pEnvironment)
putYourVariableNameHere = Project.addScheduledDeployTrigger(String pCronExpression, String pStreamName, String pEnvironment)
putYourVariableNameHere = Project.addPostBuildTrigger(String pStreamName, String pEnvironment)

// The following methods are available on the object returned from the methods above so inputs and Flexfields can be added to the trigger.
putYourVariableNameHere.addFlexField(String pFlexFieldName, String pValue)
putYourVariableNameHere.addInput(String pInputName, String pValue) 

//For example, to add a Poll SCM trigger with a FlexField and an input, you would write code like this. trigger1 is a variable, its name isn't important, but must match.
trigger1 = Project.addPollSCMTrigger(5, "trunk", "DEV01")
trigger1.addFlexField("Change_Number", "Built by CI Poll SCM")
trigger1.addInput("input", "Built by CI Poll SCM")

...