gitlab-org--gitlab-foss/lib/gitlab/ci
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
..
build/artifacts
config Add specs to test on_stop and action on environments 2016-10-17 16:23:17 +02:00
config.rb Expose compose method in the ci config entry nodes 2016-08-25 13:49:15 +02:00
pipeline_duration.rb Struct.new could take a block for defining methods, feedback: 2016-09-08 23:55:07 +08:00
trace_reader.rb Make various trace methods take last_lines argument: 2016-09-21 16:12:32 +08:00