Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream_job_output set to true and job output does not appear in chef log #565

Open
coltrey opened this issue Feb 8, 2017 · 2 comments
Open

Comments

@coltrey
Copy link
Contributor

coltrey commented Feb 8, 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:

@cheeseplus
Copy link

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.

@coltrey
Copy link
Contributor Author

coltrey commented Mar 14, 2017

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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants