Let’s automate together! Bitrise + IFTTT=⚙
Bitrise finds challenges in automation. Do you?

We’re almost sure you’ve used IFTTT (turning one’s phone ringer volume up FTW), but have you ever tried to use it with Bitrise? Let us give you some pointers to start on! We’ll show you two step by step guides how to use IFTTT with Bitrise:
- if your Bitrise build fails then IFTTT will send you an SMS
- if you press the Big Deploy Button on your phone then IFTTT will deploy your last build to App Store
1, Know instantly if a build fails
Let’s make IFTTT send you an SMS if your build fails!

On IFTTT
- After login, either click My Applets or your profile and click New Applet
- Click +this and search for Webhooks

3. Select Receive a web request
4. Set event name (e.g. build_failed) and Create trigger
5. Click +that and select SMS

6. Select SMS
7. Set a message, for example: Sorry, your build has failed. Why not try again?
8. You can add your build number too by inserting Value1 under Add ingredient: Sorry, your #{{Value1}} build has failed. Why not try again?

9. Create action, review and Finish

On Bitrise:
- Go to your selected app’s Workflow Editor and after the last step, click
+and add aScript - Turn on
Run if previous step failed, to make sure this runs in all cases and replace the script in the textbox with the following:
curl -X POST -H "Content-Type: application/json" -d '{"value1":$BITRISE_BUILD_NUMBER}' https://maker.ifttt.com/trigger/build_failed/with/key/$IFTTT_TOKEN

3. You can find the token at the Webhook’s maker page under Documentation.

4. Add this token as an Environment Variable to Bitrise in your Workflow Editor with the name IFTTT_TOKEN
5. Save and you are done!
You’ll get an SMS when your build fails. We hope you won’t get (m)any! 👻
2, Big Deploy Button
How about a Big Deploy Button? You could deploy your last release straight to App Store. Do it yourself!
On Bitrise:
- Log in and select your app. Click
Start/Schedule a Buildin the top right corner. - Choose
Advanced, select your preferredbrachand thedeployment workflow. - Find the
cURLcommand at the bottom of the popup and save it somewhere. You will need this later.

On IFTTT:
- After login, either click My Applets or your profile and click New Applet
- Click +this and search for Button widget. Select it and then
Button press - Click +that and search for Webhooks. Select it and then click
Make a web request - Copy and paste your cURL from (see 3. above)
- Set
Method: PostandContent Type: application/json - Copy the build parameters following
datafrom your app's cURL command (see 3. above) and insert it toBody. Change "triggered by" parameter to "ifttt" - Create action, name your applet (e.g. Deploy with Bitrise or Big Deploy Button) and Finish

You are almost done :)
On your phone:
- Install the IFTTT application and log in (Google Play, App Store
- Add widget to your home screen: IFTTT small
- Choose your applet (e.g. Deploy with Bitrise or Big Deploy Button)
- Press it and 🎉

Think on!
Similarly, you could track all your builds in a Google Spreadsheet and have all the details there: project and build number, build time, success, status, etc. Or…
Do you have another IFTTT applet for Bitrise? Share it with us!
Originally published at http://blog.bitrise.io/2017/07/20/ifttt-bitrise-magic.html on July 20, 2017.
