mirror of
https://github.com/certd/certd.git
synced 2026-04-14 20:40:53 +08:00
refactor: 优化
This commit is contained in:
@@ -33,6 +33,15 @@ export class Executor {
|
||||
}
|
||||
|
||||
async run (options, args) {
|
||||
try {
|
||||
return this.doRun(options, args)
|
||||
} catch (e) {
|
||||
logger.error('任务执行出错:', e)
|
||||
throw e
|
||||
}
|
||||
}
|
||||
|
||||
async doRun (options, args) {
|
||||
if (args != null) {
|
||||
_.merge(options.args, args)
|
||||
}
|
||||
|
||||
@@ -40,6 +40,7 @@ const defaultOptions = {
|
||||
deploy: [
|
||||
{
|
||||
name: '流程1-部署到阿里云系列产品',
|
||||
disabled: true,
|
||||
tasks: [
|
||||
{
|
||||
name: '上传证书到云',
|
||||
@@ -79,6 +80,7 @@ const defaultOptions = {
|
||||
},
|
||||
{
|
||||
deployName: '流程3-触发jenkins任务',
|
||||
disabled: true,
|
||||
tasks: [
|
||||
{
|
||||
name: '触发jenkins任务',
|
||||
|
||||
Reference in New Issue
Block a user