Bitbucket is getting a new navigation

We’re rolling out these changes, so the documentation may not match your experience in the Bitbucket Cloud app. Read about the new Bitbucket navigation

最初のパイプラインを構成する

パイプラインを構成するには、YAML ファイルに直接記述する方法と Bitbucket が提供する UI ウィザードを使用する方法の 2 種類があります。次のステップでは、Pipelines 構成ウィザードの使用方法を示します。

前提条件

  • Bitbucket Cloud アカウントが必要です。

  • ワークスペースにはリポジトリが 1 つ以上必要です。

手順

  1. Bitbucket でリポジトリに進み、[Pipelines] を選択します。

  2. [最初のパイプラインを作成] を選択し、テンプレート セクションまで下へスクロールします。

  3. 利用可能なテンプレートを 1 つ選択します。どれを選んだらよいかわからない場合、推奨テンプレートを使用できます。

テンプレートは、アプリ、マイクロサービス、モバイル IaaC、サーバーレス開発などのさまざまなユースケースや技術に対応します。ソリューションは、AWS、Azure、GCP などの主要クラウド プロバイダーをサポートしています。NodeJS、PHP、Java、Python、.NET Core といった最も一般的な言語をサポートしていますが、テンプレート リストでは Bitbucket リポジトリの設定言語に基づき、その言語のテンプレートが自動的に推奨されます。

4. Once you choose a template, you will land in the YAML editor where you can configure your pipeline. Read about YAML syntax

テンプレートを変更する

テンプレートは、ドロップダウンを開き、別のテンプレートを選択することでいつでも変更できます。新規テンプレートを選択すると、既存の内容は上書きされるためご注意ください。

その他のステップを追加する

他のステップを簡単に追加できます。ステップ パネルのオプションにカーソルを合わせて、コピーしたコード スニペットをエディターに追加します。

Pipes を追加する

Pipes allow you to easily configure a pipeline with third-party tools. Read about pipes

To use a pipe you just have to select the pipe you want to use, copy, and paste the code snippet in the editor. There are dozens of pipes, so select Explore more pipes to view the full list.

変数を追加する

You can define custom variables that you can use in the YAML file. To add a variable, fill in the name, the value, check whether you want to encrypt it by selecting the secured box, and select Add. Read about variables and secrets

結果

Now that you’ve configured your first pipeline, you can always go back to the yaml editor by selecting the pipeline cog icon. Read about views and statuses for pipelines

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。