Versions Compared

Key

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

Here’s some sample webhook functions that would be executed once the webhook sent by the extension is received in FlexDeploy. These examples are specific to the context of the browser extension, but check out <webhook the incoming webhook function samples> samples for more general ideas of what’s possible with incoming webhook functions. Also, see the <reference> reference page for the context variables and methods available.

...

Code Block
languagegroovy
def functionName = "Build APEX Application";
LOG.info("Running function: ${functionName}");

if ("Build Application(s)".equals(PAYLOAD.actionName))
{
  for (def application in PAYLOAD.properties["Application Names"])
  {
    def projectId = FLEXDEPLOY.findProjectId(application);
    def streamId = FLEXDEPLOY.findStreamId(projectId, "main");
    FLEXDEPLOY.buildProject(streamId, projectId, "DEV")
  }
}

APEX - Commit to Git

ORDS - Export Module

Code Block
def functionName = "ORDS Export Module";
LOG.info("Running function: ${functionName}");

if ('Export ORDS Module'.equals(PAYLOAD.actionName))
{
  def moduleNames = PAYLOAD.properties['Module Names'];
  def module = moduleNames[0];
  def projectId = FLEXDEPLOY.findProjectId(module[0].concat(' REST'));
  def streamId = FLEXDEPLOY.findStreamId(projectId, 'trunk');
  LOG.setMessage('Building project ${projectId}');
  FLEXDEPLOY.buildProject(streamId, projectId);
}

OIC - Build Integration

OBIEE - Create/Update Package

...