Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Jeversmann/kochiku yml updates #101

Merged
merged 4 commits into from
Jul 11, 2014
Merged

Conversation

jeversmann
Copy link
Contributor

Changes build enqueueing logic so that test command, on success script, and log file targets from kochiku.yml. I also moved the logic for interacting with the GitRepos around to eliminate cases where methods were making assumptions about how they were being called.

end
end

def create_working_dir
FileUtils.mkdir_p(WORKING_DIR)
def read_from_repo(file_name, repository, ref="HEAD")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this method being called from anywhere

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wrote it for the kochiku.yml but since there were multiple locations to check it needed to be more specific; I left it in planning to use it to clean up code which was making assumptions about inside_copy.
I'll probably trim out all of the Thread stuff after changing kochiku.yml in response to your comment there.

@jeversmann
Copy link
Contributor Author

Updated in response to feedback.
I also added .kochiku.yml to the supported config locations, to be more Travis-like.

self.save!
if !promoted?
BuildStrategy.promote_build(self)
Build.where(id: self.id, promoted: nil).each { |build| build.update!(promoted: true) }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All that is needed here is:

update!(promoted: true)

The build being updated is self.

@jeversmann
Copy link
Contributor Author

Fixed the update! call and removed the .kochiku.yml.

jeversmann added a commit that referenced this pull request Jul 11, 2014
@jeversmann jeversmann merged commit 5568925 into master Jul 11, 2014
@jeversmann jeversmann deleted the jeversmann/kochiku_yml_updates branch July 11, 2014 19:19
robolson added a commit that referenced this pull request Oct 29, 2015
* commit '9bd4c1f94a07243b1136916e9832e3e9ac3e7fa4':
  Fix pressing Return key will update the dashboard page
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants