Closed cliffano closed 11 years ago
I can verify that doing a one-two punch of a POST and then a GET provides the correct response.
Can you confirm that the build job you're testing require authentication?
Yeah, it does. I'll download your new build and double check.
New build does not trigger a new, er, build.
Also returns cached build console.
Nestor 0.1.2, Jenkins ver. 1.508.
nestor build --console TEST-dispatch2-update
fails.
However, the following successfully runs the job and returns the console properly:
nestor build --console TEST-dispatch2-update param=nothing
nestor build --console TEST-dispatch2-update
No change in behaviour with the -p flag, unfortunately.
Please try latest master: git clone http://github.com/cliffano/nestor && cd nestor && npm link
I've tested it with jobs that do and don't require auth and params.
The -p flag is used as a delay between triggering a build to start listening for console output.
By default 'nestor build -c
Please let me know how you go with it. If it works, I'll publish a new version a.s.a.p .
I've got confirmation from other users that the fix works for them, so I've gone ahead and published v0.1.3 . I've also tested it with Jenkins v1.4xx and it works fine.
Sorry for any inconvenience. Confirming that using POST unconditionally is the correct method (for this and any other REST URL that is intended to produce an action).
Thanks for the confirmation @jglick . I'll close this issue as fixed in v0.1.3 .
Reported by @cgiffard.
'nestor build' does not trigger the actual build on Jenkins 1.5xx .
I have verified this problem with latest Nestor master (0.1.2-pre) and Jenkins master (1.511 SNAPSHOT)