public class NotificationUtil extends Object
Constructor and Description |
---|
NotificationUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getJenkinsUrl()
获取Jenkins地址
|
static String |
push(String url,
String data,
NotificationConfig buildConfig)
推送信息
|
static String |
replaceEnvs(String origin,
EnvVars envVars)
将给定的原始字符串中的环境变量替换为环境变量结果
|
static String |
replaceEnvValue(String key,
EnvVars envVars)
替换环境变量
|
static String |
replaceMultipleEnvValue(String val,
EnvVars envVars)
替换多值环境变量
|
public static String push(String url, String data, NotificationConfig buildConfig) throws com.arronlong.httpclientutil.exception.HttpProcessException, KeyManagementException, NoSuchAlgorithmException
url
- data
- com.arronlong.httpclientutil.exception.HttpProcessException
KeyManagementException
NoSuchAlgorithmException
public static String getJenkinsUrl()
public static String replaceMultipleEnvValue(String val, EnvVars envVars)
val
- envVars
- public static String replaceEnvs(String origin, EnvVars envVars)
Copyright © 2016–2023. All rights reserved.