summaryrefslogtreecommitdiff
path: root/app/models/ci/build.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename BUILD to JOB in CI Variableszj-variables-build-jobZ.J. van de Weg2017-03-071-7/+30
| | | | | | | | Given GitLab moves away from using the term build, everywhere, also the CI variables are being renamed. For now, both `CI_BUILD_X` and `CI_JOB_X` are supported, with the same values. However, in about 3 months, support will be dropped.
* Remove unused method that describes blocking jobGrzegorz Bizon2017-03-061-4/+0
|
* Reinstitute a core `manual` status for manual actionsGrzegorz Bizon2017-03-061-7/+7
|
* Fix Rubocop offense in CI/CD build state machineGrzegorz Bizon2017-03-061-1/+1
|
* Refactor code related to pipeline blocking actionsGrzegorz Bizon2017-03-061-5/+14
|
* Fix lambda operatorKamil Trzcinski2017-03-061-1/+1
|
* Make manual actions blockingKamil Trzcinski2017-03-061-5/+9
|
* Remove unused method from CI/CD build classfix/gb/remove-unused-method-from-buildGrzegorz Bizon2017-03-011-9/+0
|
* Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-02-241-6/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 27762-add-default-artifacts-expiration * upstream/master: (247 commits) Switched CONTRIBUTING.md style guide recommendation for method chaining Fix new offenses Stylistic tweaks Fix OAuth/SAML user blocking behavior Revert "Enable Style/DotPosition" Revert "Prefer leading style for Style/DotPosition" Revert "Enable Style/BarePercentLiterals" Manually correct autocorrect Move up delegate calls Exclude migrations from Style/MutableConstant ActiveSupport delegation is preferred over Forwardable Update haml_lint to work with newest rubocop Add explanations to cops Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml Update rubocop and rubocop-rspec and regenerate .rubocop_todo.yml Order cops alphabetically Don’t exclude some file in lib from rubocop Fix new offenses Enable Rails/Delegate Enable Style/WordArray ...
| * Revert "Enable Style/DotPosition"Douwe Maan2017-02-231-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9. # Conflicts: # .rubocop.yml # .rubocop_todo.yml # lib/gitlab/ci/config/entry/global.rb # lib/gitlab/ci/config/entry/jobs.rb # spec/lib/gitlab/ci/config/entry/factory_spec.rb # spec/lib/gitlab/ci/config/entry/global_spec.rb # spec/lib/gitlab/ci/config/entry/job_spec.rb # spec/lib/gitlab/ci/status/build/factory_spec.rb # spec/lib/gitlab/incoming_email_spec.rb
| * Revert "Prefer leading style for Style/DotPosition"Douwe Maan2017-02-231-11/+11
| | | | | | | | This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
| * Move up delegate callsDouwe Maan2017-02-231-2/+2
| |
| * Enable Rails/DelegateDouwe Maan2017-02-231-3/+1
| |
| * Enable Style/ClassCheckDouwe Maan2017-02-231-1/+1
| |
| * Prefer leading style for Style/DotPositionDouwe Maan2017-02-231-11/+11
| |
| * Enable Rails/ValidationDouwe Maan2017-02-231-1/+1
| |
| * Enable Style/DotPositionDouwe Maan2017-02-231-9/+9
| |
* | Merge remote-tracking branch 'upstream/master' into ↵Lin Jen-Shin2017-02-211-28/+5
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 27762-add-default-artifacts-expiration * upstream/master: (234 commits) Improve performance of User Agent Detail Fix some grammar in the API docs Remove shared example for pagination API: Use POST to (un)block a user API: Moved `DELETE /projects/:id/star` to `POST /projects/:id/unstar` Use grape validation for dates Change wording for LDAP doc that was moved to a new location API: Remove `DELETE projects/:id/deploy_keys/:key_id/disable` Download snippets with LF line-endings by default utilize pre-minified Vue in production since no CJS distribution is available Prevent project team from being truncated too early during project destruction loading icon sometimes toggled alongside MR pipeline contents fix failed spec because haml_lint fix incorrect sidekiq concurrency count in admin background page exclude rpc_pipefs from system disc info Fix wrong line ending [ci-skip] fix overlooked window binding in spec files remove imports loader replace implicit this == window with explicit binding Todo done clicking is kind of unusable. ...
| * Preserve base service abstraction for retry servicesGrzegorz Bizon2017-02-141-1/+3
| |
| * Fix CI build specs after adding retry ability checkGrzegorz Bizon2017-02-131-3/+3
| |
| * Extract CI/CD build retry code to separate serviceGrzegorz Bizon2017-02-131-26/+1
| |
* | 0 for unlimited, disallow blank, feedback:Lin Jen-Shin2017-02-161-1/+1
| | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/issues/27762#note_23520780
* | Use the same syntax for default expirationLin Jen-Shin2017-02-151-12/+0
| | | | | | | | | | | | | | | | Feedback: * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23343951 * https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23344036 * https://gitlab.com/gitlab-org/gitlab-ce/issues/27762#note_23344797
* | ApplicationSetting.current doesn't work well in testsLin Jen-Shin2017-02-151-1/+2
| | | | | | | | | | | | | | Therefore we prefer `Gitlab::CurrentSettings.current_application_settings` and fix the tests by setting default_artifacts_expire_in to 0 to restore the original behaviour.
* | Initial implementation for default artifacts expirationLin Jen-Shin2017-02-151-0/+11
|/ | | | TODO: Add tests and screenshots
* Merge branch 'feature/gb/paginated-environments-api' into 'master'Rémy Coutable2017-02-081-1/+1
|\ | | | | | | | | Expose paginated environments list API endpoint See merge request !8928
| * Merge branch 'master' into feature/gb/paginated-environments-apiFilipa Lacerda2017-02-071-5/+19
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (301 commits) added missed commit in rebase update Grape routes to work with current version of Grape adds changelog fixes cursor issue on pipeline pagination Use random group name to prevent conflicts List all groups/projects for admins on explore pages Fix indentation More backport Fix filtered search user autocomplete for gitlab instances that are hosted on a subdirectory Fixed variables_controller_spec.rb test Backport of the frontend view, including tests Updated the #create action to render the show view in case of a form error Improved code styling on the variables_controller_spec Added tests for the variables controller #update action Added a variable_controller_spec test to test for flash messages on the #create action Modified redirection logic in the variables cont. Added redirections to the index actions for the variables and triggers controllers Added a flash message to the creation of triggers Fixed tests, renamed files and methods Changed the controller/route name to 'ci/cd' and renamed the corresponding files ...
| * | Rename `Gitlab::Serialize` module to reuse it laterGrzegorz Bizon2017-02-061-1/+1
| | |
* | | Merge branch 'route-map' into 'master' Robert Speicher2017-02-071-4/+1
|\ \ \ | |_|/ |/| | | | | | | | Add 'View on [env]' link to blobs and individual files in diffs See merge request !8867
| * | Improve performance of finding last deployed environmentDouwe Maan2017-02-061-4/+1
| | |
* | | Merge branch 'fix-deleting-project-again' into 'master' Douwe Maan2017-02-061-4/+17
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Skip or retain project while deleting the project: Closes #15005 See merge request !8960
| * | Skip or retain project while deleting the project:Lin Jen-Shin2017-02-031-4/+17
| |/ | | | | | | | | | | | | | | | | | | | | * Skip Ci::Build#update_project_statistics whenever there's no project (i.e. we're deleting the project!) * Retain the unscoped_project before deleting the build, so that we could use the data to delete the artifacts. Note that carrierwave uses `after_commit` for this, so we need to retain it in the memory. Closes #15005
* | Merge branch 'master' into jej-pages-picked-from-eeJames Edwards-Jones2017-02-031-17/+15
|\ \ | |/
| * Be more lenient on build coverage value updates and fix specsLeandro Camargo2017-01-251-1/+1
| |
| * Make more code improvements around the '/' stripping logicLeandro Camargo2017-01-251-22/+13
| |
| * Improve/polish code logic for some Ci::Build methodsLeandro Camargo2017-01-251-4/+4
| |
| * Force coverage value to always be surrounded by '/'Leandro Camargo2017-01-251-3/+7
| |
| * Comply to more requirements and requests made in the code reviewLeandro Camargo2017-01-251-1/+1
| |
| * Comply to requests made in the review and adjust to the Entry/Node changesLeandro Camargo2017-01-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit: * Turns `coverage_regex` into `coverage` entry in yml file * Fixes smaller requests from code reviewers for the previous commit * This commit is temporary (will be squashed afterwards) This commit does not (further commits will do though): * Add global `coverage` entry handling in yml file as suggested by Grzegorz * Add specs * Create changelog * Create docs
| * Add ability to define a coverage regex in the .gitlab-ci.ymlLeandro Camargo2017-01-251-2/+5
| | | | | | | | * Instead of using the proposed `coverage` key, this expects `coverage_regex`
* | Move most of PagesWorker logic UpdatePagesServiceKamil Trzcinski2017-01-311-1/+1
| |
* | Add GitLab PagesKamil Trzcinski2017-01-311-1/+2
|/ | | | | | | | | | | | | | | | - The pages are created when build artifacts for `pages` job are uploaded - Pages serve the content under: http://group.pages.domain.com/project - Pages can be used to serve the group page, special project named as host: group.pages.domain.com - User can provide own 403 and 404 error pages by creating 403.html and 404.html in group page project - Pages can be explicitly removed from the project by clicking Remove Pages in Project Settings - The size of pages is limited by Application Setting: max pages size, which limits the maximum size of unpacked archive (default: 100MB) - The public/ is extracted from artifacts and content is served as static pages - Pages asynchronous worker use `dd` to limit the unpacked tar size - Pages needs to be explicitly enabled and domain needs to be specified in gitlab.yml - Pages are part of backups - Pages notify the deployment status using Commit Status API - Pages use a new sidekiq queue: pages - Pages use a separate nginx config which needs to be explicitly added
* Merge remote-tracking branch 'origin/master' into 21698-redis-runner-last-buildKamil Trzcinski2017-01-191-0/+1
|\
| * Add Presentable concernRémy Coutable2017-01-181-0/+1
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge remote-tracking branch 'origin/master' into 21698-redis-runner-last-buildKamil Trzcinski2017-01-191-6/+56
|\ \ | |/
| * Add method that checks for expiring build artifactsGrzegorz Bizon2017-01-091-0/+4
| |
| * Add more storage statisticsMarkus Koller2016-12-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | This adds counters for build artifacts and LFS objects, and moves the preexisting repository_size and commit_count from the projects table into a new project_statistics table. The counters are displayed in the administration area for projects and groups, and also available through the API for admins (on */all) and normal users (on */owned) The statistics are updated through ProjectCacheWorker, which can now do more granular updates with the new :statistics argument.
| * Merge branch 'master' into fix-yaml-variablesLin Jen-Shin2016-12-191-3/+32
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (327 commits) Always use `fixture_file_upload` helper to upload files in tests. Add CHANGELOG Move admin application spinach test to rspec Move admin deploy keys spinach test to rspec Fix rubocop failures Store mattermost_url in settings Improve Mattermost Session specs Ensure the session is destroyed Improve session tests Setup mattermost session Fix query in Projects::ProjectMembersController to fetch members Improve test for sort dropdown on members page Fix sort dropdown alignment Undo changes on members search button stylesheet Use factories to create project/group membership on specs Remove unused id from shared members sort dropdown Fix sort functionality on project/group members to return invited users Refactor MembersHelper#filter_group_project_member_path Remove unnecessary curly braces from sort dropdown partial Sort group/project members alphabetically by default ...
| | * Pass variables from deployment project services to CI runnerexpose-deployment-variablesAdam Niedzielski2016-12-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces the concept of deployment variables - variables that are collected from deployment services and passed to CI runner during a deployment build. Deployment services specify the variables by overriding "predefined_variables" method. This commit also configures variables for KubernetesService
| | * Add $CI_ENVIRONMENT_NAME and $CI_ENVIRONMENT_SLUGNick Thomas2016-12-151-2/+18
| | |