Skip to content

Commit

Permalink
Merge pull request #406 from gazal-k/gazal/group-auto-promotions
Browse files Browse the repository at this point in the history
fix: set GitURL on env to group auto promotions on same repo
  • Loading branch information
jenkins-x-bot committed Sep 13, 2022
2 parents c3adcf7 + 1520675 commit 045983a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/promote/promote.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ func (o *Options) PromoteAll(pred func(*jxcore.EnvironmentConfig) bool) error {
if sourceURL == "" && !env.RemoteCluster && o.DevEnvContext.DevEnv != nil {
// let's default to the git repository of the dev environment as we are sharing the git repository across multiple namespaces
env.GitURL = o.DevEnvContext.DevEnv.Spec.Source.URL
} else {
env.GitURL = sourceURL
}
promoteEnvs = append(promoteEnvs, env)
}
Expand Down

0 comments on commit 045983a

Please sign in to comment.