Commit graph

18 commits

Author SHA1 Message Date
Grzegorz Bizon
2d495fce52 Remove reduntant method for building pipeline builds 2016-06-15 14:12:25 +02:00
Grzegorz Bizon
cf292a3f1d Improve code clarity in pipeline create service 2016-06-14 14:22:46 +02:00
Grzegorz Bizon
ab9a8643d8 Merge branch 'master' into fix/status-of-pipeline-without-builds
* master: (538 commits)
  Fix broken URI joining for `teamcity_url` with suffixes
  Factorize duplicated code into a method in BambooService and update specs
  Fix broken URI joining for `bamboo_url` with suffixes
  Honor credentials on calling Bamboo CI trigger
  Update CHANGELOG
  Use Issue.visible_to_user in Notes.search to avoid query duplication
  Project members with guest role can't access confidential issues
  Allow users to create confidential issues in private projects
  Update CHANGELOG
  Remove deprecated issues_tracker and issues_tracker_id from project
  Schema doesn’t reflect the changes of the last 3 migrations
  Apply reviewer notes: update CHANGELOG, adjust code formatting
  Move issue rendering tests into separate contexts
  Move change description to proper release and fix typo
  Add more information into RSS fead for issues
  Revert CHANGELOG
  Also rename "find" in the specs
  Change to new Notes styleguide
  Add guide on changing a document's location
  Change logs.md location in README
  ...

Conflicts:
	app/services/ci/create_builds_service.rb
	app/services/ci/create_pipeline_service.rb
	app/services/create_commit_builds_service.rb
	spec/models/ci/commit_spec.rb
	spec/services/ci/create_builds_service_spec.rb
	spec/services/create_commit_builds_service_spec.rb
2016-06-14 13:44:03 +02:00
Kamil Trzcinski
1927a2d30b Rename all ci_commit[s] in application code to pipeline[s] 2016-06-03 16:27:50 +02:00
Kamil Trzcinski
393ec8e74a Rename commit to pipeline in application code 2016-06-03 16:22:53 +02:00
Grzegorz Bizon
d8c4556d3c Refactor code reponsible for creating builds
This removes duplications and extracts method that builds build-jobs
without persisting those objects, to a separate method.
2016-06-03 12:50:51 +02:00
Kamil Trzcinski
8e811f2c6c Update CreateCommitBuildsService to pass tests 2016-06-03 11:34:36 +02:00
Grzegorz Bizon
07af37a243 Do not create pipeline objects when no builds 2016-06-03 11:34:36 +02:00
Grzegorz Bizon
af2f56f8f7 Refactor ci commit pipeline to prevent implicit saves 2016-06-03 11:34:36 +02:00
Kamil Trzcinski
021d3810c3 Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipeline 2016-06-02 16:59:04 +02:00
Kamil Trzcinski
b876993677 Fix creation of Ci::Commit object which can lead to pending, failed in some scenarios 2016-05-19 15:51:41 -05:00
Kamil Trzcinski
af7214d0f0 Fix specs 2016-04-11 23:32:55 +02:00
Kamil Trzcinski
5d69f5b46d Use Ci::Commit as Pipeline 2016-04-11 23:32:54 +02:00
Kamil Trzcinski
0672258915 Cleanup CiCommit and CiBuild
- Remove all view related methods from Ci::Build and CommitStatus
- Remove unused Ci::Commit and Ci::Build methods
- Use polymorphism to render different types of CommitStatus
2016-03-14 13:20:35 +01:00
Kamil Trzcinski
58a56a0396 Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if the builds are enabled 2015-12-17 16:33:47 +01:00
Kamil Trzcinski
c9ac38a074 Use Gitlab::Git instead of Ci::Git 2015-12-11 18:02:32 +01:00
Kamil Trzcinski
73b04bebad Fix errors 2015-12-11 18:02:09 +01:00
Kamil Trzcinski
64bfd9d71a Remove ci_ prefix from all ci related things 2015-12-11 18:02:09 +01:00