Commit graph

8 commits

Author SHA1 Message Date
Shinya Maeda
ed3a2fc8d7 Fix CI_COMMIT_REF_NAME and SLUG variable
With Pipelines for Merge Requests feature, users cannout keep using
$CI_COMMIT_REF_NAME and _SLUG predefined variables for dynamic
environments. We fix this problem by explicitly looking at the source
ref.
2019-04-29 18:52:51 +07:00
Grzegorz Bizon
552a32c015 Extract scoped CI/CD variables to a separate concern
This commits extract code responsible for calculating essential CI/CD
variables to a separate concern. This makes it possible to share this
code between a `Ci::Build` and a `Ci::Bridge`.

We might want to refactor this to use composition instead of
inheritance.
2019-03-02 21:03:41 +01:00
Grzegorz Bizon
dc7d0249d5 Require scoped variables for a CI/CD processable entity 2019-03-02 14:59:43 +01:00
Grzegorz Bizon
d434af46f4 Extract processable metadata to a separate concern
We extracted implementation of build/bridge metadata attributes to a
separate concern, because in EE `Ci::Bridge` also has metadata
attributes, and we want to build abstraction for storing values in build
metadata table.
2019-01-29 12:46:50 +01:00
Grzegorz Bizon
8850da27c3 Extract common when code between CI/CD processables 2019-01-25 10:40:13 +01:00
Grzegorz Bizon
cd9409f003 Simplify pipeline processing service 2019-01-25 10:39:58 +01:00
Grzegorz Bizon
ec7f4b4876 Add when method to be required in case of processables 2019-01-25 10:38:13 +01:00
Grzegorz Bizon
76e7b19c81 Segregate interface require to make CI/CD entity processable
This commit segregates interface that is require to make CI/CD entity
processable, like `Ci::Build`. With this change it is not clear and
explicit what methods need to be implement to pass an object to pipeline
processing service.
2019-01-25 10:36:59 +01:00