mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-03 04:18:21 +08:00
新增私钥字段
This commit is contained in:
parent
b3f46759a1
commit
01b2b44b55
@ -37,6 +37,10 @@ public class RepositoryModel extends BaseDbModel {
|
||||
* SSH RSA 公钥
|
||||
*/
|
||||
private String rsaPub;
|
||||
/**
|
||||
* SSH RSA 私钥
|
||||
*/
|
||||
private String rsaPrv;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
@ -94,4 +98,11 @@ public class RepositoryModel extends BaseDbModel {
|
||||
this.rsaPub = rsaPub;
|
||||
}
|
||||
|
||||
public String getRsaPrv() {
|
||||
return rsaPrv;
|
||||
}
|
||||
|
||||
public void setRsaPrv(String rsaPrv) {
|
||||
this.rsaPrv = rsaPrv;
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,7 @@ CREATE TABLE IF NOT EXISTS PUBLIC.REPOSITORY
|
||||
USERNAME VARCHAR(50) comment '登录用户',
|
||||
PASSWORD VARCHAR(50) comment '登录密码',
|
||||
RSAPUB VARCHAR(2048) comment 'SSH RSA 公钥',
|
||||
RSAPRV VARCHAR(2048) comment 'SSH RSA 私钥',
|
||||
CONSTRAINT REPOSITORY_PK PRIMARY KEY (ID)
|
||||
);
|
||||
comment on table REPOSITORY is '仓库信息';
|
||||
@ -79,4 +80,9 @@ ALTER TABLE BUILD_INFO
|
||||
ADD IF NOT EXISTS TRIGGERTOKEN VARCHAR(20) comment '触发器token';
|
||||
|
||||
|
||||
-- @author jzy 增加 RSAPRV
|
||||
ALTER TABLE BUILD_INFO
|
||||
ADD IF NOT EXISTS RSAPRV VARCHAR(2048) comment 'SSH RSA 私钥';
|
||||
|
||||
|
||||
|
||||
|
@ -47,7 +47,6 @@ public class TestSshGit {
|
||||
JSch jSch = super.createDefaultJSch(fs);
|
||||
//添加私钥文件
|
||||
jSch.addIdentity("ss");
|
||||
|
||||
return jSch;
|
||||
}
|
||||
});
|
||||
|
@ -84,8 +84,11 @@
|
||||
<a-icon slot="prefix" type="lock" />
|
||||
</a-input-password>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="公钥" prop="rsaPub">
|
||||
<a-textarea :auto-size="{ minRows: 3, maxRows: 3 }" v-model="temp.rsaPub" placeholder="公钥,不填将使用默认的 .ssh 目录中的配置。支持配置文件目录:file:"> </a-textarea>
|
||||
<a-form-model-item label="私钥" prop="rsaPrv">
|
||||
<a-textarea :auto-size="{ minRows: 3, maxRows: 3 }" v-model="temp.rsaPub" placeholder="私钥,不填将使用默认的 $HOME/.ssh 目录中的配置。支持配置文件目录:file:"> </a-textarea>
|
||||
</a-form-model-item>
|
||||
<a-form-model-item label="公钥" prop="rsaPub" v-if="false">
|
||||
<a-textarea :auto-size="{ minRows: 3, maxRows: 3 }" v-model="temp.rsaPub" placeholder="公钥,不填将使用默认的 $HOME/.ssh 目录中的配置。支持配置文件目录:file:"> </a-textarea>
|
||||
</a-form-model-item>
|
||||
</template>
|
||||
</a-form-model>
|
||||
|
Loading…
Reference in New Issue
Block a user