Skip to main content

Microsoft App Center Integration

This topic describes how to migrate your apps from Microsoft App Center to a Sauce Labs Data Center by creating a post-build script in Microsoft App Center.

What You'll Need

Creating the Post-Build Script

  1. Link your project source code to your App Center project.

  2. Create a script called and add it to your project source code repository.

  3. If you're testing a cross-platform app using a framework such as React Native, add the following environment variables: APP_NAME and BUILD_NAME. If you're building a single project (iOS or Android), skip to the last step.

#!/usr/bin/env bash
# You can find this name in the build logs of a previous project.
# For now, we'll create an empty variable and change it based on the
# project that's using this script.
  1. Set the correct app name based on the app platform.
  1. You can optionally set a console message to appear in your App Center logs.
  1. Add the following command to push to the Sauce Labs Data Center that contains your target real device you want to test on.

Use the App Storage API to retrieve a specific build or obtain information regarding the build that ran during this operation.