Versions Compared

Key

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

Trying to do something more standard, like groovy docs - http://docs.groovy-lang.org/latest/html/api/groovy/time/TimeCategory.html

Context Variables

NameDescription
FLX_MESSAGE_ID
Message id as shown on Webhook Messages screen
Unique id for the incoming webhook message
FLX_PRISTINE_PAYLOAD
Payload from webhook eventMethod/Parameters
Pristine (untouched) payload from the sender. Use this payload when generating hmac strings
FLX_REMOTE_ADDRRemote address of the incoming request
FLX_REMOTE_HOSTRemote host of the incoming request
HTTP_HEADERSHeaders of the incoming request
PAYLOADHash map of incoming payload. Nodes can be referenced with dot notation. PAYLOAD.field2.field3
QUERY_PARAMS

Methods

FLEXDEPLOY

Query parameters of the incoming request

Function Classes

LOG

...

GITHUB

...

BITBUCKET

...

JIRA

...

SLACK

MethodParametersDescription
ClassDescription
addFilesToPackageFLEXDEPLOYAdd files to a given project package
     projectIdId of project package is in
     packageNameName of package to add files to
     filesFilepaths of files to add
addPackagesToReleaseAdd package(s) to an existing release
     releaseNameName of release to add packages to
     releaseProjectsA list of release project pojos to add. ****describe pojo*****
addProjectsToReleaseAdd project(s) to an existing release
     releaseNameRelease name to use
     projectIdsList of ids for projects to add
approveTaskSubmits approval for an existing approval task ****should we even document this one???
     usernameThe username to request the approval as
     taskIdId of the task to approve
     notesComment to include with approval
buildPackageBuild a package for a project. Returns the workflow request id
     streamIdThe stream to build, see findStreamId
     projectPackagePojo containing package information ****pojo description
buildPackageBuild a package for a project. Returns the workflow request id
     streamIdThe stream to build, see findStreamId
     projectPackagePojo containing package information ****pojo description
     pollingResultPollingResult object to pass to build
MethodDescriptionaddFilesToPackage(projectId, packageName, files)Add files to a package given the project id, package name, and a list of filepaths of files to addaddPackagesToRelease(releaseName, releaseProjects)

HMAC

...

Functions to perform actions in FlexDeploy
HMACFunctions for generating an hmac string
LOGFunctions used to print log messages
GITHUBFunctions used to get information from a GitHub payload
BITBUCKETFunctions used to get information from a Bitbucket payload
SLACKFunctions used to get information from a Slack payload