Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picking up incorrect project from GoCD #60

Open
ipsi opened this issue Jun 16, 2015 · 0 comments
Open

Picking up incorrect project from GoCD #60

ipsi opened this issue Jun 16, 2015 · 0 comments

Comments

@ipsi
Copy link

ipsi commented Jun 16, 2015

Spotted an oddity with checkman today - it's reporting that one of our builds, redis-release has failed, but when we go to the build server, it's passed.

Looking at what GoCD returns, for our project I see the following:

<Project name="redis-release :: <...>" activity="Sleeping" lastBuildStatus="Success" lastBuildLabel="<...>" lastBuildTime="2015-06-13T12:09:59" webUrl="<...>" />

However, there is another project with the following:

<Project name="cf-redis-release :: <...>" activity="Sleeping" lastBuildStatus="Failure" lastBuildLabel="<...>" lastBuildTime="2015-06-13T12:55:58" webUrl="<...>">

Looking at cctray.check, I guess it's the following code causing the problem:

projects = @feed.xpath('//Project').select do |proj|
  proj.attr('name').downcase.include?(name.downcase)
end

Does that need to be include? or would start_with? or == be OK too?

May also be showing up because cf-redis-release has a more recent build than redis-release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant