Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
d024db0c
Commit
d024db0c
authored
Nov 10, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated dumped yaml file generated from previous job definitions
parent
354b69dd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
24 deletions
+1
-24
CHANGELOG
CHANGELOG
+1
-0
app/controllers/ci/projects_controller.rb
app/controllers/ci/projects_controller.rb
+0
-4
app/views/projects/ci_settings/edit.html.haml
app/views/projects/ci_settings/edit.html.haml
+0
-19
config/routes.rb
config/routes.rb
+0
-1
No files found.
CHANGELOG
View file @
d024db0c
...
@@ -27,6 +27,7 @@ v 8.2.0 (unreleased)
...
@@ -27,6 +27,7 @@ v 8.2.0 (unreleased)
- Rename "Back to" links to "Go to" because its not always a case it point to place user come from
- Rename "Back to" links to "Go to" because its not always a case it point to place user come from
- Allow groups to appear in the search results if the group owner allows it
- Allow groups to appear in the search results if the group owner allows it
- New design for project graphs page
- New design for project graphs page
- Remove deprecated dumped yaml file generated from previous job definitions
- Fix incoming email config defaults
- Fix incoming email config defaults
v 8.1.4
v 8.1.4
...
...
app/controllers/ci/projects_controller.rb
View file @
d024db0c
...
@@ -26,10 +26,6 @@ module Ci
...
@@ -26,10 +26,6 @@ module Ci
redirect_to
namespace_project_runners_path
(
project
.
gl_project
.
namespace
,
project
.
gl_project
)
redirect_to
namespace_project_runners_path
(
project
.
gl_project
.
namespace
,
project
.
gl_project
)
end
end
def
dumped_yaml
send_data
@project
.
generated_yaml_config
,
filename:
'.gitlab-ci.yml'
end
protected
protected
def
project
def
project
...
...
app/views/projects/ci_settings/edit.html.haml
View file @
d024db0c
-
page_title
"CI Settings"
-
page_title
"CI Settings"
-
if
@ci_project
.
generated_yaml_config
%p
.alert.alert-danger
CI Jobs are deprecated now, you can
#{
link_to
"download"
,
dumped_yaml_ci_project_path
(
@ci_project
)
}
or
%a
.preview-yml
{
:href
=>
"#yaml-content"
,
"data-toggle"
=>
"modal"
}
preview
yaml file which is based on your old jobs.
Put this file to the root of your project and name it .gitlab-ci.yml
-
if
no_runners_for_project?
(
@ci_project
)
-
if
no_runners_for_project?
(
@ci_project
)
=
render
'no_runners'
=
render
'no_runners'
=
render
'form'
=
render
'form'
-
if
@ci_project
.
generated_yaml_config
#yaml-content
.modal.fade
{
"aria-hidden"
=>
"true"
,
"aria-labelledby"
=>
".gitlab-ci.yml"
,
:role
=>
"dialog"
,
:tabindex
=>
"-1"
}
.modal-dialog
.modal-content
.modal-header
%button
.close
{
"aria-hidden"
=>
"true"
,
"data-dismiss"
=>
"modal"
,
:type
=>
"button"
}
×
%h4
.modal-title
Content of .gitlab-ci.yml
.modal-body
=
text_area_tag
:yaml
,
@ci_project
.
generated_yaml_config
,
size:
"70x25"
,
class:
"form-control"
.modal-footer
%button
.btn.btn-default
{
"data-dismiss"
=>
"modal"
,
:type
=>
"button"
}
Close
config/routes.rb
View file @
d024db0c
...
@@ -32,7 +32,6 @@ Gitlab::Application.routes.draw do
...
@@ -32,7 +32,6 @@ Gitlab::Application.routes.draw do
get
:status
,
to:
'projects#badge'
get
:status
,
to:
'projects#badge'
get
:integration
get
:integration
post
:toggle_shared_runners
post
:toggle_shared_runners
get
:dumped_yaml
end
end
resources
:runner_projects
,
only:
[
:create
,
:destroy
]
resources
:runner_projects
,
only:
[
:create
,
:destroy
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment