Versions Compared

Key

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

...

If there is a function that you don't see available that would be needed to fit your use case you can first check the release notes of later FlexDeploy versions to see if the function you need has since been added. If you still don't see your function you can open an enhancement request on the support site

What if I have multiple FlexDeploy Projects using a single Git Repository?

This is the exact intent the FLEXDEPLOY.findProjectsForChange method was created. The method will find all projects using the passed repository name, and validate the files that changed are included as a part of the FlexDeploy Project Sources.

Use this function in tandem with getChangeLogs methods on BITBUCKET and GITHUB.

My HMAC string is not matching

The most common reason for your HMAC string not generating correctly is by using the PAYLOAD variable instead of the FLX_PRISTINE_PAYLOAD variable. PAYLOAD has been formatted and converted by FlexDeploy to allow easier manipulation whereas FLX_PRISTINE_PAYLOAD is the payload exactly as it was received. FLX_PRISTINE_PAYLOAD should be the payload used when generating HMAC strings. Some other reasons why it may not be matching are:

  • Incorrect algorithm used (check your providers documentation to verify what algorithm they encrypt with).
  • The Provider is encrypting more than just the payload. For example, Slack encrypts the payload, timestamp and other fields into the HMAC string.

What is the purpose of the LOG.setMessage function?

Often times your Webhook Function may result in any number of different outcomes. Rather than having to go into a request and look at the logs you can use the setMessage function to set the 'message' column on the message table. Below is an example where using the setMessage function can be helpful:

Image Added

The function running for Bitbucket on bitbucket/push receives all push events on all branches. We only care about pushes to certain branches so when we receive an insignificant push event we can set the message accordingly.


Info
titleErrors

If you use LOG.setMessage in your function and the function later errors, the error message will take priority and override your message from the setMessage function.