Commit Graph

246 Commits

Author SHA1 Message Date
Grzegorz Bizon 1476bb2c54 Improve how we calculate detailed status group name 2016-12-16 20:03:44 +01:00
Grzegorz Bizon b18897ac40 Update status group name for success with warnings 2016-12-16 20:03:44 +01:00
Grzegorz Bizon 1b313e8db8 Make CI/CD detailed status group concept explicit 2016-12-16 20:03:44 +01:00
Grzegorz Bizon 84290a452d Make it possible to mix `Gitlab::Routing` in 2016-12-13 14:51:23 +01:00
Grzegorz Bizon 00970606d7 Extract abilities checking module from ability model 2016-12-13 14:44:43 +01:00
Grzegorz Bizon 48d43608b8 Refine build stop/play extended status specs 2016-12-13 12:27:01 +01:00
Grzegorz Bizon 2011f8f1c2 Use manual build icon in play/stop build statuses 2016-12-13 11:53:36 +01:00
Grzegorz Bizon ab37be2dda Add specs for build stop extended detailed status 2016-12-12 14:59:46 +01:00
Grzegorz Bizon ffafd09731 Fix build stop extended status CSS class 2016-12-12 14:14:35 +01:00
Grzegorz Bizon d60820146f Fix path to build status details in common helpers 2016-12-12 13:28:20 +01:00
Kamil Trzcinski d9a979c84f Add action_class/action_title 2016-12-12 12:59:02 +01:00
Kamil Trzcinski 980009e6e8 Fix auto loading of constants for Ci Statuses 2016-12-12 12:59:01 +01:00
Grzegorz Bizon f0cd73bfad Fix some detailed statuses specs related to abilities 2016-12-12 12:59:01 +01:00
Grzegorz Bizon 5059d0b834 Incorporate permission checks into new CI statuses
[ci skip]
2016-12-12 12:59:01 +01:00
Grzegorz Bizon e0ce97fb7d Refactor ci status factories to DRY code a little 2016-12-12 12:59:01 +01:00
Kamil Trzcinski a83a80edb3 Check permission of details 2016-12-12 12:59:01 +01:00
Kamil Trzcinski 1b6c2c3c0a Introduce `cancelable` and `returnable` [ci skip] 2016-12-12 12:59:01 +01:00
Kamil Trzcinski 516dc7a5be Improve actions 2016-12-12 12:59:01 +01:00
Kamil Trzcinski 633e64382d Added Ci::Status::Build 2016-12-12 12:59:01 +01:00
Kamil Trzcinski 93c72e0f71 Add Ci::Status::Factory 2016-12-07 13:14:45 +01:00
Kamil Trzcinski 13cee6d7fc Fix test failures 2016-12-06 14:13:21 +01:00
Kamil Trzcinski 10499677e2 Added Stage tests 2016-12-06 14:13:21 +01:00
Kamil Trzcinski d47aef58cd Add Ci::Status::Stage 2016-12-06 14:13:21 +01:00
Grzegorz Bizon e94f378b61 Improve support for icons in new detailed statuses 2016-12-06 12:16:52 +01:00
Grzegorz Bizon bdc13c3142 Untangle status label and text in ci status helper 2016-12-06 11:22:31 +01:00
Grzegorz Bizon d28f5e776b Implement pipeline status factory with extended status 2016-12-05 12:07:14 +01:00
Grzegorz Bizon b86d8afe23 Fold core/extended status modules to reduce nesting 2016-12-05 11:35:27 +01:00
Grzegorz Bizon c7c249407e Add implementation of common pipeline extended status 2016-12-02 14:23:43 +01:00
Grzegorz Bizon 0c7168b98d Add information about badge test to core statuses 2016-12-02 13:56:33 +01:00
Grzegorz Bizon 119757ac9c Add scaffold for remaining statuses-related classes 2016-12-02 13:27:26 +01:00
Grzegorz Bizon 943b3d0e00 Implement the rest of core CI statuses with specs 2016-12-02 13:08:21 +01:00
Grzegorz Bizon d4ed5b2e0c Add abstract base class for core CI status 2016-12-02 12:38:07 +01:00
Grzegorz Bizon 5df3e8b81b Add initial implmentation for core success status 2016-12-02 12:14:10 +01:00
Grzegorz Bizon be797097df Add scaffold for each class of core CI status 2016-12-02 11:17:48 +01:00
Kamil Trzciński 0f59075030 Merge branch 'fix/ci-linter-undefined-error' into 'master'
Fix undefined error in CI linter

## What does this MR do?

This MR fixes undefined error in CI linter.

## Does this MR meet the acceptance criteria?

