sous-chefs / jenkins

Development repository for the jenkins cookbook
https://supermarket.chef.io/cookbooks/jenkins
Apache License 2.0
424 stars 635 forks source link

Create and enable job is working but not build #683

Closed cbou closed 4 years ago

cbou commented 6 years ago

Cookbook version

6.0.0

Chef-client version

Chef: 13.2.20 (with local mode -z)

Platform Details

Debian 9 in virtual box

Scenario:

I'm trying to created and build a job.

Steps to Reproduce:

xml = File.join(Chef::Config[:file_cache_path], 'my-job.xml')

template xml do
  source 'my-job.xml.erb'
end

jenkins_job 'my-job' do
  config xml
  action [ :create, :build ]
end

Expected Result:

I would expect the job to be added and built.

Actual Result:

The job is added but I get an error when I try to build it. I can even find the Job in Jenkins.

  * template[/tmp/my-job.xml] action create (up to date)
  * jenkins_job[my-job] action create
    - Update jenkins_job[my-job] config
  * jenkins_job[my-job] action build
    [my-job] 

                    ================================================================================
                    = BEGIN 'my-job' Jenkins job output
                    ================================================================================

                    java.io.EOFException
                        at java.io.DataInputStream.readBoolean(DataInputStream.java:244)
                        at hudson.cli.Connection.readBoolean(Connection.java:98)
                        at hudson.cli.CLI.authenticate(CLI.java:792)
                        at hudson.cli.CLI._main(CLI.java:620)
                        at hudson.cli.CLI.main(CLI.java:426)

                    ERROR: No such job 'my-job'; perhaps you meant 'my-job/master   '?
                    Apr 24, 2018 9:08:56 AM hudson.remoting.SynchronousCommandTransport$ReaderThread run
                    SEVERE: I/O error in channel CLI connection to http://localhost:8080/
                    java.net.SocketException: Connection reset
                        at java.net.SocketInputStream.read(SocketInputStream.java:210)
                        at java.net.SocketInputStream.read(SocketInputStream.java:141)
                        at java.io.FilterInputStream.read(FilterInputStream.java:133)
                        at java.io.FilterInputStream.read(FilterInputStream.java:107)
                        at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:114)
                        at javax.crypto.CipherInputStream.read(CipherInputStream.java:239)
                        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
                        at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
                        at hudson.remoting.FlightRecorderInputStream.read(FlightRecorderInputStream.java:91)
                        at hudson.remoting.ChunkedInputStream.readHeader(ChunkedInputStream.java:72)
                        at hudson.remoting.ChunkedInputStream.readUntilBreak(ChunkedInputStream.java:103)
                        at hudson.remoting.ChunkedCommandTransport.readBlock(ChunkedCommandTransport.java:39)
                        at hudson.remoting.AbstractSynchronousByteArrayCommandTransport.read(AbstractSynchronousByteArrayCommandTransport.java:34)
                        at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:63)
github-actions[bot] commented 4 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 4 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.