[JIRA] (JENKINS-42084) Errors when "wait for completion" is ticked
Title: Message Title Christian McHugh commented on JENKINS-42084 Re: Errors when "wait for completion" is ticked Odd, I am not able to replicate. Can you submit the response from the debug logs? Does different output get reported without the 'wait for completion' checkbox checked? Here's what I get from a test with 'wait for completion' checked when trying to run a cmd.run for 'sleep 25; ls -la' Sending JSON: {"client":"local","tgt":"*","expr_form":"glob","fun":"cmd.run","arg":"sleep 25; ls -la","kwarg":{}} Received response: [\{"master":"total 20\ndrwx-- 3 root root 4096 Oct 8 17:02 .\ndrwxr-xr-x 25 root root 4096 Mar 5 19:05 ..\n-rw-r--r-- 1 root root 3106 Oct 22 2015 .bashrc\n-rw-r--r-- 1 root root 148 Aug 17 2015 .profile\ndrwx-- 2 root root 4096 Oct 8 17:02 .ssh"}] Another thing to check is that the salt-api responds properly to the call being sent. See this gist for an example api login and then call to the salt-api Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-42084) Errors when "wait for completion" is ticked
Title: Message Title Phil Rumble created an issue Jenkins / JENKINS-42084 Errors when "wait for completion" is ticked Issue Type: Bug Assignee: Christian McHugh Components: saltstack-plugin Created: 2017/Feb/16 6:49 AM Priority: Blocker Reporter: Phil Rumble I . get this error Started by user anonymous Building in workspace /var/lib/jenkins/jobs/salt-test/workspace ERROR: { "_links": {"jobs": []} , "return": [{}] } ERROR: {"Error": "java.io.IOException: Server returned HTTP response code: 401 for URL: http://172.16.42.10:8000/jobs/\n\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)\n\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)\n\tat com.waytta.Utils.getJSON(Utils.java:69)\n\tat com.waytta.Builds.runBlockingBuild(Builds.java:97)\n\tat com.waytta.SaltAPIBuilder.performRequest(SaltAPIBuilder.java:253)\n\tat com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:201)\n\tat com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:161)\n\tat hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)\n\tat hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)\n\tat hudson.model.Build$BuildExecution.build(Build.java:206)\n\tat hudson.model.Build$BuildExecution.doRun(Build.java:163)\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)\n\tat hudson.model.Run.execute(Run.java:1728)\n\tat hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)\n\tat hudson.model.ResourceController.execute(ResourceController.java:98)\n\tat hudson.model.Executor.run(Executor.java:405)\n"} Response on test.ping for '*': [{}] Build step 'Send a message to Salt API' changed build result to FAILURE Finished: FAILURE