teamcity

package module
v0.0.0-...-0e6d151 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 0 Imported by: 0

README

TeamCity API bindings

This is a simple wrapper around the TeamCity API.

GoDoc

Sample usage:

package main

import "github.com/Cardfree/teamcity-go-sdk/teamcity"

func main() {
	client := teamcity.New("myinstance.example.com", "username", "password")

	b, err := client.QueueBuild("Project_build_task", "master", nil)
	if err != nil {
		fmt.Printf("You're outta luck: %s\n", err)
		return
	}

	fmt.Printf("Build: %#v\n", b)
}

Teamcity Rest API Docs

Starting the Docker Container for Testing

  1. Change into the test10 or test9 depending on which version you are testing
docker-compose up teamcity10

Upgrading Teamcity

Test Data

When Upgrading from one version of Teamcity to Another the Test Data needs to be upgraded as well.

  1. Change into the test10 or test9 depending on which version you are upgrading
  2. Update the docker-compose.yml and Dockerfile's to the new version of teamcity
  3. run docker-compose pull
  4. run docker-compose rm
  5. cd ..
  6. run docker-compose up teamcity10
  7. run docker ps find container ID
docker exec -it ${CONTAINER_ID} bash
cp -r /data/teamcity_server/datadir/config /test-data
cp -r /data/teamcity_server/datadir/system /test-data

Debugging Rest Calls on Teamcity

docker exec -it ${CONTAINER_ID} bash
tail -f /opt/teamcity/logs/teamcity-rest.log

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL