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:
|
The below pipeline configuration demonstrates simple usage:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
code-analysis:
|
steps
|
||||||
image: aosapps/drone-sonar-plugin
|
- name: code-analysis
|
||||||
settings:
|
image: aosapps/drone-sonar-plugin
|
||||||
sonar_host:
|
settings:
|
||||||
from_secret: sonar_host
|
sonar_host:
|
||||||
sonar_token:
|
from_secret: sonar_host
|
||||||
from_secret: sonar_token
|
sonar_token:
|
||||||
|
from_secret: sonar_token
|
||||||
```
|
```
|
||||||
|
|
||||||
Customized parameters could be specified:
|
Customized parameters could be specified:
|
||||||
|
|
||||||
```diff
|
```diff
|
||||||
code-analysis:
|
steps
|
||||||
|
- name: code-analysis
|
||||||
image: aosapps/drone-sonar-plugin
|
image: aosapps/drone-sonar-plugin
|
||||||
settings:
|
settings:
|
||||||
sonar_host:
|
sonar_host:
|
||||||
|
16
README.md
16
README.md
@ -23,12 +23,12 @@ docker run --rm \
|
|||||||
|
|
||||||
### Pipeline example
|
### Pipeline example
|
||||||
```yaml
|
```yaml
|
||||||
code-analysis:
|
steps
|
||||||
image: aosapps/drone-sonar-plugin
|
- name: code-analysis
|
||||||
settings:
|
image: aosapps/drone-sonar-plugin
|
||||||
sonar_host:
|
settings:
|
||||||
from_secret: sonar_host
|
sonar_host:
|
||||||
sonar_token:
|
from_secret: sonar_host
|
||||||
from_secret: sonar_token
|
sonar_token:
|
||||||
|
from_secret: sonar_token
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user