0
我无法资助当hubot回复请求时存储松散用户标识的位置。我希望hubot能够将这个值与作业命令一起传递给jenkins。通过params对象将其粘贴到请求上hubot jenkins.coffee哪里是松弛用户标识存储
robot.respond /j(?:enkins)? build ([\w\.\-_ ]+)(, (.+))?/i, (msg) ->
jenkinsBuild(msg, false)
它是否在msg对象中?
jenkinsBuild = (msg, buildWithEmptyParameters) ->
url = process.env.HUBOT_JENKINS_URL
job = querystring.escape msg.match[1]
params = msg.match[3]
command = if buildWithEmptyParameters then "buildWithParameters" else "build"
path = if params then "#{url}/job/#{job}/buildWithParameters?#{params}" else "#{url}/job/#{job}/#{command}"
req = msg.http(path)