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
0969f198
Commit
0969f198
authored
Mar 28, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move illustration to build specific statuses
parent
6df1eb14
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
101 additions
and
44 deletions
+101
-44
lib/gitlab/ci/status/build/action.rb
lib/gitlab/ci/status/build/action.rb
+9
-0
lib/gitlab/ci/status/build/canceled.rb
lib/gitlab/ci/status/build/canceled.rb
+21
-0
lib/gitlab/ci/status/build/created.rb
lib/gitlab/ci/status/build/created.rb
+22
-0
lib/gitlab/ci/status/build/factory.rb
lib/gitlab/ci/status/build/factory.rb
+6
-1
lib/gitlab/ci/status/build/pending.rb
lib/gitlab/ci/status/build/pending.rb
+22
-0
lib/gitlab/ci/status/build/skipped.rb
lib/gitlab/ci/status/build/skipped.rb
+21
-0
lib/gitlab/ci/status/canceled.rb
lib/gitlab/ci/status/canceled.rb
+0
-8
lib/gitlab/ci/status/created.rb
lib/gitlab/ci/status/created.rb
+0
-9
lib/gitlab/ci/status/manual.rb
lib/gitlab/ci/status/manual.rb
+0
-9
lib/gitlab/ci/status/pending.rb
lib/gitlab/ci/status/pending.rb
+0
-9
lib/gitlab/ci/status/skipped.rb
lib/gitlab/ci/status/skipped.rb
+0
-8
No files found.
lib/gitlab/ci/status/build/action.rb
View file @
0969f198
...
...
@@ -14,6 +14,15 @@ module Gitlab
end
end
def
illustration
{
image:
'illustrations/manual_action.svg'
,
size:
'svg-394'
,
title:
_
(
'This job requires a manual action'
),
content:
_
(
'This job depends on a user to trigger its process. Often they are used to deploy code to production environments'
),
}
end
def
self
.
matches?
(
build
,
user
)
build
.
playable?
end
...
...
lib/gitlab/ci/status/build/canceled.rb
0 → 100644
View file @
0969f198
module
Gitlab
module
Ci
module
Status
module
Build
class
Canceled
<
Status
::
Extended
def
illustration
{
image:
'illustrations/canceled-job_empty.svg'
,
size:
'svg-430'
,
title:
_
(
'This job has been canceled'
)
}
end
def
self
.
matches?
(
build
,
user
)
build
.
canceled?
end
end
end
end
end
end
lib/gitlab/ci/status/build/created.rb
0 → 100644
View file @
0969f198
module
Gitlab
module
Ci
module
Status
module
Build
class
Created
<
Status
::
Extended
def
illustration
{
image:
'illustrations/job_not_triggered.svg'
,
size:
'svg-306'
,
title:
_
(
'This job has not been triggered yet'
),
content:
_
(
'This job depends on upstream jobs that need to succeed in order for this job to be triggered'
)
}
end
def
self
.
matches?
(
build
,
user
)
build
.
created?
end
end
end
end
end
end
lib/gitlab/ci/status/build/factory.rb
View file @
0969f198
...
...
@@ -9,7 +9,12 @@ module Gitlab
[
Status
::
Build
::
FailedAllowed
,
Status
::
Build
::
Play
,
Status
::
Build
::
Stop
],
[
Status
::
Build
::
Action
]]
[
Status
::
Build
::
Action
],
[
Status
::
Build
::
Action
,
Status
::
Build
::
Canceled
,
Status
::
Build
::
Created
,
Status
::
Build
::
Pending
,
Status
::
Build
::
Skipped
]]
end
def
self
.
common_helpers
...
...
lib/gitlab/ci/status/build/pending.rb
0 → 100644
View file @
0969f198
module
Gitlab
module
Ci
module
Status
module
Build
class
Pending
<
Status
::
Extended
def
illustration
{
image:
'illustrations/pending_job_empty.svg'
,
size:
'svg-430'
,
title:
_
(
'This job has not started yet'
),
content:
_
(
'This job is in pending state and is waiting to be picked by a runner'
)
}
end
def
self
.
matches?
(
build
,
user
)
build
.
pending?
end
end
end
end
end
end
lib/gitlab/ci/status/build/skipped.rb
0 → 100644
View file @
0969f198
module
Gitlab
module
Ci
module
Status
module
Build
class
Skipped
<
Status
::
Extended
def
illustration
{
image:
'illustrations/skipped-job_empty.svg'
,
size:
'svg-430'
,
title:
_
(
'This job has been skipped'
)
}
end
def
self
.
matches?
(
build
,
user
)
build
.
skipped?
end
end
end
end
end
end
lib/gitlab/ci/status/canceled.rb
View file @
0969f198
...
...
@@ -17,14 +17,6 @@ module Gitlab
def
favicon
'favicon_status_canceled'
end
def
illustration
{
image:
'illustrations/canceled-job_empty.svg'
,
size:
'svg-430'
,
title:
_
(
'This job has been canceled'
)
}
end
end
end
end
...
...
lib/gitlab/ci/status/created.rb
View file @
0969f198
...
...
@@ -17,15 +17,6 @@ module Gitlab
def
favicon
'favicon_status_created'
end
def
illustration
{
image:
'illustrations/job_not_triggered.svg'
,
size:
'svg-306'
,
title:
_
(
'This job has not been triggered yet'
),
content:
_
(
'This job depends on upstream jobs that need to succeed in order for this job to be triggered'
)
}
end
end
end
end
...
...
lib/gitlab/ci/status/manual.rb
View file @
0969f198
...
...
@@ -17,15 +17,6 @@ module Gitlab
def
favicon
'favicon_status_manual'
end
def
illustration
{
image:
'illustrations/manual_action.svg'
,
size:
'svg-394'
,
title:
_
(
'This job requires a manual action'
),
content:
_
(
'This job depends on a user to trigger its process. Often they are used to deploy code to production environments'
)
}
end
end
end
end
...
...
lib/gitlab/ci/status/pending.rb
View file @
0969f198
...
...
@@ -17,15 +17,6 @@ module Gitlab
def
favicon
'favicon_status_pending'
end
def
illustration
{
image:
'illustrations/pending_job_empty.svg'
,
size:
'svg-430'
,
title:
_
(
'This job has not started yet'
),
content:
_
(
'This job is in pending state and is waiting to be picked by a runner'
)
}
end
end
end
end
...
...
lib/gitlab/ci/status/skipped.rb
View file @
0969f198
...
...
@@ -17,14 +17,6 @@ module Gitlab
def
favicon
'favicon_status_skipped'
end
def
illustration
{
image:
'illustrations/skipped-job_empty.svg'
,
size:
'svg-430'
,
title:
_
(
'This job has been skipped'
)
}
end
end
end
end
...
...
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