Skip to content

Commit

Permalink
Merge pull request #1308 from Polber:jkinard/private-connectivity
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 603433059
  • Loading branch information
cloud-teleport committed Feb 1, 2024
2 parents 76f6580 + 7f5d564 commit 5493788
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cicd/internal/flags/it-flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func HostIp() string {
}

func PrivateConnectivity() string {
if dPrivateConnectivity == "" {
if dPrivateConnectivity != "" {
return "-DprivateConnectivity=" + dPrivateConnectivity
}
return ""
Expand Down
9 changes: 8 additions & 1 deletion cicd/internal/workflows/maven-workflows.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ func RunForChangedModules(cmd string, args ...string) error {
return nil
}

parsedArgs := []string{}
for _, arg := range args {
if arg != "" {
parsedArgs = append(parsedArgs, arg)
}
}

// Collect the modules together for a single call. Maven can work out the install order.
modules := make([]string, 0)

Expand Down Expand Up @@ -265,7 +272,7 @@ func RunForChangedModules(cmd string, args ...string) error {

modules = append(modules, "plugins/templates-maven-plugin")

return op.RunMavenOnModule(unifiedPom, cmd, strings.Join(modules, ","), args...)
return op.RunMavenOnModule(unifiedPom, cmd, strings.Join(modules, ","), parsedArgs...)
}

type spotlessCheckWorkflow struct{}
Expand Down

0 comments on commit 5493788

Please sign in to comment.