summaryrefslogtreecommitdiff
path: root/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'send-incremental-build-log' into 'master' Jacob Schatz2016-05-121-21/+62
|\ | | | | | | | | | | | | | | | | | | Update build log incrementally Proof of concept implementation of incremental sending of build log to browser. cc @jschatz1 @vsizov @grzesiek @tmaczukin See merge request !3737
| * Encode state as base64 stringKamil Trzcinski2016-05-091-4/+9
| |
| * Send trace to a browser incrementally when build is runningKamil Trzcinski2016-05-091-21/+57
| | | | | | | | | | We send a state of ansi2html to client, client needs to send this state back. The state describes the configuration of generator and position within trace.
* | Fix a few places where autoloading would failRémy Coutable2016-05-101-6/+4
|/ | | | | | | | | | | - Fix naming of API::CommitStatuses - Ensure we use require_dependency instead of require - Ensure the namespace is right in lib/api/api.rb, otherwise, we might require Grape::API::Helpers which defines the `#params` method. This is to avoid requiring a file multiple times and getting an "Already initialized constant" error. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix some typosTomasz Maczukin2016-04-221-1/+1
|
* Modify code formattingTomasz Maczukin2016-04-221-3/+1
|
* Simplify the GitlabCiYamlProcessor#initial_parsing methodTomasz Maczukin2016-04-221-16/+11
|
* Add posibility to define a hidden job without 'script' in .gitlab-ci.ymlTomasz Maczukin2016-04-221-4/+7
|
* 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