You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Greg Lucas <gr...@gmail.com> on 2009/11/24 18:19:07 UTC
SFTP upoad failing
I have a build that uses SFTP to upload to a maven repo. This was working
at one point, but since updating from buildr 1.2.10 to buildr 1.3.5 +
JRuby 1.4 I'm getting the following:
undefined method `shutdown!' for nil:NilClass
Looks like Net::SSH.start is returning a nil session, the trace is:
> buildr-1.3.5-jruby-1.4.0/lib/ruby/gems/1.8/gems/net-sftp-2.0.2/lib/net/sftp.rb:43:in
> `start'
> buildr-1.3.5-jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/transports.rb:442:in
> `write_internal'
Has anyone else run in to this?
Thanks,
--
Greg Lucas
AW: cobertura tasks and test.using :integration
Posted by Peter Schröder <ps...@blau.de>.
i think that we wont do this right now, cause cobertura-coverage is not interesting in our system-test-setup, so we just ignore them when test.options[:integration] is set.
i will report back if we come back to this issue in the next month.
________________________________________
Von: Alex Boisvert [alex.boisvert@gmail.com]
Gesendet: Donnerstag, 26. November 2009 20:21
An: users@buildr.apache.org
Betreff: Re: cobertura tasks and test.using :integration
On Wed, Nov 25, 2009 at 10:36 PM, Peter Schröder <ps...@blau.de> wrote:
> you mean a self-defined task with a zip-task to create the report-artifact?
>
yes.
> we probably would need to create some other kind of top-level
> package-report task, because we join all created reports (cobertura, junit,
> javadoc...) into one big reports-zip and upload this to our bamboo-server,
> so that we can attach all reports to a build.
>
yes, that would be very nice. if you implement this, I would be very
interested in bringing it into buildr.
alex
Re: cobertura tasks and test.using :integration
Posted by Alex Boisvert <al...@gmail.com>.
On Wed, Nov 25, 2009 at 10:36 PM, Peter Schröder <ps...@blau.de> wrote:
> you mean a self-defined task with a zip-task to create the report-artifact?
>
yes.
> we probably would need to create some other kind of top-level
> package-report task, because we join all created reports (cobertura, junit,
> javadoc...) into one big reports-zip and upload this to our bamboo-server,
> so that we can attach all reports to a build.
>
yes, that would be very nice. if you implement this, I would be very
interested in bringing it into buildr.
alex
Re: cobertura tasks and test.using :integration
Posted by Peter Schröder <ps...@blau.de>.
you mean a self-defined task with a zip-task to create the report-artifact?
we probably would need to create some other kind of top-level package-report task, because we join all created reports (cobertura, junit, javadoc...) into one big reports-zip and upload this to our bamboo-server, so that we can attach all reports to a build.
Am 25.11.2009 um 20:58 schrieb Alex Boisvert:
> Create a package task for the cobertura reports (which is not a dependency
> of :package) and add it as a dependency of :upload ?
>
> On Nov 25, 2009 4:54 AM, "Peter Schröder" <ps...@blau.de> wrote:
>
> hi,
>
> we have an issue regarding the order of task when running cobertura-tasks in
> the test-integration mode.
>
> we want to package the cobertura-results, so that an reports-artifact can be
> created and uploaded, but the package task needs to be run before the
> test-integration setup and teardown. but the cobertura task needs to run the
> tests...
>
> any ideas?
Re: cobertura tasks and test.using :integration
Posted by Alex Boisvert <al...@gmail.com>.
Create a package task for the cobertura reports (which is not a dependency
of :package) and add it as a dependency of :upload ?
On Nov 25, 2009 4:54 AM, "Peter Schröder" <ps...@blau.de> wrote:
hi,
we have an issue regarding the order of task when running cobertura-tasks in
the test-integration mode.
we want to package the cobertura-results, so that an reports-artifact can be
created and uploaded, but the package task needs to be run before the
test-integration setup and teardown. but the cobertura task needs to run the
tests...
any ideas?
cobertura tasks and test.using :integration
Posted by Peter Schröder <ps...@blau.de>.
hi,
we have an issue regarding the order of task when running cobertura-tasks in the test-integration mode.
we want to package the cobertura-results, so that an reports-artifact can be created and uploaded, but the package task needs to be run before the test-integration setup and teardown. but the cobertura task needs to run the tests...
any ideas?
Re: SFTP upoad failing
Posted by Greg Lucas <gr...@gmail.com>.
In case anyone else hits this: The error is misleading, see
<http://rubyforge.org/tracker/?func=detail&aid=23981&group_id=274&atid=1125>
I applied the patch to get a better error message, now at least I get
Net::SSH::AuthenticationFailed
Not sure what changed to cause this, but it's a start. (I get a different
error running on windows, but that seems to be a known issue with
jruby/ssh).
On Tue, 24 Nov 2009 12:19:07 -0500, Greg Lucas <gr...@gmail.com>
wrote:
> I have a build that uses SFTP to upload to a maven repo. This was
> working at one point, but since updating from buildr 1.2.10 to buildr
> 1.3.5 + JRuby 1.4 I'm getting the following:
>
> undefined method `shutdown!' for nil:NilClass
>
> Looks like Net::SSH.start is returning a nil session, the trace is:
>
>> buildr-1.3.5-jruby-1.4.0/lib/ruby/gems/1.8/gems/net-sftp-2.0.2/lib/net/sftp.rb:43:in
>> `start'
>> buildr-1.3.5-jruby-1.4.0/lib/ruby/gems/1.8/gems/buildr-1.3.5-java/lib/buildr/core/transports.rb:442:in
>> `write_internal'
>
> Has anyone else run in to this?
>
> Thanks,
>
--
Greg Lucas