Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
update yaml format
Browse files Browse the repository at this point in the history
  • Loading branch information
roganw committed Feb 17, 2019
1 parent 4e7f762 commit d2afbb8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
18 changes: 10 additions & 8 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,21 @@ This plugin can scan your code quality and post the analysis report to your Sona
The below pipeline configuration demonstrates simple usage:

```yaml
code-analysis:
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
steps
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
```
Customized parameters could be specified:
```diff
code-analysis:
steps
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ docker run --rm \

### Pipeline example
```yaml
code-analysis:
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
steps
- name: code-analysis
image: aosapps/drone-sonar-plugin
settings:
sonar_host:
from_secret: sonar_host
sonar_token:
from_secret: sonar_token
```

0 comments on commit d2afbb8

Please sign in to comment.