Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

teamcity (1) Versions 0.1.0

Provides integration with teamcity for getting bits from teamcity

Policyfile
Berkshelf
Knife
cookbook 'teamcity', '~> 0.1.0', :supermarket
cookbook 'teamcity', '~> 0.1.0'
knife supermarket install teamcity
knife supermarket download teamcity
README
Dependencies
Quality 17%

Description

Provides a collection of tools for downloading build artifacts from a teamcity server

Requirement

Platform

  • Any supported by chef

Library Methods

Teamcity::Utility

A collection of utilities for dealing with teamcity

Methods

  • get_latest_build(build_type): Gets the latest successful build for the specified build type.

Examples

tc = Teamcity::Utility.new(:server=>node.teamcity.server, :port => 80, :username => node.teamcity.username, :password => node.teamcity.password)
build_version = tc.get_latest_build('bt3')

#Download a whole build
teamcity_build "Download Build" do
  build_type "bt4"
  version build_version
  destination "C:\\Temp\\#{build_version}\\Build.zip"
  overwrite true
  action :download
end

Resources/Providers

teamcity_build

Download all artifacts from a teamcity build

Actions

  • :download: Downloads teamcity artifacts

Attribute Parameters

  • Indicates a default value is set

  • :build_type: The team city identifier for the build. Example 'bt1'

  • :version: The numeric build to download. Example '1.2.3.444'

  • :overwrite: Overwrite the file if it already exists

  • :destination: Where to download the file to.

  • :connection: Connection information for the teamcity server

    • :server=>'ServerName',:port => 80, :username => 'YourUsername', :password => 'Password'

Node Attributes

  • node['teamcity']: Teamcity related data
  • node['teamcity']['server']: The default name of the teamcity server
  • node['teamcity']['port']: The port that teamcity operates on
  • node['teamcity']['username']: The default username to login with
  • node['teamcity']['password']: The default password to login with

Examples

#Download a whole build
teamcity_build "Download Build" do
  build_type "bt4"
  version "1.2.3.4"
  destination "C:\\Temp\\1.2.3.4\\Build.zip"
  overwrite true
  action :download
end

teamcity_files

Download a specific list of files from the artifacts of a teamcity build

Actions

  • :download: Downloads teamcity artifacts

Attribute Parameters

  • :build_type: The team city identifier for the build. Example 'bt1'
  • :version: The numeric build to download. Example '1.2.3.444'
  • :overwrite: Overwrite the file if it already exists
  • :destination: Where to download the file to.
  • :files: An array of relative paths to files that should be downloaded
    • Example: ['deploy/release.zip','deploy/debug.zip']
  • :connection: Connection information for the teamcity server
    • :server=>'ServerName',:port => 80, :username => 'YourUsername', :password => 'Password'

Node Attributes

  • node['teamcity']: Teamcity related data
  • node['teamcity']['server']: The default name of the teamcity server
  • node['teamcity']['port']: The port that teamcity operates on
  • node['teamcity']['username']: The default username to login with
  • node['teamcity']['password']: The default password to login with

Examples

#Download some files from a build
teamcity_files "Download Build" do
  build_type "bt3"
  version "1.2.3.4"
  files ["deploy/Release.zip","deploy/Debug.zip"]
  destination "C:\\Temp\\1.2.3.4"
  overwrite true
  action :download
end

Dependent cookbooks

This cookbook has no specified dependencies.

Contingent cookbooks

foreflight_build_agent Applicable Versions

Collaborator Number Metric
            

0.1.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.1.0 failed this metric

FC016: LWRP does not declare a default action: teamcity/resources/build.rb:1
FC016: LWRP does not declare a default action: teamcity/resources/files.rb:1
FC064: Ensure issues_url is set in metadata: teamcity/metadata.rb:1
FC065: Ensure source_url is set in metadata: teamcity/metadata.rb:1
FC066: Ensure chef_version is set in metadata: teamcity/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: teamcity/metadata.rb:1
FC069: Ensure standardized license defined in metadata: teamcity/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric
            

0.1.0 passed this metric

Testing File Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.1.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number