You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to change the timeout when blocking for a build to complete? Also note that even 'though wait_for_completion and stream_job_output are set to true, I do not see job output in the opsworks chef log.
Cookbook version
2.5.0
Chef-client version
12
Platform Details
aws opsworks chef 12 linux ami
Scenario:
[What you are trying to achieve and you can't?]
Steps to Reproduce:
jenkins_job "unit_test" do # where unit_test is a job that runs longer than 60s
stream_job_output true
wait_for_completion true
action :build
end
Expected Result:
job completed
Actual Result:
job fails with error:
Mixlib::ShellOut::CommandTimeout
--------------------------------
Command timed out after 60s:
The text was updated successfully, but these errors were encountered:
There doesn't appear to be a way to set the timeout at present and I'm betting most people that use this aren't using the wait_for_completion flags so it's entirely possible it's broken. Moreover, 2.5.0 is a very, very old version.
I bumped my version to 4.2.1 and am still not seeing the output.
This job runs all of the integration tests to validate that jenkins was installed and configured properly - when it errors, the errors are important for troubleshooting. That's my real feature request since adding "node.override[:jenkins][:executor][:timeout] = 1200" before the call to jenkins_job allows the job enough time to finish. For me, this is the last step in the recipe, so I didn't need to set it back.
coltrey
changed the title
jenkins_job 60s timeout
stream_job_output set to true and job output does not appear in chef log
Apr 6, 2017
Is there a way to change the timeout when blocking for a build to complete? Also note that even 'though wait_for_completion and stream_job_output are set to true, I do not see job output in the opsworks chef log.
Cookbook version
2.5.0
Chef-client version
12
Platform Details
aws opsworks chef 12 linux ami
Scenario:
[What you are trying to achieve and you can't?]
Steps to Reproduce:
jenkins_job "unit_test" do # where unit_test is a job that runs longer than 60s
stream_job_output true
wait_for_completion true
action :build
end
Expected Result:
job completed
Actual Result:
job fails with error:
Mixlib::ShellOut::CommandTimeout
--------------------------------
Command timed out after 60s:
The text was updated successfully, but these errors were encountered: