Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/msabramo/ansible-teamcity-modules
Ansible modules for managing TeamCity projects & build configs
https://github.com/msabramo/ansible-teamcity-modules
Last synced: 28 days ago
JSON representation
Ansible modules for managing TeamCity projects & build configs
- Host: GitHub
- URL: https://github.com/msabramo/ansible-teamcity-modules
- Owner: msabramo
- Created: 2015-10-03T14:27:27.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-08T14:46:51.000Z (about 9 years ago)
- Last Synced: 2024-05-09T20:47:10.474Z (8 months ago)
- Language: Python
- Size: 172 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
TeamCity modules for Ansible
============================.. image:: https://travis-ci.org/msabramo/ansible-teamcity-modules.svg?branch=master
:target: https://travis-ci.org/msabramo/ansible-teamcity-modulesThis implements some `Ansible `_ modules for managing
`TeamCity `_ projects and build configs.Basically you can do stuff like this:
.. code-block:: yaml
---
- hosts: localhost
gather_facts: no
tasks:
- teamcity_project:
name: marca_test_project # ==> MarcaTestProject
- teamcity_project:
name: branches
parent_project_id: MarcaTestProject # ==> MarcaTestProject_Branches
- teamcity_build_config:
project_id: MarcaTestProject_Branches
name: "{{ item }}"
template_id: RunPipelineScript # ==> MarcaTestProject_Branches_Docs, etc.
with_items:
- docs
- flake8
- package
- py27See the ``playbooks`` directory.
Tests
=====To run some simple (but not very thorough) tests, do ``make test``.
To really test this, you need to have a TeamCity server. You will need to set some environment variables for your TeamCity server:
- ``TEAMCITY_URL``
- ``TEAMCITY_USER``
- ``TEAMCITY_PASSWORD``Then you can do:
.. code-block:: bash
$ ansible-playbook playbooks/create_projects.yaml
$ ansible-playbook playbooks/delete_projects.yamlTravis CI
=========https://travis-ci.org/msabramo/ansible-teamcity-modules