大声道撒旦
This commit is contained in:
parent
dcf7170e28
commit
7618bb3ef6
@ -1,5 +1,6 @@
|
|||||||
package com.qqchen.deploy.backend.deploy.dto.variables.build;
|
package com.qqchen.deploy.backend.deploy.dto.variables.build;
|
||||||
|
|
||||||
|
import com.qqchen.deploy.backend.workflow.annotation.CodeEditorConfig;
|
||||||
import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
|
import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
|
||||||
import com.qqchen.deploy.backend.workflow.annotation.SchemaPropertyDataSource;
|
import com.qqchen.deploy.backend.workflow.annotation.SchemaPropertyDataSource;
|
||||||
import com.qqchen.deploy.backend.workflow.annotation.SchemaPropertyDataSourceParam;
|
import com.qqchen.deploy.backend.workflow.annotation.SchemaPropertyDataSourceParam;
|
||||||
@ -64,4 +65,33 @@ public class JenkinsBaseBuildVariables {
|
|||||||
)
|
)
|
||||||
private String jobId;
|
private String jobId;
|
||||||
|
|
||||||
|
@SchemaProperty(
|
||||||
|
title = "构建产物路径",
|
||||||
|
description = "构建产物路径",
|
||||||
|
order = 5
|
||||||
|
)
|
||||||
|
private String artifactPath;
|
||||||
|
|
||||||
|
|
||||||
|
@SchemaProperty(
|
||||||
|
title = "Pipeline script",
|
||||||
|
description = "流水线脚本",
|
||||||
|
required = true,
|
||||||
|
format = "monaco-editor", // 使用 Monaco Editor
|
||||||
|
defaultValue = "#!/bin/bash\n\necho \"Hello World\"",
|
||||||
|
codeEditor = @CodeEditorConfig(
|
||||||
|
language = "shell",
|
||||||
|
theme = "vs-dark",
|
||||||
|
minimap = false,
|
||||||
|
lineNumbers = true,
|
||||||
|
wordWrap = true,
|
||||||
|
fontSize = 14,
|
||||||
|
tabSize = 2,
|
||||||
|
autoComplete = true,
|
||||||
|
folding = true
|
||||||
|
),
|
||||||
|
order = 6
|
||||||
|
)
|
||||||
|
private String script;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,11 +1,13 @@
|
|||||||
package com.qqchen.deploy.backend.workflow.dto.definition.node.localVariables;
|
package com.qqchen.deploy.backend.workflow.dto.definition.node.localVariables;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
|
import com.qqchen.deploy.backend.workflow.annotation.SchemaProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.EqualsAndHashCode;
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
@EqualsAndHashCode(callSuper = true)
|
@EqualsAndHashCode(callSuper = true)
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
|
public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
|
||||||
|
|
||||||
|
|
||||||
@ -34,4 +36,5 @@ public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
|
|||||||
)
|
)
|
||||||
private Long jobId;
|
private Long jobId;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user