Url to last succeful build log?

igor.sinicyn's Avatar

igor.sinicyn

25 May, 2016 02:28 PM

We have a tool to monitor our builds/unit tests that works with any CI server that allows to obtain build/unit test logs via static url.
Is there one for appveyor?

To be more precise: I'm interested in file containing full console output from the last successful build (including output from tests).
Something like the text displayed at CONSOLE tab as example but without line numbers.

There's also link to the log at the top of the page but it does not contains raw output, the time is appended to each line. Also, the link to the log is not static, it changes for each build.

UPD: And also it looks like the log output wraps accidentally, as example - line 2463 here (here's the build the log is from)

  1. Support Staff 1 Posted by Feodor Fitsner on 25 May, 2016 05:43 PM

    Feodor Fitsner's Avatar

    You can use REST API to get log URL: http://www.appveyor.com/docs/api/projects-builds

  2. 2 Posted by igor.sinicyn on 25 May, 2016 06:26 PM

    igor.sinicyn's Avatar

    @ Feodor Fitsner

    Well, the response for get last build has no mention of log url. Am I doing something wrong?

    Also, we'd prefer to have a static url the same way that is used for artifacts, https://github.com/appveyor/ci/issues/403 Should I create an github issue for it?

    Thanks!

  3. Support Staff 3 Posted by Feodor Fitsner on 25 May, 2016 07:42 PM

    Feodor Fitsner's Avatar

    There is jobId in that response which is what you need. Download URL for log is:

    https://ci.appveyor.com/api/buildjobs/{jobId}/log
    
  4. 4 Posted by igor.sinicyn on 25 May, 2016 07:53 PM

    igor.sinicyn's Avatar

    Ok. But this is not raw output. It's has timing prefix on start of each line and the lines are sometimes wrapped.

    Is there another way to get the log, may be as an build artifact?

  5. Support Staff 5 Posted by Feodor Fitsner on 25 May, 2016 09:17 PM

    Feodor Fitsner's Avatar

    I'm afraid this is all we have: either /log or /console.

  6. 6 Posted by igor.sinicyn on 26 May, 2016 12:11 PM

    igor.sinicyn's Avatar

    @Feodor Fitsner

    Ok, dubbed as github issue, https://github.com/appveyor/ci/issues/819

    Thanks!

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:06 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac