jenkins主动选择无法访问我的网站

时间:2018-09-03 12:03:49

标签: jenkins jenkins-plugins

jenkins Active Choice无法访问我的网站?我在Scriptler上调试代码是可以的,但是在Active Choice上是不能的,并且我知道device_type = ['curl', 'http://localhost:8000/submitinfos/infos/getdevicets/?hostname=master'].execute().text.readLines() 不好,因为我在{{1}之前添加了'return ['123','321']' }主动选择就可以了。 '

device_type = ['curl', 'http://localhost:8000/submitinfos/infos/getdevicets/?hostname=master'].execute().text.readLines()

def slurper = new groovy.json.JsonSlurper() def device_types = slurper.parseText(device_type)

返回device_types ['device_type']

0 个答案:

没有答案