Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a28acd5

Browse files
rayeneyesnault
authored andcommitted
feat: expose git.server as a template variable (#3076)
1 parent 4df4aae commit a28acd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/api/workflow/process_parameters.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ func GetNodeBuildParameters(ctx context.Context, db gorp.SqlExecutor, store cach
126126
if n.Context.Application.RepositoryStrategy.User != "" {
127127
vars["git.http.user"] = n.Context.Application.RepositoryStrategy.User
128128
}
129+
if n.Context.Application.VCSServer != "" {
130+
vars["git.server"] = n.Context.Application.VCSServer
131+
}
129132
} else {
130133
// remove vcs strategy variable
131134
delete(vars, "git.ssh.key")

0 commit comments

Comments
 (0)