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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f12faae8
Commit
f12faae8
authored
Jul 18, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code design
parent
f08eb7bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
app/controllers/projects/builds_controller.rb
app/controllers/projects/builds_controller.rb
+2
-6
db/fixtures/development/14_builds.rb
db/fixtures/development/14_builds.rb
+1
-1
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+1
-1
No files found.
app/controllers/projects/builds_controller.rb
View file @
f12faae8
...
@@ -49,18 +49,14 @@ class Projects::BuildsController < Projects::ApplicationController
...
@@ -49,18 +49,14 @@ class Projects::BuildsController < Projects::ApplicationController
end
end
def
retry
def
retry
unless
@build
.
retryable?
return
render_404
unless
@build
.
retryable?
return
render_404
end
build
=
Ci
::
Build
.
retry
(
@build
,
current_user
)
build
=
Ci
::
Build
.
retry
(
@build
,
current_user
)
redirect_to
build_path
(
build
)
redirect_to
build_path
(
build
)
end
end
def
play
def
play
unless
@build
.
playable?
return
render_404
unless
@build
.
playable?
return
render_404
end
build
=
@build
.
play
(
current_user
)
build
=
@build
.
play
(
current_user
)
redirect_to
build_path
(
build
)
redirect_to
build_path
(
build
)
...
...
db/fixtures/development/14_builds.rb
View file @
f12faae8
class
Gitlab::Seeder::Builds
class
Gitlab::Seeder::Builds
STAGES
=
%w
(build notify_build test notify_test deploy notify_deploy)
STAGES
=
%w
[build notify_build test notify_test deploy notify_deploy]
def
initialize
(
project
)
def
initialize
(
project
)
@project
=
project
@project
=
project
...
...
doc/ci/yaml/README.md
View file @
f12faae8
...
@@ -530,7 +530,7 @@ The above script will:
...
@@ -530,7 +530,7 @@ The above script will:
1.
Execute
`cleanup_build_job`
only when
`build_job`
fails
1.
Execute
`cleanup_build_job`
only when
`build_job`
fails
2.
Always execute
`cleanup_job`
as the last step in pipeline
2.
Always execute
`cleanup_job`
as the last step in pipeline
3.
Allow you to manually execute
`deploy_job`
f
or
m GitLab
3.
Allow you to manually execute
`deploy_job`
f
ro
m GitLab
#### Manual actions
#### Manual actions
...
...
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