- [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added
- [x] Tests added for this feature/bug
  
## What are the relevant issue numbers?

Closes #24759

See merge request !7650
2016-11-22 09:20:45 +00:00
Grzegorz Bizon c048d5d2d9 Fix entry lookup in CI config inheritance rules 2016-11-22 09:09:38 +01:00
Kamil Trzciński 3c8d2148fc Merge branch 'feature/send-registry-address-with-build-payload' into 'master'
Send registry address with build payload

## What does this MR do?

Adds `registry_url` as a part of a build payload, when sending a response to a GitLab Runner which requested a new build.

## Are there points in the code the reviewer needs to double check?

Change in `lib/ci/api/entities.rb`.

## Why was this MR needed?

This is one of the steps needed to add support for private/protected registries hosted with GitLab CE/EE.

## Screenshots (if relevant)

## Does this MR meet the acceptance criteria?

- [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [x] API support added
- Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [ ] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [ ] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

Related to gitlab-org/gitlab-ci-multi-runner#1828, gitlab-org/gitlab-ci-multi-runner!386, gitlab-org/gitlab-ci-multi-runner#1434

See merge request !7474
2016-11-21 20:22:55 +00:00
Tomasz Maczukin 461195665b
Add Gitlab::Ci::Build::Credentials module with build credentials abstraction 2016-11-21 19:49:29 +01:00
Tomasz Maczukin e3fb074022
Send credentials array with build data 2016-11-21 15:01:06 +01:00
Grzegorz Bizon bf25b5f69d Remove CI config helper with same name as an entry 2016-11-18 14:30:27 +01:00
Grzegorz Bizon 65724301e6 Make CI job script a required configuration entry 2016-11-18 14:14:41 +01:00
Grzegorz Bizon b3f38797fd Fix indentation in CI variables entry class 2016-11-14 11:46:41 +01:00
Grzegorz Bizon a761d29366 Change name of method for setting CI config entries 2016-11-14 10:51:56 +01:00
Grzegorz Bizon c701468390 Improve naming convention in ci configuration module 2016-11-14 10:31:45 +01:00
Rémy Coutable f0c7e6713f Merge branch '22191-delete-dynamic-envs-mr' into 'master'
Delete dynamic environments

- Adds "close environment" action to a merge request
- Adds tabs to environments list
- Adds close button to each environment row in environments list
- Replaces Destroy button with Close button inside an environment
- Adds close button to builds list inside an environment

#### Configuration

In order to enable stopping environments a valid `.gitlab-ci.yml` syntax has to be used:

```
review:
  environment:
    name: review/$app
    on_stop: stop_review

stop_review:
  script: echo Delete My App
  when: manual
  environment:
    name: review/$app
    action: stop
```

This MR requires that `stop_review` has to have: `when`, `environment:name` and `environment:action` defined.
The next MR after this one will verify that and enforce that these settings are configured.

It will also implicitly configure these settings, making it possible to define it like this:

```
review:
  environment:
    name: review/$app
    on_stop: stop_review

stop_review:
  script: echo Delete My App
```

Closes #22191 

See merge request !6669
2016-10-19 07:53:05 +00:00
Kamil Trzcinski 25dd1712ca Add specs to test on_stop and action on environments 2016-10-17 16:23:17 +02:00
Kamil Trzcinski 9b790f1cf9 Improve after code review 2016-10-17 16:13:19 +02:00
Kamil Trzcinski 5f98d05939 Add `action` and `on_stop` to `environment` in .gitlab-ci.yml 2016-10-17 12:46:00 +02:00
Kamil Trzcinski 3f85c3ef16 Initial support for closing environments 2016-10-06 13:16:34 +02:00
Lin Jen-Shin 637a41400c Merge remote-tracking branch 'upstream/master' into pipeline-emails
* upstream/master: (206 commits)
  Implement fourth round of comments from @DouweM.
  Fix `CreateDeploymentService` spec.
  Reload issues in spec to ensure label<->issue mapping properly loaded
  Fix build.
  Remove unnecessary #{} in cycle analytics template.
  Update cycle analytics icon and fix color of the dismiss button.
  Use triple dashes for the empty value in cycle analytics.
  Fix typo on cycle analytics copy.
  Add page title and fix sub menu width in Cycle Analytics page.
  Update Cycle Analytics Read more link URL.
  Display the cycle analytics navbar based on the `:read_cycle_analytics` ability.
  Improve indentation in `Gitlab::Database::Median`
  Add a spec for merge request metric caching while refreshing a merge request from a forked project.
  Use the `IssuableBaseService` lifecycle hooks to cache `MergeRequestsClosingIssues`
  Implement a second round of review comments from @DouweM.
  Add docs on Cycle Analytics
  Test if issue authors can access private projects
  Update .pkgr.yml with Ubuntu 16.04 dependencies
  fix issues mr counter
  Move JSON generation (cycle analytics) into a controller method.
  ...
2016-09-21 16:19:07 +08:00