File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,16 @@ func main() {
3737 Usage : "SonarQube token" ,
3838 EnvVar : "PLUGIN_SONAR_TOKEN" ,
3939 },
40+ cli.StringFlag {
41+ Name : "organization" ,
42+ Usage : "SonarQube Organization" ,
43+ EnvVar : "PLUGIN_SONAR_ORGANIZATION" ,
44+ },
45+ cli.StringFlag {
46+ Name : "scmDisabled" ,
47+ Usage : "SonarQube SCM Disabled" ,
48+ EnvVar : "PLUGIN_SCM_DISABLED" ,
49+ },
4050 cli.StringFlag {
4151 Name : "ver" ,
4252 Usage : "Project version" ,
@@ -298,6 +308,8 @@ func run(c *cli.Context) {
298308 Name : c .String ("name" ),
299309 Host : c .String ("host" ),
300310 Token : c .String ("token" ),
311+ Organization : c .String ("organization" ),
312+ SCMDisabled : c .Bool ("scmDisabled" ),
301313 Version : c .String ("ver" ),
302314 Branch : c .String ("branch" ),
303315 Timeout : c .String ("timeout" ),
Original file line number Diff line number Diff line change 5151 Name string
5252 Host string
5353 Token string
54+ Organization string
55+ SCMDisabled bool
5456 Version string
5557 Branch string
5658 Sources string
@@ -456,6 +458,8 @@ func (p Plugin) Exec() error {
456458 configurations := map [string ]string {
457459 "-Dsonar.projectKey" : p .Config .Key ,
458460 "-Dsonar.projectName" : p .Config .Name ,
461+ "-Dsonar.organization" : p .Config .Organization ,
462+ "-Dsonar.scm.disabled" : strconv .FormatBool (p .Config .SCMDisabled ),
459463 "-Dsonar.projectVersion" : p .Config .Version ,
460464 "-Dsonar.sources" : p .Config .Sources ,
461465 "-Dsonar.ws.timeout" : p .Config .Timeout ,
You can’t perform that action at this time.
0 commit comments