summaryrefslogtreecommitdiff
path: root/app/models
Commit message (Collapse)AuthorAgeFilesLines
* Fix commits ordering when using PostgreSQLfix-commits-ordering-for-postgresqlKamil Trzcinski2015-08-261-1/+1
|
* Order commits by committed_at and idKamil Trzcinski2015-08-241-1/+1
| | | | This needs to be done that way, because the committed_at can be null for some pretty old commits.
* Merge branch 'build-triggers' into 'master'Robert Speicher2015-08-216-44/+121
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement build trigger API This commit implements Build Triggers. There are changes to API request: - Due to security advised method to pass trigger token is to use form data - Advised method to pass variables is to use form data TODO: - [x] Implement API - [x] Implement UI - [x] Dimitriy and Valery review - [x] Write specs - [x] Write documentation - [x] Job documentation review See merge request !229
| * Added TriggerController specsbuild-triggersKamil Trzcinski2015-08-211-1/+1
| |
| * Retrigger builds with [ci skip]Kamil Trzcinski2015-08-211-3/+4
| |
| * Initial support for build triggersKamil Trzcinski2015-08-215-36/+108
| |
| * Add committed_at to commits to properly order last commit (the force push issue)Kamil Trzcinski2015-08-213-5/+9
| |
* | Fix problem with variables savingKamil Trzcinski2015-08-211-1/+1
|/
* Merge branch 'variable-fix' into 'master'Robert Speicher2015-08-191-0/+3
|\ | | | | | | | | | | Require the variable key to be set and unique See merge request !234
| * Require the variable key to be set and uniquevariable-fixKamil Trzcinski2015-08-191-0/+3
| |
* | Add missing stage when doing retry on a buildKamil Trzcinski2015-08-191-0/+1
|/
* Prefer `failed` commit status over `skipped` if no builds were createdbroken-yaml-errorsKamil Trzcinski2015-08-061-7/+5
|
* Fix broken yaml error savingKamil Trzcinski2015-08-061-1/+1
|
* Merge branch 'yaml-variables' into 'master' Kamil Trzciński2015-08-051-1/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support yaml variables This MR introduces ability to define variables from YAML. ```yaml variables: DB_NAME: postgres test: script: echo $DB_NAME ``` The variables are passed using the same API as Secure Variables. The API introduces additional parameter: public. All variables defined in YAML are marked as public. The GitLab Runner when detects public variables will pass them to the services. This makes it easy to fine tune linked services to for example define database name. ```yaml services: - postgres variables: POSTGRES_DB: gitlab ``` The above example will run [postgres](https://registry.hub.docker.com/u/library/postgres/) and pass POSTGRES_DB to postgres container making it to create `gitlab` database instead of default `postges`. **Note:** All variables will passed to all service containers. It's not designed to distinguish which variable should go where. /cc @sytses @vsizov @dzaporozhets See merge request !227
| * Satisfy rubocopKamil Trzcinski2015-08-051-2/+2
| |
| * Added support for YAML-defined variablesKamil Trzcinski2015-08-051-1/+19
| |
* | Merge branch 'service-testing' into 'master' Kamil Trzciński2015-08-055-45/+41
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Fix service testing Fixes: - https://gitlab.com/gitlab-org/gitlab-ci/issues/248 - https://gitlab.com/gitlab-org/gitlab-ci/issues/208 /cc @vsizov See merge request !221
| * Fix rubocopservice-testingKamil Trzcinski2015-08-033-18/+18
| |
| * Fix service testingKamil Trzcinski2015-08-035-45/+41
| |
* | Merge branch 'skipped_commit' into 'master' Kamil Trzciński2015-08-051-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commits with [ci skip] have special skipped status ![Screen_Shot_2015-07-30_at_14.02.50](https://gitlab.com/gitlab-org/gitlab-ci/uploads/f200af385679b564cd15d730bd4ccd20/Screen_Shot_2015-07-30_at_14.02.50.png) + Commits with [ci skip] are marked as skipped + Commits without builds are marked as skipped Resolution for: + https://dev.gitlab.org/gitlab/gitlab-ci/issues/264 + https://dev.gitlab.org/gitlab/gitlab-ci/issues/266 This requires CE update: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/1073 /cc @vsizov @sytses See merge request !216
| * | Commits without builds are marked as skippedKamil Trzcinski2015-08-051-1/+1
| | |
| * | Commits with [ci skip] have special skipped statusKamil Trzcinski2015-08-051-0/+4
| | |
* | | Merge branch 'rename-type-to-stage' into 'master' Kamil Trzciński2015-08-051-13/+13
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | Rename type to stage However, make the `type` and `types` as alias for `stage` and `stages`. /cc @vsizov @sytses See merge request !222
| * | Rename create_builds_for_type to create_builds_for_stage in Commit modelKamil Trzcinski2015-08-051-3/+3
| | |
| * | Rename all occurrences of type to stageKamil Trzcinski2015-08-031-13/+13
| | |
* | | Fix broken specsaccess-token-apiKamil Trzcinski2015-08-041-1/+1
| | |
* | | Refactor GitLab API usage to use either access_token or private_tokenKamil Trzcinski2015-08-043-19/+18
|/ /
* | Fix broken specsuser-avatarKamil Trzcinski2015-08-031-0/+4
|/
* Fix specsKamil Trzcinski2015-07-301-1/+2
|
* Added Application SettingsKamil Trzcinski2015-07-302-7/+33
|
* Don't send notifications for jobs with allow_failure setKamil Trzcinski2015-07-294-0/+7
|
* Fix: user could steal specific runnerKamil Trzcinski2015-07-221-1/+4
| | | | | | - check if user has manage access to project - don't cache result of authorized_projects, because it's serialised with User object - clear user sessions
* Merge branch 'build-types' into 'master'Kamil Trzciński2015-07-132-38/+50
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow to specify flexible list of types in yaml First part of flexible pipeline build in GitLab CI Having following `.gitlab-ci.yml`: ``` types: - test - deploy - notify rspec: script: "rspec" rubocop: script: "rubocop" staging: type: deploy script: "echo deploy" only: - master production: type: deploy script: "echo production" only: - tags dockerhub: type: notify script: "curl http://docker/hub/web/hook" downstream: type: notify script: "curl http://build/downstream/jobs" ``` GitLab CI will trigger two test jobs in parallel, when finished it will trigged either staging or production, when finished it will trigger dockerhub and downstream in parallel. The UI (screenshots are not for above YAML): ![Screen_Shot_2015-07-10_at_15.56.26](https://gitlab.com/gitlab-org/gitlab-ci/uploads/1f714b73772cf0d44168fb8e20e35561/Screen_Shot_2015-07-10_at_15.56.26.png) ![Screen_Shot_2015-07-10_at_15.57.19](https://gitlab.com/gitlab-org/gitlab-ci/uploads/fc9f458f2ca517d923a4382466fa99eb/Screen_Shot_2015-07-10_at_15.57.19.png) TODO: - [x] Implement in CI - [x] Specs - [x] Changelog - [x] CI tests - [ ] Documentation /cc @vsizov @sytses @dzaporozhets See merge request !198
| * Fix specsbuild-typesKamil Trzcinski2015-07-101-6/+10
| |
| * Allow to specify flexible list of types in yamlKamil Trzcinski2015-07-102-41/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` types: - test - deploy - notify rspec: script: "rspec" rubocop: script: "rubocop" staging: type: deploy script: "echo deploy" only: - master production: type: deploy script: "echo production" only: - tags dockerhub: type: notify script: "curl http://docker/hub/web/hook" downstream: type: notify script: "curl http://build/downstream/jobs" ``` This will trigger two test jobs in parallel, when finished it will trigged either staging or production, when finished it will trigger dockerhub and downstream in parallel.
* | Use secrets.db_key_base instead of config.secret_key_baseKamil Trzcinski2015-07-131-1/+1
| |
* | Fix annotationsKamil Trzcinski2015-07-131-1/+1
| |
* | Encrypt variables with attr_encryptedKamil Trzcinski2015-07-131-4/+9
|/
* Use builds_without_retry to calculate average coveragecoverage-calcKamil Trzcinski2015-07-101-2/+2
|
* Merge branch 'builds-path' into 'master'Kamil Trzciński2015-07-091-6/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Make configurable builds_path in application.yml We have a new option in `application.yml`: ``` gitlab_ci: builds_path: builds/ ``` /cc @marin @vsizov See merge request !193
| * Make configurable builds_path in application.ymlbuilds-pathKamil Trzcinski2015-07-081-6/+2
| |
* | Merge branch 'allow-per-job-failure' into 'master'Kamil Trzciński2015-07-082-18/+26
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow to define per-job allow_failure parameter It allows to ignore status of specific build when computing status for commit YAML syntax: ```yaml rspec: script: aa allow_failure: true ``` ![Screen_Shot_2015-07-08_at_11.28.53](https://gitlab.com/gitlab-org/gitlab-ci/uploads/0af264f026cac18921aef339bcf41fe2/Screen_Shot_2015-07-08_at_11.28.53.png) /cc @vsizov @sytses See merge request !191
| * Allow to defined per-job allow_failure parameterallow-per-job-failureKamil Trzcinski2015-07-082-18/+26
| | | | | | | | It allows to ignore status of specific job when computed for commit
* | Merge branch 'trace_in_file' into 'master'Kamil Trzciński2015-07-081-0/+33
|\ \ | |/ |/| | | | | | | | | | | Build trace in file https://dev.gitlab.org/gitlab/gitlab-ci/issues/272 See merge request !167
| * build trace in fileValery Sizov2015-06-251-0/+33
| |
* | Update annotationsannotationsKamil Trzcinski2015-07-065-9/+30
| |
* | Added annotationsKamil Trzcinski2015-07-061-0/+1
| |
* | Added support for image and servicesKamil Trzcinski2015-07-062-1/+6
| |
* | Get rid of private message usageoauth_everywhereValery Sizov2015-07-024-37/+19
| |
* | Rounded coverage on commit pageValery Sizov2015-07-011-1/+1
| |