这是我的管道的结构:
def call(String microservice_param) {
pipeline {
environment {
MICROSERVICE_NAME = "${microservice_param}".split("-")[1]
}
}
我想如上所示操作字符串参数,但出现此错误:
Environment variable values can only be joined together with ‘+’s.
有没有办法做到这一点?