summaryrefslogtreecommitdiff
path: root/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'ci-commit-as-pipeline' into 'master' Kamil Trzciński2016-04-211-19/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci::Commit becomes a Pipeline object 1. Ci::Commit receives context: ref, :tag. 1. One Ci::Commit describes a one Pipeline 1. Pipeline is created from `.gitlab-ci.yml` 1. Pipeline is a ordered group of builds 1. We test MR against Pipeline 1. Pipelines have a separate view (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Pipeline can be triggered from UI (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Later we change `Trigger -> TriggerRequest -> Build` to `Trigger -> Pipeline` (future) 1. We add a Pipeline Hook that will be triggered on Pipeline status change (future) 1. We extend notifications to use `Pipeline Hook` to send summary on pipeline changes (future) After merging that I'll prepare a separate MR that will unify naming, database columns, table names: ``` Ci::Commit -> Pipeline Ci::Build -> Build CommitStatus -> Job GenericCommitStatus -> ExternalJob ci_commits -> pipelines ci_builds -> jobs ``` This MR implements first 5 points. This is made to solve this issue https://gitlab.com/gitlab-org/gitlab-ce/issues/14149. See merge request !3653
| * Merge remote-tracking branch 'origin/master' into ci-commit-as-pipelineci-commit-as-pipelineKamil Trzcinski2016-04-191-31/+65
| |\ | | | | | | | | | | | | # Conflicts: # db/schema.rb
| * | Fix create_next_builds methodKamil Trzcinski2016-04-121-19/+0
| | |
* | | Fix Build#append_trace method usage when trace file doesn't exists yetTomasz Maczukin2016-04-201-2/+3
| | |
* | | Fix some typos in documentationTomasz Maczukin2016-04-201-1/+1
| | | | | | | | | | | | [ci skip]
* | | Add documentation of incremental trace update APITomasz Maczukin2016-04-201-1/+2
| | | | | | | | | | | | [ci skip]
* | | Make sure that appending is done on a valid lengthTomasz Maczukin2016-04-201-1/+11
| | |
* | | Add range checkingTomasz Maczukin2016-04-202-4/+18
| | |
* | | Add incremental build trace update APITomasz Maczukin2016-04-201-0/+9
| |/ |/|
* | Make rubocop happymake-before-after-overridableKamil Trzcinski2016-04-181-12/+15
| |
* | Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-181-15/+0
|\ \
| * | Resolve mergeafter-scriptKamil Trzcinski2016-04-181-15/+0
| | |
* | | Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-181-3/+37
|\ \ \ | |/ /
| * | Merge remote-tracking branch 'origin/master' into after-scriptKamil Trzcinski2016-04-181-3/+37
| |\ \
| | * | Minor refactorings in CI configfeature/ci-job-env-variablesGrzegorz Bizon2016-04-181-4/+7
| | | |
| | * | Validate job-level variables in YAML config fileGrzegorz Bizon2016-04-181-0/+8
| | | |
| | * | Minor refactoring in code related to job variablesGrzegorz Bizon2016-04-181-5/+1
| | | |
| | * | Make CI config return empty array if no job variablesGrzegorz Bizon2016-04-181-2/+5
| | | |
| | * | Rename method that returns global envs in CI confGrzegorz Bizon2016-04-181-1/+1
| | | |
| | * | Read job variables directly from gitlab CI configGrzegorz Bizon2016-04-181-2/+10
| | | |
| | * | Add `variables` keyword to job in CI config YAMLGrzegorz Bizon2016-04-181-1/+2
| | |/
* | | Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-181-27/+33
|\ \ \ | |/ /
| * | Fix rubocop complainsKamil Trzcinski2016-04-181-27/+33
| | |
* | | Merge branch 'after-script' into make-before-after-overridableKamil Trzcinski2016-04-171-9/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * after-script: Add CHANGELOG and documentation Rename finally_script to after_script Conflicts: lib/ci/gitlab_ci_yaml_processor.rb spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
| * | Rename finally_script to after_scriptKamil Trzcinski2016-04-171-6/+6
| | |
* | | Allow the before_script and finally_script to be overwritten in context of jobKamil Trzcinski2016-04-161-11/+11
|/ /
* | Implement finally_script which allows to do cleanups as part of the build ↵Kamil Trzcinski2016-04-161-2/+8
|/ | | | process
* Fix build dependencies, when the dependency is a stringKamil Trzcinski2016-03-231-2/+2
|
* make conditional a bit clearerJason Roehm2016-03-151-1/+1
|
* fixed missing argument in listJason Roehm2016-03-151-1/+1
|
* fix rubocop violationJason Roehm2016-03-151-1/+1
|
* add 'triggers' keyword to gitlab-ci.yml 'only' and 'except' fields to allow ↵Jason Roehm2016-03-151-7/+8
| | | | control over whether triggers will cause jobs to run
* Merge remote-tracking branch 'origin/master' into gitlab-ci-yaml-updatesKamil Trzcinski2016-03-111-1/+1
|\ | | | | | | | | # Conflicts: # spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
| * Support YAML alias/anchor usage in .gitlab-ci.ymlPascal Bach2016-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to reuse one job as a template for another one: ``` job1: &JOBTMPL script: execute-script-for-job job2: *JOBTMPL ``` This also helps to solve some of the issues in #342 Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Fabio Huser <fabio.huser@siemens.com>
* | Allow to define on which builds the current one depends onKamil Trzcinski2016-03-111-1/+20
| |
* | Allow to pass name of created artifacts archive in `.gitlab-ci.yml`Kamil Trzcinski2016-03-111-0/+4
| |
* | Describe special YAML features: the use of anchors and hidden jobsKamil Trzcinski2016-03-111-0/+2
|/
* Move build eraseable API to proper API contextGrzegorz Bizon2016-02-191-18/+1
|
* Do not allow to modify build if it has been erasedGrzegorz Bizon2016-02-191-0/+3
|
* Use DELETE verb for erasing a build contentGrzegorz Bizon2016-02-191-2/+4
| | | | Also added API specs for that
* And CI API endpoint where user can erase a buildGrzegorz Bizon2016-02-191-0/+16
|
* Fix builds scheduler when first build is allowed to failGrzegorz Bizon2016-02-181-3/+1
| | | | | | | | Before this fix when there was only one relevant, previous build and it failed, but was allowed to fail, entire build had been marked as skipped. Closes #3192
* Merge branch 'fix-ci-runners-version-update' into 'master' Robert Speicher2016-01-273-4/+9
|\ | | | | | | | | | | | | | | | | Fix CI runner version not being properly updated when asked for a build Due to broken implementation of attribute_for_keys the runner information was not updated correctly. This MR adds test to check that such scenario will never happen again. See merge request !2618
| * Fix CI runner version not being properly updated when asking for a buildfix-ci-runners-version-updateKamil Trzcinski2016-01-273-4/+9
| | | | | | | | | | | | Due to broken implementation of attribute_for_keys the runner information was not updated correctly. This MR adds test to check that such scenario will never happen again.
* | Fix hot reloading for CI APIhot-reloadingKamil Trzcinski2016-01-261-1/+1
|/
* Added cache:key to .gitlab-ci.yml allowing to fine tune the cachingci/cache-keyKamil Trzcinski2016-01-201-0/+8
|
* Change dependencies.builds to depends_on_buildsKamil Trzcinski2016-01-151-4/+2
|
* Let the CI runner know about builds that this build depends onci/build_dependenciesKamil Trzcinski2016-01-142-6/+17
| | | | This allows us to implement artifacts passing: runner will download artifacts from all prior builds
* Refactor build artifacts upload API endpointGrzegorz Bizon2016-01-141-8/+7
|
* Update build artifacts APIGrzegorz Bizon2016-01-142-10/+8
| | | | | We do not want to allow runners to upload a metadata file. This needs to be generated by Workhorse only.