Merge pull request #983 from yangkaa/master-maven

Fix Bug: the problem that the build is stuck after the maven configuration is deleted
This commit is contained in:
黄润豪 2021-05-14 23:06:28 +08:00 committed by GitHub
commit 2093353649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,6 +236,7 @@ func (c *controller) GetLanguageBuildSetting(ctx context.Context, lang code.Lang
config, err := c.KubeClient.CoreV1().ConfigMaps(c.namespace).Get(ctx, name, metav1.GetOptions{})
if err != nil {
logrus.Errorf("get configmap %s failure %s", name, err.Error())
return ""
}
if config != nil {
return name