Skip to content

Commit

Permalink
Update README, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigory Chernyshev committed Mar 10, 2016
1 parent 546a89c commit df9a7ed
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ For testing purposes, there is `webserver` directory, with sample files. Here is
{
"key": "Second item",
"value": "200",
"enabled": true
"enabled": true,
"image": "http://lipis.github.io/flag-icon-css/flags/4x3/de.svg"
},
{
"key": "Third item",
Expand All @@ -43,13 +44,23 @@ For testing purposes, there is `webserver` directory, with sample files. Here is
{
"key": "Fifth item",
"value": "500",
"enabled": true
"enabled": true,
"default": true
}

]
}
```
As you can see, format is simple and straightforward. Each element in `options`'s array is hash; `key` will be option's display name, `value` will be option's value, `enabled` will determine if option will be enabled.
As you can see, format is simple and straightforward. Each element in `options`'s array is hash;
Here is available options of hash:
* `key` -- this option will be used as display name in select box
* `value` -- this option will be used as parameter value during build
* `enable` -- this option determines whether the corresponding option enabled on not. Setting to `false` will prevent
specific option from selection. By default it's `true`.
* `default` -- this option is used for setting default value if none was selected. You can mark multiple options as
default, but the first found will be used.
* `image` -- with help of this option you can add small icon for current element. Both url and embedded images are supported.

To run your web-service, navigate to `webserver` directory and execute a command:
```python -m SimpleHTTPServer 8099```
It will start simple http server on port 8099, which will serve your local directory, where command was executed. This is not a production web service and should be used in testing environment only.
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ apply plugin: 'java'
apply plugin: 'com.github.rodm.teamcity-server'

group = 'ru.mail.teamcity'
version = '1.2.0'
version = '1.3.0'

repositories {
maven {
Expand Down

0 comments on commit df9a7ed

Please sign in to comment.