summaryrefslogtreecommitdiff
path: root/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
|/
* Added cache:key to .gitlab-ci.yml allowing to fine tune the cachingci/cache-keyKamil Trzcinski2016-01-201-0/+8
|
* 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-1412-359/+43
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Merge branch 'ci-project-migrate' into 'master' Kamil Trzciński2015-12-1411-295/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci Project migrate - This doesn't migrate: allow_git_fetch, coverage_regex, timeout. Since this are project configuration settings I would propose to migrate them to `.gitlab-ci.yml`. - This requires offline migrations. - It simplifies database models making all CI objects to be attached to: Project. - It removes Ci::Project, but makes /ci/projects working by adding method: Project.find_by_ci_id for backward compatibility (badges, triggers). - We should add default `timeout` to Application Settings. - It misses specs. - It is based on ci-services-migrate for now. - It removes CI events. - It removes administrator CI projects overview. - It removes CI application settings. In 8.4 or 8.5 we can remove redundant tables and columns. See merge request !1987
| | * Use Gitlab::Git instead of Ci::GitKamil Trzcinski2015-12-111-5/+0
| | |
| | * Fix after column renameKamil Trzcinski2015-12-111-9/+0
| | |
| | * Remove ci_ prefix from all ci related thingsKamil Trzcinski2015-12-112-3/+3
| | |
| | * Add runners tokenKamil Trzcinski2015-12-113-6/+2
| | |
| | * Migrate CI::Project to ProjectKamil Trzcinski2015-12-118-280/+6
| | |
| * | Merge branch 'ci-services-migrate' into 'master' Kamil Trzciński2015-12-141-38/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | Ci Services migrate See merge request !1985
| | * Migrate CI::Services and CI::WebHooks to Services and WebHooksKamil Trzcinski2015-12-101-38/+0
| | |
| * | Merge branch 'complexity/rubocop-metrics' into 'master' Douwe Maan2015-12-111-26/+40
| |\ \ | | |/ | |/| | | | | | | | | | | | | | | | Enable rubocop metrics This enables rubocop metrics like CyclomaticComplexity and ABCSize. Initial threshold values are high, should be probably decreased. See merge request !1802
| | * Refactor CI YAML processor's validatorsGrzegorz Bizon2015-12-081-26/+40
| | |
* | | 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
|/ /
* | Allow [Symbol] when loading YAML Kamil Trzciński2015-12-091-2/+2
| |
* | Use YAML.safe_loadKamil Trzciński2015-12-091-2/+2
|/
* Expose artifacts pathci-artifacts-pathKamil Trzcinski2015-11-231-0/+2
|
* Merge branch 'caches' into 'master' Kamil Trzciński2015-11-121-4/+26
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow to define cache in `.gitlab-ci.yml` This extends `.gitlab-ci.yml` syntax to allow specifying caching files and directories between builds, making it easy to preserve ex. gems. ``` cache: paths: - .bundle - vendor/ before_script: - bundle install --path vendor/ rspec: script: - bundle exec rspec ``` This is based on Build Artifacts changes. /cc@dzaporozhets See merge request !1786
| * Allow to define cache in `.gitlab-ci.yml`cachesKamil Trzcinski2015-11-101-4/+26
| |
* | Merge branch 'artifacts' into 'master' Kamil Trzciński2015-11-115-3/+137
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Build Artifacts This implements #3028 1. It stores artifacts in shared/artifacts, 1. It adds `artifacts` to `.gitlab-ci.yml`, 1. We use GitLab Workhorse to offload artifacts uploading, 1. To download artifacts it uses GitLab Workhorse X-Sendfile extension, 1. There's one "artifact" per-build. The new upload removes previous one and creates a new one, 1. Default max artifact size is set to 100MB - this can be changed in settings. Missing things: 1. Support for `.gitlab-ci.yml`: `artifacts: true or git-ls-files` which will upload all non tracked files, 1. Artifacts passing between builds. GitLab Workhorse changes: https://gitlab.com/gitlab-org/gitlab-workhorse/merge_requests/5 GitLab Runner changes: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/merge_requests/46 Syntax: ``` artifacts: untracked: true # default: false paths: # default: empty - bin/files ``` See merge request !1584
| * Final fixesKamil Trzcinski2015-11-101-1/+1
| |
| * Use normal file upload mechanism to upload artifactsKamil Trzcinski2015-11-101-9/+7
| |
| * Change artifacts syntax to allow uploading untracked filesKamil Trzcinski2015-11-101-3/+13
| |
| * Implement Build ArtifactsKamil Trzcinski2015-11-105-2/+128
| | | | | | | | | | | | | | - Offloads uploading to GitLab Workhorse - Use /authorize request for fast uploading - Added backup recipes for artifacts - Support download acceleration using X-Sendfile
* | Improve Continuous Integration graphs pageDmitriy Zaporozhets2015-11-101-1/+2
|/ | | | | | | | | * fix commit duration graph * make graphs responsive * fix wrong padding * add a bit of explanation to colors Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ↵spread-runner-last-updated-atJacob Vosmaer2015-11-031-30/+34
|\ | | | | | | spread-runner-last-updated-at