summaryrefslogtreecommitdiff
path: root/lib/ci/api
Commit message (Collapse)AuthorAgeFilesLines
* Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-1/+0
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
* Prefer Ci::Build#erase_artifacts!Lin Jen-Shin2016-06-281-2/+1
|
* Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-1/+1
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
* Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-0/+1
| | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2016-06-172-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | feature/runner-lock-on-project * upstream/master: (337 commits) Update CHANGELOG for !4659 Center the header logo for all Devise emails Add previews for all customized Devise emails Customize the Devise `unlock_instructions` email Customize the Devise `reset_password_instructions` email Customize the Devise `password_change` emails Use gitlab-git 10.2.0 Use Git cached counters on project show page Fix indentation scss-lint errors Added title attribute to enties in tree view Closes #18353 Banzai::Filter::ExternalLinkFilter use XPath Reduce queries in IssueReferenceFilter Use gitlab_git 10.1.4 Fixed ordering in Project.find_with_namespace Fix images in emails Banzai::Filter::UploadLinkFilter use XPath Turn Group#owners into a has_many association Make project_id nullable CHANGELOG [ci skip] CHANGELOG [ci skip] ...
| * Improve design based on reviewKamil Trzcinski2016-06-131-2/+2
| |
| * Support expiration date in CI API when uploading artifactsKamil Trzcinski2016-06-132-1/+2
| |
| * Allow to expire build artifactsKamil Trzcinski2016-06-131-0/+2
| |
* | Merge branch 'master' into feature/runner-lock-on-projectLin Jen-Shin2016-06-141-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (147 commits) Update CHANGELOG Remove deprecated issues_tracker and issues_tracker_id from project Schema doesn’t reflect the changes of the last 3 migrations 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 Move logs/logs.md to administration/logs.md Make "four phase test" Only show branches for revert / cherry-pick Instrument all Banzai::ReferenceParser classes Removed old comment from update_column_in_batches Update columns in batches until no rows are left Remove counters from Pipeline navigation Handle NULL migration errors in migration helpers Fix typo causing related branches to Error 500 Improved SVG sanitizer specs to include smoke tests for clean. Refactored SVG sanitizer Added SVG sanitizer fix to the changelog ...
| * Fix expose of TriggerRequestKamil Trzcinski2016-06-101-1/+1
| |
| * Fix CI TriggerRequest entityrename-ci-commit-phase-4Kamil Trzcinski2016-06-091-1/+1
| |
* | Prefer attributes_for_keys so that it ignores nilsLin Jen-Shin2016-06-091-7/+3
| | | | | | | | Also add a test for setting locked.
* | WIP, try to add views for locked runnersLin Jen-Shin2016-06-091-1/+2
|/
* Add minor corrections related to config of runnerGrzegorz Bizon2016-05-191-1/+1
|
* Improve setting default runner attrs when using APIGrzegorz Bizon2016-05-191-2/+5
|
* Set run untagged option when registering a runnerGrzegorz Bizon2016-05-191-9/+6
|
* 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 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
|
* 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
|
* 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
|/
* 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.
* Modify artifacts upload API endpoint, add artifacts metadataGrzegorz Bizon2016-01-142-4/+17
|
* Use method that creates runners registration tokenGrzegorz Bizon2015-12-231-1/+1
| | | | `runners_registration_token` now creates a new token if it is blank.
* Merge branch 'master' into ci/persist-registration-tokenGrzegorz Bizon2015-12-147-289/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (66 commits) Fix runners admin view Fix migrations Rename mention of gitlab-git-http-server to gitlab-workhorse Bump Redis requirement to 2.8 for Sidekiq 4 requirements Fix wording on runner setup page add details on how to change saml button label Fix tests Move awards back to gray panel and few improvements to sidebar Few UI improvements to new sidebar implementation Fix tests for new issuable sidebar Update changelog Implement new sidebar for merge request page Make edit link on issuable sidebar works Redesign issue page for new sidebar Move awards css to separate file Implement issuable sidebar partial Update CHANGELOG Clarify cache behavior Run builds from projects with enabled CI Use Gitlab::Git instead of Ci::Git ... Conflicts: db/schema.rb
| * Fix after column renameKamil Trzcinski2015-12-111-9/+0
| |
| * Remove ci_ prefix from all ci related thingsKamil Trzcinski2015-12-111-1/+1
| |
| * Add runners tokenKamil Trzcinski2015-12-113-6/+2
| |
| * Migrate CI::Project to ProjectKamil Trzcinski2015-12-115-239/+3
| |
| * Migrate CI::Services and CI::WebHooks to Services and WebHooksKamil Trzcinski2015-12-101-38/+0
| |
* | Ensure that runners registration token is presentGrzegorz Bizon2015-12-111-1/+1
| |
* | Use new runners registration token to register CI runnersGrzegorz Bizon2015-12-112-2/+6
|/
* Expose artifacts pathci-artifacts-pathKamil Trzcinski2015-11-231-0/+2
|
* Final fixesKamil Trzcinski2015-11-101-1/+1
|
* Use normal file upload mechanism to upload artifactsKamil Trzcinski2015-11-101-9/+7
|
* Implement Build ArtifactsKamil Trzcinski2015-11-104-0/+121
| | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* Spread out runner contacted_at updatesJacob Vosmaer2015-11-021-1/+3
|
* Fix API::APIHelpers -> API::Helpers;Jason Lee2015-10-231-1/+1
| | | | Rails Autoload find file to require is use , APIHelpers -> api_helpers.rb, not helpers.rb;