> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/integrations/bitrise-integration.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# Bitrise 連携

Autify ではお手持ちのBitrise workflow から簡単にビルドをアップロードしたりテストプランを実行できる公式のBitrise step を提供しています。

## はじめてみよう

このドキュメントでは、皆さんのBitrise workflow でどのようにAutify のBitrise 連携を利用するかを順に説明していきます。

### 前提条件

まず、すでにBitrise workflow を使ってアプリケーションのビルドを行なっているものとします。そのビルドstep のすぐ後にAutify のテストを実行するstep を追加することで、新しくビルドされたアプリケーションがエンドツーエンドのユーザ体験を損ねていないことを確認できるようにします。

次に、[Autify NoCode Mobile](https://mobile-app.autify.com) でテストプランを作成する必要があります。テストプランまたはシナリオのURL (例: `https://mobile-app.autify.com/projects/AAA/scenarios/BBB`) をメモしておいてください、後ほど利用します。

さらに、[パーソナルアクセストークンを生成する](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/integrations/api-integration.md#api-authentication-token-generation-method)必要があります。後ほどBitrise Secrets に保存するために、生成されたトークンはどこかにメモしておいて下さい。

*注: パーソナルアクセストークンは1人のユーザに紐づいてしまうので、CI/CD 連携のために組織にマシンユーザを作って、そのパーソナルアクセストークンを使うことをお勧めします。*

### パーソナルアクセストークンをBitrise Secrets に保存

上で生成したパーソナルアクセストークンを[Bitrise のドキュメント](https://devcenter.bitrise.io/ja/builds/secrets.html)に従って、Secrets に保存します。Secret の名前は任意ですが、その名前はBitrise workflow を定義するときに参照します。ここでは`AUTIFY_MOBILE_ACCESS_TOKEN` と命名したと仮定しておきます。

### Autify NoCode Mobile にビルドをアップロードしたりテストを実行するBitrise step を追加

それでは、お手持ちのBitrise workflow に新しいstep を追加しましょう。以下の例を参考にして`bitrise.yaml` を編集してください。`autify-test-url` の値は、上でメモしたURL になります。Bitrise UI を経由しても全く同じ設定をすることができます。

* [Autify Test Run step](https://www.bitrise.io/integrations/steps/autify-test-run)
* [Autify Upload step](https://www.bitrise.io/integrations/steps/autify-upload)

***

新しいビルドファイルをアップロードしてテストを開始する (テストの完了は待たない):

```yaml
## With Android Build step: https://www.bitrise.io/integrations/steps/android-build
- android-build@1: {}
- autify-test-run@1:
    inputs:
    - access_token: "$AUTIFY_MOBILE_ACCESS_TOKEN"
    - autify_test_url: https://mobile-app.autify.com/projects/AAA/test_plans/BBB
    - build_path: "$BITRISE_APK_PATH"

## With Xcode build for simulator step: https://www.bitrise.io/integrations/steps/xcode-build-for-simulator
- xcode-build-for-simulator@0: {}
- autify-test-run@1:
    inputs:
    - access_token: "$AUTIFY_MOBILE_ACCESS_TOKEN"
    - autify_test_url: https://mobile-app.autify.com/projects/AAA/test_plans/BBB
    - build_path: "$BITRISE_APP_DIR_PATH"
```

もしテストが完了するか、タイムアウトするまで待つ場合:

```yaml
- autify-test-run@1:
    inputs:
    - access_token: "$AUTIFY_MOBILE_ACCESS_TOKEN"
    - autify_test_url: https://mobile-app.autify.com/projects/AAA/test_plans/BBB
    - build_path: /path/to/your-[ios.app|android.apk]
    - wait: 'true'
    - timeout: '3000'
```

**警告: この設定はテスト完了を待っている間もBitrise credit を消費します。タイムアウトを延長するときは注意してください。**

新しいビルドファイルをアップロードするだけ (`workspace_id` は上でメモしたURL の`/projects/` のすぐ後ろのid):

```yaml
- autify-upload@1:
    inputs:
    - access_token: "$AUTIFY_MOBILE_ACCESS_TOKEN"
    - workspace_id: AAA
    - build_path: /path/to/your-[ios.app|android.apk]
```

## まとめ

[Autify のBitrise step](https://www.bitrise.io/integrations/steps/autify-test-run) を使うことで、ビルド後にテストプランの実行を自動化できるので、無駄な時間を使うことなくリグレッションをすぐに検知して適切な行動を取ることができるようになります。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/integrations/bitrise-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
