View a markdown version of this page

iOS build and test pipeline using Jenkins - DevOps and CI/CD Reference Architecture Diagrams

iOS build and test pipeline using Jenkins

Publication date: November 23, 2021 (Diagram history)

With this architecture, you can automate building and testing iOS apps by using Jenkins, Amazon Elastic Compute Cloud Mac instances, and AWS Device Farm.

iOS build and test pipeline using Jenkins diagram

iOS build and test pipeline using Jenkins, Amazon EC2 Mac instances, and Device Farm for device testing.

The following steps describe the architecture:

  1. A developer initiates a build and test activity in AWS CodePipeline by pushing a code change to AWS CodeCommit.

  2. CodePipeline detects the change in CodeCommit and creates a job for Jenkins.

  3. Jenkins on Amazon EC2 Mac uses the CodePipeline plugin to poll CodePipeline, downloads the source, and triggers the build project.

  4. The Amazon EC2 Mac instance builds the artifacts (as .ipa files). The CodePipeline plugin for Jenkins compresses and uploads the build artifacts to CodePipeline through Amazon Simple Storage Service.

  5. CodePipeline runs the test stage on Device Farm to test the build artifacts (.ipa files) on multiple real devices.

  6. Device Farm automatically fetches the build artifacts from the Amazon S3 bucket, runs the test cases, and records the results.

  7. Device Farm makes the test results, logs, and recordings available for review through the Device Farm console or through Amazon S3 pre-signed URLs.

Further reading

For additional information, see the following resources: