Skip to content

Cannot read property 'length' of undefined #972

Answered by rfennell
lucasssfigueredo asked this question in Q&A
Discussion options

You must be logged in to vote

You have found a bug.

The API call buildApi.getBuildChanges(teamProject, build.id) gets the details of the headline commit, but not the actual list of files. I have to make another set of calls to do this.

The issue is that the task has a number of code paths

  • Build (YAML or Classic)
  • Multi-Stage YAML
  • Classic Release (initial run) < you are using this
  • Classic Release (another run)
    and I there are probably more edge case paths.

The code to get the commit details are not run on the code path you are using. This is logged as #974. I will get onto it ASAP

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
1 reply
@lucasssfigueredo
Comment options

Comment options

You must be logged in to vote
10 replies
@lucasssfigueredo
Comment options

@rfennell
Comment options

@lucasssfigueredo
Comment options

@lucasssfigueredo
Comment options

@rfennell
Comment options

Answer selected by lucasssfigueredo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants