Skip to content

Commit

Permalink
change mobile template git push addr (#2808) (#2810)
Browse files Browse the repository at this point in the history
* update projectID to projectId (#2534)

* change mobile template push code addr

Co-authored-by: littlejian <17816869670@163.com>

Co-authored-by: kakj <18579115540@163.com>
Co-authored-by: littlejian <17816869670@163.com>
  • Loading branch information
3 people authored Nov 3, 2021
1 parent ce17198 commit cc6cb96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/core-services/services/application/appliation.go
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,8 @@ func (a *Application) Init(initReq *apistructs.ApplicationInitRequest) (uint64,
if err != nil {
return 0, err
}
domain := strutil.Concat(strutil.ToLower(org.Name), "-org.", conf.RootDomain())
u, _ := url.Parse(conf.UIPublicURL())
remoteUrl := fmt.Sprintf("%s://git:%s@%s/wb/%s/%s", u.Scheme, token, domain, app.ProjectName, app.Name)
remoteUrl := fmt.Sprintf("%s://git:%s@%s/%s/dop/%s/%s", u.Scheme, token, conf.UIDomain(), org.Name, app.ProjectName, app.Name)

// generate git push action
gitPushStage := &apistructs.PipelineYmlAction{
Expand Down

0 comments on commit cc6cb96

Please sign in to comment.