summaryrefslogtreecommitdiff
path: root/app/services/ci/retry_build_service.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add config_options|variables to BuildMetadatakamil-refactor-ci-builds-v5Kamil TrzciƄski2019-01-041-1/+1
| | | | | | | | | | | These are data columns that store runtime configuration of build needed to execute it on runner and within pipeline. The definition of this data is that once used, and when no longer needed (due to retry capability) they can be freely removed. They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking support for json datatype on old enough version).
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Enable frozen string in apps/services/**/*.rbrepo-forks/gitlab-ce-frozen-string-enable-apps-services-innergfyoung2018-07-161-0/+2
| | | | | | For directories application_settings --> labels. Partially addresses #47424.
* Fix specs for retry build after making stages uniqueGrzegorz Bizon2018-01-251-1/+1
|
* Don't create build failed todo when build is retried38236-remove-build-failed-todo-if-it-has-been-auto-retriedSean McGivern2017-10-161-0/+2
| | | | | | | | | When a build is retried automatically, we close any open todos. However, we do that _before_ creating a new build failed todo. To solve this, we check if the build is retried before creating the todo. We also ensure that the build _instance_ has the correct attribute set, without needing to reload it from the database.
* Add validation for protected attributesShinya Maeda2017-09-031-1/+1
|
* Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-1/+1
| | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* Clone stage_id when retrying a CI/CD jobGrzegorz Bizon2017-06-061-1/+1
|
* Make retried to be nullableKamil Trzcinski2017-05-091-2/+2
|
* Store retried in database for CI buildsretried-in-database-mysqlKamil Trzcinski2017-05-071-3/+10
|
* Fix Rubocop offense in build retry servicefix/gb/fix-build-retry-tags-assignmentGrzegorz Bizon2017-03-021-1/+1
|
* Move unused consts from retry build service to specsGrzegorz Bizon2017-03-021-13/+1
|
* Fix runner tags assignment when retrying a jobGrzegorz Bizon2017-03-011-14/+17
|
* We actually want to clone project and remove gl_project_idfix-test-for-build-attributesLin Jen-Shin2017-02-211-2/+2
| | | | | | in the future. Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9409#note_23859361
* Fix build attributes test, see:Lin Jen-Shin2017-02-211-3/+4
| | | | | | | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9021#note_23782188 This is discovered by https://gitlab.com/gitlab-org/gitlab-ce/builds/10815456 I removed `gl_project_id` and this is failing. I took some look, realizing that: * `trace` is duplicated in `attributes` * `tag_list` is not included in `build.attributes` * `artifacts_expire_at` is missing in `attributes` So we need to: * Remove duplicated `trace` in `attributes` (40 -> 39) * Remove `tag_list` in `attributes` (39 -> 38) * Add `artifacts_expire_at` to `attributes` (38 -> 39) * Add `gl_project_id` to `attributes` (39 -> 40)
* Make build clone/retry implementation more robustfix/gb/pipeline-retry-builds-startedGrzegorz Bizon2017-02-161-18/+20
|
* When retrying a build copy a coverage regex settingGrzegorz Bizon2017-02-151-0/+1
|
* Close all pipeline todos at once when retrying itGrzegorz Bizon2017-02-151-1/+1
|
* Avoid race condition in build retry serviceGrzegorz Bizon2017-02-141-3/+2
|
* Simplify implementation of build retry serviceGrzegorz Bizon2017-02-141-8/+2
|
* Use new pipeline retry service with optimistic lockingGrzegorz Bizon2017-02-141-0/+2
|
* Preserve base service abstraction for retry servicesGrzegorz Bizon2017-02-141-32/+29
|
* Implement new pipeline retry serviceGrzegorz Bizon2017-02-131-7/+5
| | | | The new service takes stages order into account.
* Add specs for build retry serviceGrzegorz Bizon2017-02-131-0/+6
|
* Extract CI/CD build retry code to separate serviceGrzegorz Bizon2017-02-131-0/+43