- Installing node module.
- Copying Sitcore Libraries.
- Nuget Restore
- Build Project
- Gulp: – Sitecore Helix require gulp to run couple of tasks. So we will be needing gulp extension for the same.
- GIT: – It will be required to send the status to GIT.
- Click on the project and then click on edit project settings on the top right corner.
2. Click on Create build configurations.
3. Click proceed after providing the password.
4. Provide the build configuration name as “Install Node module” and proceed.
This will lead to configuration settings. Here we will need to modify 2 settings:-
- Build Steps and Trigger.
Here we can change branch name from master to “your branch name”.
5. Click on build Steps and add build step.
6. Select Command Line into Runner Type.
7. Save and then click on Trigger.
On Trigger we need to setup when this step will run.
If you can see “VCS Trigger” already added then click edit else add “VCS Trigger” from dropdown.
Check the checkbox under Per-checkin Triggering.
Save and this completes our first build configuration.
Now let’s add Copy Sitecore Libraries build configuration to copy sitecore libraries.
- Go back to project settings and add new build configuration with name Copy Sitecore Libraries.
- Click on build Steps and add build step.
- Select Gulp into Runner Type.
4. Fill all the fields as below. Gulp.integration.js file is the gulp file comes with habitat.
5. Save and then click on Trigger.
6. Add new trigger and select Finish Build Trigger.
7. Select Install Node Module in build configuration. So that once install node module gets completed copy sitecore libraries can run.
Now let’s add Nuget Restore build configuration:-
1. Go back to project settings and add new build configuration with name Nuget Restore.
2. Click on build Steps and add build step.
3. Select Gulp into Runner Type.
4. Fill all the fields as below. Gulp.integration.js file is the gulp file comes with habitat.
5. Save and then click on Trigger.
6. Add new trigger and select Finish Build Trigger.
7. Select Copy Sitecore Libraries in build configuration.
Now let’s add Build Project build configuration:-
1. Go back to project settings and add new build configuration with name Build Project.
2. Click on build Steps and add build step.
3. Select Visual Studio (sln) into Runner Type.
4. Select Visual Studio 2015 into Visual Studio and Target will be Rebuild.
5. Select your sln file into solution file path.
6. Create 2 build features:- VCS Labeling and Report Change status to GitHub.
6. Save and then click on Trigger.
7. Add new trigger and select Finish Build Trigger.
8. Select Nuget Restore in build configuration.
9. Click on Agent Requirements and if you find Unmet requirements: MSBuildTools14.0 then install Microsoft Build Tools 2015.
After all the above steps, TeamCity will be able to build the solution successfully.
So lets end this blog here. Next blog will contain last 3 build configurations which are:-
- Publish All Project
- Apply XML Transform
- Unicorn Sync
GitこれはHelixアーキテクチャのTeamCity構成のパート2です。 パート1:-TeamcityのインストールとBitBucketへの接続をご覧ください。
パート2では、次の点について説明します.
プロジェクトをセットアップし、最初の4つのビルド構成を作成します。
- ノードモジュールをインストールしています。
- Sitcoreライブラリのコピー。
- Nuget Restore
- プロジェクトの構築
これらの手順をカバーするには、2つの拡張機能が必要になります:-
- Gulp:-Sitecore Helixでは、いくつかのタスクを実行するためにgulpが必要です。したがって、同じためにgulp拡張が必要になります。
- GIT:-ステータスをGITに送信する必要があります。
ここから Gulp and Git 拡張機能をダウンロードします。
ダウンロードしたら、両方の拡張機能をDataDirectoryフォルダー内のプラグインフォルダーに貼り付けます
デフォルトパス:-C:\ ProgramData \ JetBrains \ TeamCity \ plugins
そのため、前回のブログでは、teamcityをセットアップし、bitbucketに接続して、プロジェクトを作成しました。
teamcityにログインすると、プロジェクトを表示できるようになります。
- プロジェクトをクリックしてから、右上隅にある[プロジェクト設定の編集]をクリックします。

2.[ビルド構成の作成]をクリックします。

3. パスワードを入力したら、[続行]をクリックします。
4. ビルド構成名を「ノードモジュールのインストール」として指定し、続行します。

これにより、構成設定が行われます。ここでは、2つの設定を変更する必要があります:-
- ビルドステップとトリガー。
デフォルトのVCS設定では、bitbucketからマスターブランチを取得します。ブランチを変更する場合は、[バージョン管理設定]に移動して[編集]をクリックします。

ここで、ブランチ名をマスターから「あなたのブランチ名」に変更できます。
5. ビルドステップをクリックして、ビルドステップを追加します。
6. Select Command Line into Runnランナータイプにコマンドラインを選択します。

7. 保存して、[トリガー]をクリックします。
トリガーでは、このステップをいつ実行するかを設定する必要があります。
「VCSトリガー」がすでに追加されていることを確認できる場合は、「編集」をクリックするか、ドロップダウンから「VCSトリガー」を追加します。

[チェックインごとのトリガー]の下のチェックボックスをオンにします。
保存すると、最初のビルド構成が完了します。
次に、Copy SitecoreLibrariesビルド構成を追加してSitecoreライブラリをコピーしましょう
- プロジェクト設定に戻り、Copy SitecoreLibrariesという名前の新しいビルド構成を追加します。
- ビルドステップをクリックして、ビルドステップを追加します。
- Gulp into RunnerTypeを選択します。

4. 以下のようにすべてのフィールドに入力します。 Gulp.integration.jsファイルはgulpファイルに生息地が付属しています。

5. 保存して、[トリガー]をクリックします。
6. 新しいトリガーを追加し、[ビルドトリガーの終了]を選択します。

7. ビルド構成で[ノードモジュールのインストール]を選択します。インストールノードモジュールが完了すると、コピーサイトコアライブラリを実行できるようになります。
次に、NugetRestoreビルド構成を追加しましょう:-:-
1. プロジェクト設定に戻り、NugetRestoreという名前の新しいビルド構成を追加します。
2. ビルドステップをクリックして、ビルドステップを追加します。
3. Gulp into RunnerTypeを選択します。
4. leはgulpファイルに生息地が付属しています。

5. 保存して、[トリガー]をクリックします。
6. 新しいトリガーを追加し、[ビルドトリガーの終了]を選択します。

7. ビルド構成で[Sitecoreライブラリのコピー]を選択します。
次に、ビルドプロジェクトのビルド構成を追加しましょう:-
1. プロジェクト設定に戻り、BuildProjectという名前の新しいビルド構成を追加します。
2. ビルドステップをクリックして、ビルドステップを追加します。
3. ランナータイプでVisualStudio(sln)を選択します。

4. Visual Studio2015をVisualStudioに選択すると、ターゲットが再構築されます。

5. ソリューションファイルパスにslnファイルを選択します。
6. Cつのビルド機能を作成します。-VCSラベリングとレポート変更ステータスをGitHubに。

6. 保存して、[トリガー]をクリックします。
7. 新しいトリガーを追加し、[ビルドトリガーの終了]を選択します。
8. ビルド構成で[Nuget復元]を選択します。
9. エージェントの要件をクリックし、見つかった場合 Unmet requirements: MSBuildTools14.0 次にインストールします Microsoft Build Tools 2015.

After all the above steps, TeamCity will be able to build the solution successfully.
So lets end this blog here. Next blog will contain last 3 build configurations which are:-
- Publish All Project
- Apply XML Transform
- Unicorn Sync
Leave a Reply