大声道撒旦

This commit is contained in:
dengqichen 2025-01-03 18:16:12 +08:00
parent dcf7170e28
commit 7618bb3ef6
2 changed files with 33 additions and 0 deletions

View File

@ -1,5 +1,6 @@
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.SchemaPropertyDataSource;
import com.qqchen.deploy.backend.workflow.annotation.SchemaPropertyDataSourceParam;
@ -64,4 +65,33 @@ public class JenkinsBaseBuildVariables {
)
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;
}

View File

@ -1,11 +1,13 @@
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 lombok.Data;
import lombok.EqualsAndHashCode;
@EqualsAndHashCode(callSuper = true)
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
@ -34,4 +36,5 @@ public class DeployNodeLocalVariables extends BaseNodeLocalVariables {
)
private Long jobId;
}