summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Added TriggerController specsbuild-triggersKamil Trzcinski2015-08-211-0/+26
|
* Fix specsKamil Trzcinski2015-08-211-1/+2
|
* Retrigger builds with [ci skip]Kamil Trzcinski2015-08-211-0/+15
|
* Added CreateTriggerRequestService specsKamil Trzcinski2015-08-212-0/+61
|
* Create specs for build triggersKamil Trzcinski2015-08-216-10/+191
|
* Initial support for build triggersKamil Trzcinski2015-08-217-57/+105
|
* Add committed_at to commits to properly order last commit (the force push issue)Kamil Trzcinski2015-08-211-2/+2
|
* Make the YAML validation more stricteryaml-validationKamil Trzcinski2015-08-191-4/+11
| | | | | - deny all globals that are not hases and doesn't contain script, the script is required now - verify that script is either string or array of an strings
* Prefer `failed` commit status over `skipped` if no builds were createdbroken-yaml-errorsKamil Trzcinski2015-08-061-0/+13
|
* Fix broken yaml error savingKamil Trzcinski2015-08-061-0/+15
|
* Merge branch 'yaml-variables' into 'master' Kamil Trzciński2015-08-053-2/+39
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Added support for YAML-defined variablesKamil Trzcinski2015-08-053-2/+39
| |
* | Merge branch 'service-testing' into 'master' Kamil Trzciński2015-08-051-24/+2
|\ \ | |/ |/| | | | | | | | | | | | | | | | | 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 service testingKamil Trzcinski2015-08-031-24/+2
| |
* | Fix specsKamil Trzcinski2015-08-051-2/+2
| |
* | Merge branch 'skipped_commit' into 'master' Kamil Trzciński2015-08-051-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Fixed specsKamil Trzcinski2015-08-051-1/+1
| | |
| * | Commits with [ci skip] have special skipped statusKamil Trzcinski2015-08-051-0/+1
| | |
* | | Fix specsKamil Trzcinski2015-08-031-14/+14
| | |
* | | Rename all occurrences of type to stageKamil Trzcinski2015-08-031-14/+14
|/ /
* | Use avatars from GitLabKamil Trzcinski2015-08-032-54/+49
| | | | | | | | Rewrite Gravatar URLs if needed in order to have images in different size
* | Make YAML validation stricterKamil Trzcinski2015-08-031-2/+2
|/
* Fix: user could steal specific runnerKamil Trzcinski2015-07-221-4/+16
| | | | | | - 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
* port version matching code in upgrader lib from gitlabWarren Volz2015-07-171-5/+18
| | | | | | | - fixes upgrader script not working with v7.1x versions - rspec test cases from gitlab for upgrader lib - rename gitlab to gitlabci - use real data for gitlabci3 version check
* Merge branch 'build-types' into 'master'Kamil Trzciński2015-07-134-94/+93
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Allow to specify flexible list of types in yamlKamil Trzcinski2015-07-104-94/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ``` 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.
* | Fix annotationsKamil Trzcinski2015-07-131-1/+1
| |
* | Added specsKamil Trzcinski2015-07-131-0/+44
|/
* Fixed specsKamil Trzcinski2015-07-101-4/+11
|
* Merge branch 'builds-path' into 'master'Kamil Trzciński2015-07-091-3/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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-3/+7
| |
* | Merge branch 'secure-oauth-state' into 'master'Kamil Trzciński2015-07-091-0/+69
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added random salt and hashing to oauth state parameter This ensures signs state parameter. The generated state is built like this: ``` salt = random_hex(16bytes) secret = sha256_hex(gitlab_ci_secret + salt + return_to) state = "salt:secret:return_to" ``` This prevents from faking the state and forcing redirect to provided URL. However this doesn't prevent replay attacks if you know the valid `state` parameter for specific `return_to`. Should we be concerned about it? /cc @vsizov @jacobvosmaer See merge request !192
| * | Fix invalid spec for generate_oauth_hmacsecure-oauth-stateKamil Trzcinski2015-07-081-2/+2
| | |
| * | Don't use return_to, but instead pass state with signed return_to parameterKamil Trzcinski2015-07-081-23/+23
| | |
| * | Added random salt and hashing to oauth state parameterKamil Trzcinski2015-07-081-0/+69
| | | | | | | | | | | | This ensures that content of state is generated by CI, but doesn't prevent replay attacks on state parameter.
* | | Merge branch 'allow-per-job-failure' into 'master'Kamil Trzciński2015-07-087-55/+103
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-087-55/+103
| |/ | | | | | | 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/+12
|\ \ | |/ |/| | | | | | | | | | | Build trace in file https://dev.gitlab.org/gitlab/gitlab-ci/issues/272 See merge request !167
| * spec minor fixtrace_in_fileValery Sizov2015-06-261-0/+0
| |
| * build trace in fileValery Sizov2015-06-251-0/+12
| |
* | Update annotationsannotationsKamil Trzcinski2015-07-069-20/+56
| |
* | Added annotationsKamil Trzcinski2015-07-062-0/+2
| |
* | Added support for image and servicesKamil Trzcinski2015-07-065-5/+133
| |
* | Get rid of private message usageoauth_everywhereValery Sizov2015-07-023-8/+6
| |
* | Rounded coverage on commit pageValery Sizov2015-07-011-2/+2
| |
* | Enhance YAML validationKamil Trzcinski2015-06-301-2/+9
| |
* | Improved validation of .gitlab-ci.ymlValery Sizov2015-06-294-5/+12
| |
* | fix list of branches in only sectionValery Sizov2015-06-291-0/+11
| |
* | fix coverage calculation on commit pageValery Sizov2015-06-261-0/+23
|/
* cleaning up specsValery Sizov2015-06-251-2/+0
|