summaryrefslogtreecommitdiff
path: root/app/models/ci
Commit message (Collapse)AuthorAgeFilesLines
* Use begin/end instead of defined?Jacob Vosmaer2016-02-021-5/+5
|
* Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into lazy-blobsJacob Vosmaer2016-02-011-4/+4
|\
| * Add method that calculates total size for artifacts subfolderci/recursive-artifacts-entriesKamil Trzcinski2016-01-201-4/+4
| |
* | WIP lazy blobsJacob Vosmaer2016-02-011-1/+5
|/
* Merge branch 'ci/build_dependencies' into 'master' Douwe Maan2016-01-151-0/+8
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Let the CI runner know about builds that this build depends on This allows us to implement artifacts passing: runner will download artifacts from all prior builds. It will happen automatically, and always, as long as artifacts are enabled. ## The changes: This MR exposes list of prior builds in CI::API::Builds. **The API response when asking for builds** ```json { "id": 48584, "ref": "0.1.1", "tag": true, "sha": "d63117656af6ff57d99e50cc270f854691f335ad", "status": "success", "name": "pages", "token": "9dd60b4f1a439d1765357446c1084c", "stage": "test", "project_id": 479, "project_name": "test", "commands": "echo commands", "repo_url": "http://gitlab-ci-token:token@gitlab.example/group/test.git", "before_sha": "0000000000000000000000000000000000000000", "allow_git_fetch": false, "options": { "image": "docker:image", "artifacts": { "paths": [ "public" ] }, "cache": { "paths": [ "vendor" ] } }, "timeout": 3600, "variables": [ { "key": "CI_BUILD_TAG", "value": "0.1.1", "public": true } ], "dependencies": { "builds": [ { "id": 48584, "ref": "0.1.1", "tag": true, "sha": "d63117656af6ff57d99e50cc270f854691f335ad", "status": "success", "name": "build", "token": "9dd60b4f1a439d1765357446c1084c", "stage": "build", "project_id": 479, "project_name": "test", "artifacts_file": { "filename": "artifacts.zip", "size": 0 } } ] } } ``` ## How it will work? **Example:** ``` build: type: build script: - echo TEST > test_file artifacts: untracked: true rspec: type: test script: - test-my-project staging: type: deploy script: - scp test_file root@server.com: ``` **The flow:** 1. We run `build`. The `build` creates a file `test_file`. This file gets archived and send us build artifacts. 2. We run `rspec`. The `rspec` downloads build artifacts from `build`. Uses the `test_file`. 3. We run `staging`. The `staging` downloads build artifacts from `build` and `rspec`, but since the `rspec` doesn't have build artifacts we skip that build. Deploys the `test_file`. This partially implements the https://gitlab.com/gitlab-org/gitlab-ce/issues/3423. In the next release we will introduce option to configure what artifacts are received. /cc @grzesiek @DouweM @sytse @rspeicher See merge request !2437
| * Let the CI runner know about builds that this build depends onci/build_dependenciesKamil Trzcinski2016-01-141-0/+8
| | | | | | | | This allows us to implement artifacts passing: runner will download artifacts from all prior builds
* | Merge branch 'master' into ci/api-triggersTomasz Maczukin2016-01-141-13/+28
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (150 commits) fixes margin and padding Update mailroom/postfix documentation [ci skip] Fix css mess around git clone panel. Align it properly Fix missing padding for user/group pages Fix parse_gollum_tags matcher Update documentation on Banzai::Filter::GollumTagsFilter Add tests for the wiki pipeline Refactoring Banzai::Filter::GollumTagsFilter Make sure the .git is at the end on Gitlab::GithubImport::WikiFormatter Remove GollumTagsPipeline Refactoring Gitlab::GithubImport::Importer Remove unnecessary brackets on WIKI_SLUG_ID route constraints Move js function to removing accents to vendor/assets/javascripts Update CHANGELOG Use the WikiPipeline when rendering the wiki markdown content Add Banzai::Filter::GollumTagsFilter for parsing Gollum's tags in HTML Relax constraints for wiki slug Import GitHub wiki into GitLab Move Ci::Build#available_statuses to AVAILABLE_STATUSES constant in CommitStatus Revert changes to how the notes are paginated in the API ... Conflicts: doc/api/README.md lib/api/entities.rb
| * Merge branch 'ci/view-build-artifacts' into 'master' Grzegorz Bizon2016-01-141-13/+28
| |\ | | | | | | | | | | | | | | | | | | Add browser for build artifacts Discussion in #3426, closes #3426. See merge request !2123
| | * Improve readability of artifacts browser `Entry` related codeGrzegorz Bizon2016-01-141-2/+2
| | |
| | * Improvements, readability for artifacts browserGrzegorz Bizon2016-01-141-1/+1
| | |
| | * Render only valid paths in artifacts metadataGrzegorz Bizon2016-01-141-3/+1
| | | | | | | | | | | | | | | In this version we will support only relative paths in artifacts metadata. Support for absolute paths will be introduced later.
| | * Simplify implementation of build artifacts browser (refactoring)Grzegorz Bizon2016-01-141-6/+4
| | |
| | * Extract artifacts metadata implementation to separate classGrzegorz Bizon2016-01-141-17/+3
| | |
| | * Improve path sanitization in `StringPath`Grzegorz Bizon2016-01-141-5/+5
| | |
| | * Parse artifacts metadata stored in JSON formatGrzegorz Bizon2016-01-141-5/+6
| | |
| | * Use metadata stored in artifacats metadata fileGrzegorz Bizon2016-01-141-2/+17
| | |
| | * Add artifacts metadata uploader filedGrzegorz Bizon2016-01-141-3/+5
| | | | | | | | | | | | | | | Artifacts metadata field will be used to store a filename of gzipped file containing metadata definition for given artifacts archive.
| | * Make some conditions in `Ci::Build` more readableGrzegorz Bizon2016-01-141-4/+6
| | |
| | * Add method that checks if artifacts browser is supportedGrzegorz Bizon2016-01-141-0/+6
| | | | | | | | | | | | | | | | | | This is needed because of backward compatibility. Previously artifacts archive had `.tar.gz` format, but artifacts browser requires ZIP format now.
| | * Update specs for CI Build, add `artifacts?` methodGrzegorz Bizon2016-01-141-12/+14
| | | | | | | | | | | | `artifacts?` method checks if artifacts archive is available.
| | * Rename method that returns url to CI build artifacts downloadGrzegorz Bizon2016-01-141-1/+1
| | |
| | * Mix `url_helpers` into `Ci::Build`Grzegorz Bizon2016-01-141-10/+6
| | |
| | * Add button to CI build artifacts browser into build summaryGrzegorz Bizon2016-01-141-0/+7
| | |
| | * Remove artifacts metadata column from databaseGrzegorz Bizon2016-01-141-2/+4
| | |
| | * Add view action to artifacts controllerGrzegorz Bizon2016-01-141-2/+0
| | |
| | * Move build artifacts implementation to separate controllerGrzegorz Bizon2016-01-141-1/+1
| | |
| | * Add `artifacts_metadata` field to `Ci::Build`Grzegorz Bizon2016-01-141-0/+2
| | | | | | | | | | | | This will contain serialized array of files inside artifacts tarball.
* | | Merge branch 'master' into ci/api-triggersTomasz Maczukin2016-01-141-1/+5
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: Fix version Improve the consistency of commit titles, branch names, tag names, issue/MR titles, on their respective project pages Update CHANGELOG [ci skip] Add some cosmetic changes to variables API documentation [ci skip] Modify builds API documentation style [ci skip] Modify :ci_variable factory Add 'Build' prefix to Variables entry name in API docs index Fix some typos Add some fixes after review Remove blank line Update ./doc/api Change :variable_id to :key as resource ID in API Fix a typo in method description Add create feature to variables API Add missing 'not_found' checks in variables API Add delete feature to variables API Add update feature for variables API Add features for list and show details of variables in API Conflicts: doc/api/README.md lib/api/entities.rb
| * | Merge branch '8-4-stable' into ci/api-variablesTomasz Maczukin2016-01-134-17/+18
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 8-4-stable: (285 commits) Add Changelog entry for build traces data integrity fix Update doc_styleguide.md [ci skip] Added hint that you can search users by name, username, or email. Add changelog Version 8.4.0.rc1 Randomize metrics sample intervals Make the metrics sampler interval configurable Don't automatically require awesome_print Disable colorization if STDOUT is not a tty Block the reported user before destroying the record changes `$quote-gray` to `$secondary-text` makes message plural for multiple MRs and removes from loop. Duh. Prepare Installation and Update docs for 8.4 RC1 Mention channel/key bug in irkerd docs Revert "Remove the `:coffee` and `:coffeescript` Haml filters" gets merge request discussion working again adds back in discussion.haml.html for issues commenting and closing/reopening properly. removing last chunk of MR ajax changes, rest will be in another MR reverting more MR ajax files, will appear in different commit reverting MR ajax changes, which will be in a different MR ...
| * | Change :variable_id to :key as resource ID in APITomasz Maczukin2016-01-071-1/+5
| | |
| * | Add features for list and show details of variables in APITomasz Maczukin2015-12-311-0/+1
| | |
* | | Merge branch '8-4-stable' into ci/api-triggersTomasz Maczukin2016-01-144-17/+19
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 8-4-stable: (280 commits) Add Changelog entry for build traces data integrity fix Update doc_styleguide.md [ci skip] Added hint that you can search users by name, username, or email. Add changelog Version 8.4.0.rc1 Randomize metrics sample intervals Make the metrics sampler interval configurable Don't automatically require awesome_print Disable colorization if STDOUT is not a tty Block the reported user before destroying the record changes `$quote-gray` to `$secondary-text` makes message plural for multiple MRs and removes from loop. Duh. Prepare Installation and Update docs for 8.4 RC1 Mention channel/key bug in irkerd docs Revert "Remove the `:coffee` and `:coffeescript` Haml filters" gets merge request discussion working again adds back in discussion.haml.html for issues commenting and closing/reopening properly. removing last chunk of MR ajax changes, rest will be in another MR reverting more MR ajax files, will appear in different commit reverting MR ajax changes, which will be in a different MR ...
| * | Fix Error 500 when visiting build page of project with nil runners_tokenStan Hu2016-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | Properly ensure that the token exists and add defensively check for a non-nil value. Closes #4294
| * | Annotate modelsStan Hu2016-01-064-12/+16
| | |
| * | Fix project destroy callbackfix/project-destroy-callbacksGrzegorz Bizon2016-01-051-4/+2
| |/ | | | | | | See gitlab-org/gitlab-ee!107.
* | Add some fixes after reviewTomasz Maczukin2016-01-131-0/+4
|/
* Add hotfix that allows to access build artifacts created before 8.3fix/missing-ci-build-tracesGrzegorz Bizon2015-12-291-3/+34
| | | | | | | | | | | This is a temporary hotfix that allows to access build artifacts created before 8.3. See #5257. This needs to be changed after migrating CI build files. Note that `ArtifactUploader` uses `artifacts_path` to create a storage directory before and after parsisting `Ci::Build` instance, before and after moving a file to store (save and fetch a file).
* Hotfix for builds trace data integrityGrzegorz Bizon2015-12-281-1/+22
| | | | Issue #4246
* Merge branch 'issue_3452'Douwe Maan2015-12-211-0/+10
|\
| * Add link to MR from Build detail page. #3452Rubén Dávila2015-12-161-0/+10
| |
* | Merge branch 'coverage-regex' into 'master' Douwe Maan2015-12-211-1/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | Fix build coverage regex matching to allow captures. Fixes #2644 /cc @DouweM See merge request !2138
| * | Fix build coverage regex.Jared Szechy2015-12-201-1/+2
| | | | | | | | | | | | | | | | | | Added a spec for regex captures as well. Fixes #2644
| * | Fix build coverage regex matching to allow captures.Jared Szechy2015-12-171-1/+1
| |/ | | | | | | Fixes #2644
* | Don't create CI status for refs that doesn't have .gitlab-ci.yml, even if ↵Kamil Trzcinski2015-12-171-10/+0
|/ | | | the builds are enabled
* Merge branch 'master' into ux/suppress-ci-yml-warningGrzegorz Bizon2015-12-1412-496/+53
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (24 commits) Fix runners admin view Fix migrations Run builds from projects with enabled CI Use Gitlab::Git instead of Ci::Git Fix last specs Fix specs Fix after column rename Fix errors Update badge Finishing touches Fix triggers tests Rename columns and rename migrations Reimplement Trigger API Remove ci_ prefix from all ci related things Add runners token Migrate CI::Project to Project Fix indentation and BuildsEmailService Change default values Enhance migrate CI emails Fix issue tracker service ... Conflicts: spec/features/commits_spec.rb
| * Use Gitlab::Git instead of Ci::GitKamil Trzcinski2015-12-111-1/+1
| |
| * Fix after column renameKamil Trzcinski2015-12-111-2/+2
| |
| * Remove ci_ prefix from all ci related thingsKamil Trzcinski2015-12-112-2/+2
| |
| * Add runners tokenKamil Trzcinski2015-12-111-1/+1
| |
| * Migrate CI::Project to ProjectKamil Trzcinski2015-12-1110-301/+37
| |