UppercuT - TeamCity Integration - Part 4 (Code Drop / Artifacts of the Build)

In Part 1 we create a project. In Part 2 we set up the Build Configuration. In Part 3 we ran the build. Now we are just going to note how we get to our code.

 

Code Drop / Artifacts

TeamCity stores all artifacts in a database. So for every build, the drop location is not a physical disk location, it’s actually in a database.

  clip_image002_thumb[2]

This is why we called zip.bat instead of build.bat. We have to download the items from TeamCity and want to just download the one file. If we download that file and unzip it, we can see that the DLLs were versioned correctly.

  clip_image004_thumb

 

 UppercuT - TeamCity Integration Series

  1. Part 0 - Prerequisites
  2. Part 1 - Set up TeamCity Project
  3. Part 2 - Build Configuration
  4. Part 3 - Run the Build
  5. Part 4 - Code Drop / Artifacts

With this knowledge you shall build.

kick it on DotNetKicks.com
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

UppercuT - TeamCity Integration - Part 3 (Run the Build)

In Part 1 we create a project. In Part 2 we set up the Build Configuration. This time we will Run the build.

 

Run the Build Project

1. Click on Projects.

  clip_image002_thumb[1]

2. You can see that the new project has not run before due to the question mark.

  clip_image004_thumb[1]

  clip_image006_thumb

3. Let’s kick it off. Click {Run |…}.

  clip_image008_thumb

4. The page refreshes automatically to show that we are running.

  clip_image010_thumb[1]

5. NOTE: The first build may fail due to folder cleaning that is happening at the same time. You will see a note in the build log that it is deleting items at the same time it is trying to build. If this happens, just click on {Run |…} again.

  clip_image012_thumb[1]

6. We can follow along with what’s happening by clicking on the down arrow next to the status and clicking on [Full log].

  clip_image014_thumb[1]

7. We have a successful build.

  clip_image016_thumb[1]

 

Next time we will talk about the code drop / artifacts.

 UppercuT - TeamCity Integration Series

  1. Part 0 - Prerequisites
  2. Part 1 - Set up TeamCity Project
  3. Part 2 - Build Configuration
  4. Part 3 - Run the Build
  5. Part 4 - Code Drop / Artifacts

With this knowledge, you shall build.

kick it on DotNetKicks.com
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

UppercuT - TeamCity Integration - Part 2 (Create a Build Configuration)

 

Last time we created a project. This time we will set up the build configuration with it.

 

Create a Build Configuration

1. Click {add a build configuration} for this project.

  clip_image002_thumb[1]

2. In the [Name:] field, we need to add something descriptive. We are building the trunk on every change. Let’s call it Bombali Trunk CI.

  clip_image004_thumb[1]

3. In [Artifact paths:] enter code_drop/*.zip.

  clip_image006_thumb[1]

4. In the Fail build if: section, ensure that these settings are checked:

    a. build process exit code is not zero

    b. at least one test failed

    c. an out of memory or crash is detected

  clip_image008_thumb[1]

5. In the Build options: section, ensure that these settings are checked:

    a. Enable hanging builds detection

  clip_image010_thumb[1]

6. Click {VCS settings >>}.

  clip_image012_thumb[1]

7. Click on {Create and attach new VCS root}.

  clip_image014_thumb[1]

8. Enter a name in [VCS root name:]. We are going to use our project and where the source is from, so we put in Bombali SVN. Choose what is most appropriate for you.

  clip_image016_thumb[1]

9. Select the appropriate source control. We select Subversion as our source control. NOTE: Each source control option has different options. We are only going to talk about SVN.

  clip_image018_thumb[1]

10. We enter the [URL:] to our project.

  clip_image020_thumb[1]

11. The next option is [Externals support:]. If you use externals at all, you would want to enable full support. And you would know if you are using externals. Otherwise, leave default to ignore externals.

  clip_image022_thumb[1]

12. I like to clear out [Labeling rules], but that is a matter of preference. With UppercuT we can get back to any specific build and revision based on our DLLs. Choose what is most appropriate for you.

  clip_image024_thumb[1]

13. I leave the [Checking interval:] at the default of [use global server setting (60 seconds)]. Choose what is most appropriate for you.

  clip_image026_thumb[1]

14. Click {Test connection}. If it is successful, we can move on. If not, make the edits you need.

  clip_image028_thumb[1]

15. Click {close}.

  clip_image030_thumb[1]

16. Click {Save} to continue.

  clip_image032_thumb[1]

17. In the Checkout Settings section:

    a. [VCS checkout mode:] is Automatically on server.

    b. [Checkout directory:] is an appropriate directory for you. We are going to use C:\CodeBuild\Bombali.

    c. We leave [Clean all files before build:] unchecked. Choose what is most appropriate for you.

  clip_image034_thumb[1]

18. In the VCS Labeling section:

    a. We select [Do not label]. Choose what is most appropriate for you.

  clip_image036_thumb[1]

19. Click on {Choose Build Runner >>}.

  clip_image038_thumb[1]

20. Set [Build runner:] to Command Line.

21. Set [Command executable:] to zip.bat.

  clip_image040_thumb[1]

22. We are leaving the XML Report Processing section set to its default for now. Choose appropriately if you would like to use this section.

23. Click {Save}.

  clip_image042_thumb

24. You should get a message that the build configuration has been created successfully.

  clip_image044_thumb[1]

25. Click on [Build triggering].

  clip_image046_thumb

26. Check [Enable triggering when files are checked into VCS].

  clip_image048_thumb[1]

27. Click {Save}.

  clip_image050_thumb

28. Set any other options you need to set.

 

Next time we are going to run the build.

 UppercuT - TeamCity Integration Series

  1. Part 0 - Prerequisites
  2. Part 1 - Set up TeamCity Project
  3. Part 2 - Build Configuration
  4. Part 3 - Run the Build
  5. Part 4 - Code Drop / Artifacts

With this knowledge you shall build.

kick it on DotNetKicks.com
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

UppercuT - TeamCity Integration - Part 1 (Create a TeamCity Project)

 

Integrating UppercuT with TeamCity is actually very easy. We will go through the steps to set up and run a build. Let's start with Creating a project.

Create A Project

1. Log into TeamCity.

2. Go to Administration.

  clip_image002_thumb

3. Click on create project.

  clip_image004_thumb

4. Type a name for your project. Try to use an identifying name. In our example, we are using Bombali. We also add a nice description about the project. Choose what is most appropriate for you.

  clip_image006_thumb[1]

5. Click {Create}.

 

Next we will create a Build Configuration.

UppercuT - TeamCity Integration Series

  1. Part 0 - Prerequisites
  2. Part 1 - Set up TeamCity Project
  3. Part 2 - Build Configuration
  4. Part 3 - Run the Build
  5. Part 4 - Code Drop / Artifacts

With this knowledge, you shall build.

 

kick it on DotNetKicks.com
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati