Ideame/grunt-jenkins-build-number — pull request #1 by jberube (2013-12-05 02:33:59+00:00)
Title: Allows url to Hudson to have a path.

Hi.

This is the first pull request I've ever made, please tell me if I'm doing something wrong.

Since I was unable to make a request to our hudson server when including the path into the host option, I've separated the path.

That didn't work. I got { [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall:
'getaddrinfo' } no matter what I did :
jenkinsBuildNumber: {
dist: {
options: {
hostname: 'myserver.domain.local/hudson',
state: 'lastBuild',
projectName: 'Meow'
}
}
},

Now that works:
jenkinsBuildNumber: {
dist: {
options: {
hostname: 'myserver.domain.local',
path: '/hudson',
state: 'lastBuild',
projectName: 'Meow'
}
}
},

Of course, path can be omitted.