2017-02-02 14:17:38 -05:00
|
|
|
|
2016-10-25 10:14:08 -04:00
|
|
|
const environmentsList = [
|
|
|
|
{
|
2016-11-07 16:11:58 -05:00
|
|
|
id: 31,
|
|
|
|
name: 'production',
|
|
|
|
state: 'available',
|
|
|
|
external_url: 'https://www.gitlab.com',
|
|
|
|
environment_type: null,
|
|
|
|
last_deployment: {
|
|
|
|
id: 64,
|
|
|
|
iid: 5,
|
|
|
|
sha: '500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
|
|
|
|
ref: {
|
|
|
|
name: 'master',
|
|
|
|
ref_url: 'http://localhost:3000/root/ci-folders/tree/master',
|
|
|
|
},
|
|
|
|
tag: false,
|
|
|
|
'last?': true,
|
|
|
|
user: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url: 'http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
|
|
|
},
|
|
|
|
commit: {
|
|
|
|
id: '500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
|
|
|
|
short_id: '500aabcb',
|
|
|
|
title: 'Update .gitlab-ci.yml',
|
|
|
|
author_name: 'Administrator',
|
|
|
|
author_email: 'admin@example.com',
|
|
|
|
created_at: '2016-11-07T18:28:13.000+00:00',
|
|
|
|
message: 'Update .gitlab-ci.yml',
|
|
|
|
author: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url: 'http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
|
|
|
},
|
2016-11-17 15:58:38 -05:00
|
|
|
commit_path: '/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
|
2016-11-07 16:11:58 -05:00
|
|
|
},
|
|
|
|
deployable: {
|
|
|
|
id: 1278,
|
|
|
|
name: 'build',
|
2016-11-17 15:58:38 -05:00
|
|
|
build_path: '/root/ci-folders/builds/1278',
|
|
|
|
retry_path: '/root/ci-folders/builds/1278/retry',
|
2016-11-07 16:11:58 -05:00
|
|
|
},
|
|
|
|
manual_actions: [],
|
|
|
|
},
|
2017-02-07 07:30:33 -05:00
|
|
|
'stop_action?': true,
|
2016-11-17 15:58:38 -05:00
|
|
|
environment_path: '/root/ci-folders/environments/31',
|
2016-11-07 16:11:58 -05:00
|
|
|
created_at: '2016-11-07T11:11:16.525Z',
|
|
|
|
updated_at: '2016-11-07T11:11:16.525Z',
|
2016-10-26 13:17:00 -04:00
|
|
|
},
|
|
|
|
{
|
2016-11-07 16:11:58 -05:00
|
|
|
id: 32,
|
|
|
|
name: 'review_app',
|
|
|
|
state: 'stopped',
|
|
|
|
external_url: 'https://www.gitlab.com',
|
|
|
|
environment_type: null,
|
|
|
|
last_deployment: {
|
|
|
|
id: 64,
|
|
|
|
iid: 5,
|
|
|
|
sha: '500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
|
|
|
|
ref: {
|
|
|
|
name: 'master',
|
|
|
|
ref_url: 'http://localhost:3000/root/ci-folders/tree/master',
|
|
|
|
},
|
|
|
|
tag: false,
|
|
|
|
'last?': true,
|
|
|
|
user: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url: 'http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
|
|
|
},
|
|
|
|
commit: {
|
|
|
|
id: '500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
|
|
|
|
short_id: '500aabcb',
|
|
|
|
title: 'Update .gitlab-ci.yml',
|
|
|
|
author_name: 'Administrator',
|
|
|
|
author_email: 'admin@example.com',
|
|
|
|
created_at: '2016-11-07T18:28:13.000+00:00',
|
|
|
|
message: 'Update .gitlab-ci.yml',
|
|
|
|
author: {
|
|
|
|
name: 'Administrator',
|
|
|
|
username: 'root',
|
|
|
|
id: 1,
|
|
|
|
state: 'active',
|
|
|
|
avatar_url: 'http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon',
|
|
|
|
web_url: 'http://localhost:3000/root',
|
|
|
|
},
|
2016-11-17 15:58:38 -05:00
|
|
|
commit_path: '/root/ci-folders/tree/500aabcb17c97bdcf2d0c410b70cb8556f0362dd',
|
2016-11-07 16:11:58 -05:00
|
|
|
},
|
|
|
|
deployable: {
|
|
|
|
id: 1278,
|
|
|
|
name: 'build',
|
2016-11-17 15:58:38 -05:00
|
|
|
build_path: '/root/ci-folders/builds/1278',
|
|
|
|
retry_path: '/root/ci-folders/builds/1278/retry',
|
2016-11-07 16:11:58 -05:00
|
|
|
},
|
|
|
|
manual_actions: [],
|
|
|
|
},
|
2017-02-07 07:30:33 -05:00
|
|
|
'stop_action?': false,
|
2016-11-17 15:58:38 -05:00
|
|
|
environment_path: '/root/ci-folders/environments/31',
|
2016-11-07 16:11:58 -05:00
|
|
|
created_at: '2016-11-07T11:11:16.525Z',
|
|
|
|
updated_at: '2016-11-07T11:11:16.525Z',
|
2016-10-26 04:17:32 -04:00
|
|
|
},
|
|
|
|
{
|
2016-11-07 16:11:58 -05:00
|
|
|
id: 33,
|
|
|
|
name: 'test-environment',
|
|
|
|
state: 'available',
|
|
|
|
environment_type: 'review',
|
|
|
|
last_deployment: null,
|
2017-02-07 07:30:33 -05:00
|
|
|
'stop_action?': true,
|
2016-11-17 15:58:38 -05:00
|
|
|
environment_path: '/root/ci-folders/environments/31',
|
2016-11-07 16:11:58 -05:00
|
|
|
created_at: '2016-11-07T11:11:16.525Z',
|
|
|
|
updated_at: '2016-11-07T11:11:16.525Z',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 34,
|
|
|
|
name: 'test-environment-1',
|
|
|
|
state: 'available',
|
|
|
|
environment_type: 'review',
|
|
|
|
last_deployment: null,
|
2017-02-07 07:30:33 -05:00
|
|
|
'stop_action?': true,
|
2016-11-17 15:58:38 -05:00
|
|
|
environment_path: '/root/ci-folders/environments/31',
|
2016-11-07 16:11:58 -05:00
|
|
|
created_at: '2016-11-07T11:11:16.525Z',
|
|
|
|
updated_at: '2016-11-07T11:11:16.525Z',
|
|
|
|
},
|
2016-10-26 04:17:32 -04:00
|
|
|
];
|
2017-01-05 09:51:29 -05:00
|
|
|
|
2017-02-02 14:17:38 -05:00
|
|
|
window.environmentsList = environmentsList;
|
|
|
|
|
2017-01-05 09:51:29 -05:00
|
|
|
const environment = {
|
|
|
|
id: 4,
|
|
|
|
name: 'production',
|
|
|
|
state: 'available',
|
|
|
|
external_url: 'http://production.',
|
|
|
|
environment_type: null,
|
|
|
|
last_deployment: {},
|
2017-02-07 07:30:33 -05:00
|
|
|
'stop_action?': false,
|
2017-01-05 09:51:29 -05:00
|
|
|
environment_path: '/root/review-app/environments/4',
|
|
|
|
stop_path: '/root/review-app/environments/4/stop',
|
|
|
|
created_at: '2016-12-16T11:51:04.690Z',
|
|
|
|
updated_at: '2016-12-16T12:04:51.133Z',
|
|
|
|
};
|
2017-02-02 14:17:38 -05:00
|
|
|
|
|
|
|
window.environment = environment;
|