com.tencent.devops.common.pipeline.pojo.transfer.RunAtomParam.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-pipeline Show documentation
Show all versions of common-pipeline Show documentation
Tencent blueking ci project
The newest version!
package com.tencent.devops.common.pipeline.pojo.transfer
data class RunAtomParam(
val shell: String? = null,
val script: String? = null,
val charsetType: CharsetType? = null
) {
enum class CharsetType {
/*默认类型*/
DEFAULT,
/*UTF_8*/
UTF_8,
/*GBK*/
GBK;
companion object {
fun parse(charset: String?): CharsetType {
values().forEach {
if (it.name == charset) return it
}
return DEFAULT
}
}
}
enum class ShellType(val shellName: String) {
/*bash*/
BASH("bash"),
/*cmd*/
CMD("cmd"),
/*powershell*/
POWERSHELL_CORE("pwsh"),
/*powershell*/
POWERSHELL_DESKTOP("powershell"),
/*python*/
PYTHON("python"),
/*sh命令*/
SH("sh"),
/*windows 执行 bash*/
WIN_BASH("win_bash"),
/*按系统默认*/
AUTO("auto");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy