Skip to content

Commit 2d31e25

Browse files
enhancements + improvements
1 parent 7643073 commit 2d31e25

File tree

3 files changed

+200
-96
lines changed

3 files changed

+200
-96
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ steps:
3232
# ref:
3333
# - refs/heads/main
3434
# - refs/tags/**
35-
- name: publish-v1.2.0
35+
- name: publish-v2.0.0
3636
image: plugins/docker:20
3737
settings:
3838
auto_tag: true
39-
auto_tag_suffix: v1.2.0
39+
auto_tag_suffix: v2.0.0
4040
daemon_off: false
4141
dockerfile: Dockerfile
4242
password:

main.go

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ func main() {
119119
Value: "artifact.json",
120120
EnvVar: "PLUGIN_ARTIFACT_FILE",
121121
},
122+
cli.StringFlag{
123+
Name: "output-file",
124+
Usage: "Output file location that will be generated by the plugin. This file will include information of the output that are exported by the plugin.",
125+
EnvVar: "DRONE_OUTPUT",
126+
},
122127
cli.StringFlag{
123128
Name: "javascript_icov_reportPath",
124129
Usage: "Sonar Javascript Icov Report Path parameter",
@@ -283,7 +288,10 @@ func run(c *cli.Context) {
283288
TypescriptLcovReportPaths: c.String("typescript_lcov_reportPaths"),
284289
Verbose: c.String("verbose"),
285290
CustomJvmParams: c.String("custom_jvm_params"),
286-
TaskId: c.String("taskid"),
291+
TaskId: c.String("taskid"),
292+
},
293+
Output: Output{
294+
OutputFile: c.String("output-file"),
287295
},
288296
}
289297
os.Setenv("TOKEN", base64.StdEncoding.EncodeToString([]byte(c.String("token")+":")))

0 commit comments

Comments
 (0)