Skip to content

Commit

Permalink
🦄 refine: chekcout step/ migrate desc
Browse files Browse the repository at this point in the history
  • Loading branch information
colynn committed Jul 3, 2023
1 parent bd71a4a commit 5c45f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/migrations/migration20230703.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (m Migration20230703) Upgrade(ormer orm.Ormer) error {
}

func updateCompileEnvs(ormer orm.Ormer) error {
_, err := ormer.Raw("UPDATE `sys_compile_env` SET `image`='jenkins/inbound-agent:latest' WHERE `name`='jnlp';").Exec()
_, err := ormer.Raw("UPDATE `sys_compile_env` SET `image`='jenkins/inbound-agent:latest',`description`='默认jenkins jnlp agent' WHERE `name`='jnlp';").Exec()
if err != nil {
return err
}
Expand Down
3 changes: 2 additions & 1 deletion web/src/views/setting/components/CompileEnvCreate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,15 @@ export default {
args: item.args || '',
description: item.description || '',
};
if (this.form.name == 'jnlp' || this.form.name == 'kaniko') {
if (this.form.name == 'jnlp' || this.form.name == 'checkout' || this.form.name == 'kaniko') {
this.systemReserved = true
} else {
this.systemReserved = false
}
this.rowId = item.id;
} else {
this.title = '新增';
this.systemReserved = false;
this.form = {
name: '',
image: '',
Expand Down

0 comments on commit 5c45f02

Please sign in to comment.