Skip to content
Open
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
| v1.1.7 | 新增kubernetes构建资源相关api |
| v1.1.8 | 增加fileGateway |
| v1.1.9 | 插件支持国际化,增加MessageUtil、I18nUtil工具类,AtomResult类增加setErrorInfo方法 |
| v1.2.0 | DataField类新增isSensitive属性,插件输出将支持屏蔽指定敏感字段 |

[TOC]

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.tencent.devops.ci-plugins</groupId>
<artifactId>java-plugin-sdk</artifactId>
<version>1.1.9</version>
<version>1.2.0</version>

<inceptionYear>2018-2118</inceptionYear>
<description>bk-ci pipeline plugins sdk for java</description>
Expand Down
19 changes: 17 additions & 2 deletions src/main/java/com/tencent/bk/devops/atom/pojo/DataField.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package com.tencent.bk.devops.atom.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tencent.bk.devops.atom.common.DataType;
import lombok.Getter;
import lombok.Setter;

/**
* 插件字段抽象类
* @version 1.0
*/
@Setter
@Getter
@SuppressWarnings("all")
public abstract class DataField {

Expand All @@ -21,4 +21,19 @@ public DataField(DataType type) {
* 类型
*/
private DataType type;

/**
* 是否属于敏感字段
*/
@JsonProperty("isSensitive")
private boolean isSensitive = false;

public DataType getType() {
return type;
}

@JsonIgnore
public boolean isSensitive() {
return isSensitive;
}
}
2 changes: 1 addition & 1 deletion src/main/kotlin/com/tencent/bk/devops/plugin/common/OS.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ enum class OS {
MACOS,
WINDOWS,
LINUX
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ object ScriptUtils {
}
}

}
}