Giter Site home page Giter Site logo

Comments (9)

vraravam avatar vraravam commented on June 18, 2024

Just providing a link to the build log file just renders it as text without any truncating - this is what we use on our current project.

from cruisecontrol.rb.

andhapp avatar andhapp commented on June 18, 2024

@vraravam - Exactly. I was going to create a patch for the same but decided to enquire what others were doing. Thanks.

from cruisecontrol.rb.

iconnor avatar iconnor commented on June 18, 2024

@vraravam I like the idea of a direct link in the email - if you make a patch, I will be happy to test - thanks.

from cruisecontrol.rb.

vraravam avatar vraravam commented on June 18, 2024

Sorry - I am on a Java project - and am not using ccrb right now. So my turn-around time would be a little high.

from cruisecontrol.rb.

iconnor avatar iconnor commented on June 18, 2024

It looks like there is already a link to the failure but just need to add '/build.log' to the end in an additional link. Do you know where this code lives? It did not look to be as easy as just changing the mail template.

from cruisecontrol.rb.

andhapp avatar andhapp commented on June 18, 2024

I would love to help but I am tied up with other projects and I don't use ccrb anymore. I am using Jenkins (Hudson).

from cruisecontrol.rb.

betarelease avatar betarelease commented on June 18, 2024

I found three locations - and I dont know which one @iconnor you are talking about but here it goes

  • build.rb
    def contents_for_display(file)
  • show.html.erb
    <%= format_build_log(@build.output) %>
    <%= link_to "See unformatted build log…".html_safe, build_artifact_path(:project => @project.name, :build => @build.label, :path => 'build.log')
  • build_report.html.erb

<%= @build.output %>


May be its just a matter of adding the same code as in show.html.erb to the build_report file and you will have the correct link to download the text build.log file.

( I am new to the codebase so just sharing what I found while exploring.)

from cruisecontrol.rb.

srushti avatar srushti commented on June 18, 2024

You should take a look at #23 (and its pull request #24). It's an attempt to make sure the errors, at least, are displayed regardless of the length of the build log. That might serve your needs until this issue is addressed specifically.

from cruisecontrol.rb.

bguthrie avatar bguthrie commented on June 18, 2024

I'm currently evaluating that solution. I'm not yet convinced that allowing CC.rb to parse the entire file is a wise idea but am happy to accept the patch if others believe that this is a reasonable fix.

from cruisecontrol.rb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.