update yaml format
This commit is contained in:
parent
4e7f76260b
commit
d2afbb890a
18
DOCS.md
18
DOCS.md
@ -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:
|
||||
|
16
README.md
16
README.md
@ -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
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user