Versions Compared

Key

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

...

Code Block
languagegroovy
def projectGroup = "Oracle Integrations"
return stgexec.getSnapshotProjects().findIndexOf { 
  projectGroup in it.getProjectGroupNames() 
} != -1

Create

...

Comments

Use FLEXDEPLOY function createComment with FdCommentDataObject as an argument to create comment. FdCommentDataObject contains commentId, objectId, commentText, parentObjectId, objectType and versionNumber.

The below table will explain the ObjectTypes Object Types supported and inputs that needs to be passed based on the type.

Object Type

Object Id

Parent Object Id

PIPELINE_GATE_EXEC

Pipeline stage gate id

Pipeline

exe

exec id

PIPELINE_STEP_EXEC

Pipeline stage step id

Pipeline

exe

exec id

PIPELINE_GATE

Pipeline stage gate id

 

PIPELINE_STEP

Pipeline stage step id

 

RELEASE

Release definition id

 

WORKITEM

FlxWorkItem

Flx WorkItem id

 

Below sample script creates a comment for pipeline gate execution object type.

...