Post Build Step Example

In order to utilize Continuous Integration Servers, like Jenkins, buddybuild, or CircleCI, with Lab Automated, users must configure a post-build step, a simple curl command, to notify our system when a build is complete.

Here is a sample post-build script:

#!/usr/bin/env bash

echo -n "Submitting build to Lab Automated ... "

curl \

-X POST \

-H "Authorization: Bearer $NS_TOKEN" \

https://lab-api.nowsecure.com/build/ --data-binary @$BUDDYBUILD_IPA_PATH

if [ $? -eq 0 ]; then

echo "COMPLETED"

else

echo "ERROR - CODE: $?"

fi

To see a full demo that includes a code commit, app build, and security assessment, visit our Continuous Integration with BuddyBuild page.