diff --git a/website/source/assets/images/guides/teamcity_build_configuration.png b/website/source/assets/images/guides/teamcity_build_configuration.png new file mode 100644 index 000000000..bcdcbb54a Binary files /dev/null and b/website/source/assets/images/guides/teamcity_build_configuration.png differ diff --git a/website/source/assets/images/guides/teamcity_create_project_from_url-1.png b/website/source/assets/images/guides/teamcity_create_project_from_url-1.png new file mode 100644 index 000000000..dc1ab3081 Binary files /dev/null and b/website/source/assets/images/guides/teamcity_create_project_from_url-1.png differ diff --git a/website/source/assets/images/guides/teamcity_create_project_from_url-2.png b/website/source/assets/images/guides/teamcity_create_project_from_url-2.png new file mode 100644 index 000000000..5b98b16b8 Binary files /dev/null and b/website/source/assets/images/guides/teamcity_create_project_from_url-2.png differ diff --git a/website/source/assets/images/guides/teamcity_new_build.png b/website/source/assets/images/guides/teamcity_new_build.png deleted file mode 100644 index 798d00ced..000000000 Binary files a/website/source/assets/images/guides/teamcity_new_build.png and /dev/null differ diff --git a/website/source/guides/packer-on-cicd/build-virtualbox-image.html.md b/website/source/guides/packer-on-cicd/build-virtualbox-image.html.md index 44292058d..1d6fc5bb6 100644 --- a/website/source/guides/packer-on-cicd/build-virtualbox-image.html.md +++ b/website/source/guides/packer-on-cicd/build-virtualbox-image.html.md @@ -16,8 +16,8 @@ instances. This is also true for the [VMWare](/docs/builders/vmware.html) and the [QEMU](/docs/builders/qemu.html) Packer builders. We will use Chef's [Bento boxes](https://github.com/chef/bento) to provision an -Ubuntu image on VirtualBox. We will use a fork of this repository as the -project we will build. +Ubuntu image on VirtualBox. For this example, we will use the repository +directly, but you may also fork it for the same results. ## 1. Provision a Bare-metal Machine @@ -103,19 +103,25 @@ assign the new Agent to it. ## 5. Create a New Build in TeamCity -In TeamCity Server, create a new build, and configure the Version Control -Settings to download the Packer build configuration from the VCS repository. +In TeamCity Server, create a new build. To use the upstream Bento repository, +we'll choose *From a repository URL*, and enter +`https://github.com/chef/bento.git` as the **Repository URL**. -Add one **Build Step: Command Line** to the build. +![TeamCity screenshot: New Build](/assets/images/guides/teamcity_create_project_from_url-1.png) -![TeamCity screenshot: New Build](/assets/images/guides/teamcity_new_build.png) +Click **Proceed**. -In the **Script content** field add the following: +![TeamCity screenshot: New Build](/assets/images/guides/teamcity_create_project_from_url-2.png) + +And **Proceed** again. + +We won't use the *Auto-detected Build Steps*. Instead, click *configure build +steps manually*. For the *runner type*, pick **Command Line**, and enter the +following values. Make sure to click *Show advanced options*, as we need to set +the working directory. + +![TeamCity screenshot: Build Step](/assets/images/guides/teamcity_build_configuration.png) -```shell -#!/usr/bin/env bash -/root/packer build -only=virtualbox-iso -var "headless=true" ubuntu/ubuntu-16.04-amd64.json -``` This will use the `build` command in Packer to build the image defined in `ubuntu/ubuntu-16.04-amd64.json`. It assumes that the VCS repository you're