Skip to content

__init__ can get default params from env vars#10

Open
msabramo wants to merge 1 commit into
yotamoron:masterfrom
msabramo:init_default_env_vars
Open

__init__ can get default params from env vars#10
msabramo wants to merge 1 commit into
yotamoron:masterfrom
msabramo:init_default_env_vars

Conversation

@msabramo

Copy link
Copy Markdown
Contributor
  • TEAMCITY_USER
  • TEAMCITY_PASSWORD
  • TEAMCITY_HOST
  • TEAMCITY_PORT
$ python sample.py
{
    "userGroups": {
        "href": "/httpAuth/app/rest/userGroups"
    },
    "vcsRoots": {
        "href": "/httpAuth/app/rest/vcs-roots"
    },
    "version": "9.0.2 (build 32195)",
    "internalId": "7a775607-5420-4a17-86a1-543d755d7210",
    "currentTime": "20150224T141500-0800",
    "agentPools": {
        "href": "/httpAuth/app/rest/agentPools"
    },
    "versionMajor": 9,
    "buildNumber": "32195",
    "versionMinor": 0,
    "agents": {
        "href": "/httpAuth/app/rest/agents"
    },
    "startTime": "20150223T105439-0800",
    "builds": {
        "href": "/httpAuth/app/rest/builds"
    },
    "users": {
        "href": "/httpAuth/app/rest/users"
    },
    "buildQueue": {
        "href": "/httpAuth/app/rest/buildQueue"
    },
    "projects": {
        "href": "/httpAuth/app/rest/projects"
    },
    "buildDate": "20150130T000000-0800"
}

@msabramo msabramo force-pushed the init_default_env_vars branch 2 times, most recently from 4be89c6 to 6611d50 Compare February 25, 2015 16:11
- `TEAMCITY_USER`
- `TEAMCITY_PASSWORD`
- `TEAMCITY_HOST`
- `TEAMCITY_PORT`
@msabramo msabramo force-pushed the init_default_env_vars branch from 6611d50 to c07b91a Compare February 25, 2015 16:12
@msabramo

Copy link
Copy Markdown
Contributor Author

Just updated README.md to document this enhancement:

https://github.com/msabramo/teamcity-python-rest-client/blob/init_default_env_vars/README.md

@msabramo

Copy link
Copy Markdown
Contributor Author

This is very handy to keep private passwords from accidentally getting committed with code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant