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
dad0ae56
Commit
dad0ae56
authored
Nov 05, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/master' into ce-to-ee-2018-11-05
parents
2833cc18
9e2eb85e
Changes
62
Hide whitespace changes
Inline
Side-by-side
Showing
62 changed files
with
187 additions
and
60 deletions
+187
-60
app/assets/javascripts/jobs/components/artifacts_block.vue
app/assets/javascripts/jobs/components/artifacts_block.vue
+8
-6
app/assets/javascripts/jobs/components/commit_block.vue
app/assets/javascripts/jobs/components/commit_block.vue
+6
-4
app/assets/javascripts/jobs/components/empty_state.vue
app/assets/javascripts/jobs/components/empty_state.vue
+7
-2
app/assets/javascripts/jobs/components/erased_block.vue
app/assets/javascripts/jobs/components/erased_block.vue
+4
-2
app/assets/javascripts/jobs/components/job_app.vue
app/assets/javascripts/jobs/components/job_app.vue
+2
-0
app/assets/javascripts/jobs/components/job_container_item.vue
...assets/javascripts/jobs/components/job_container_item.vue
+6
-6
app/assets/javascripts/jobs/components/job_log_controllers.vue
...ssets/javascripts/jobs/components/job_log_controllers.vue
+19
-23
app/assets/javascripts/jobs/components/sidebar_detail_row.vue
...assets/javascripts/jobs/components/sidebar_detail_row.vue
+7
-2
app/assets/javascripts/jobs/components/stuck_block.vue
app/assets/javascripts/jobs/components/stuck_block.vue
+6
-2
app/assets/stylesheets/framework/contextual_sidebar.scss
app/assets/stylesheets/framework/contextual_sidebar.scss
+2
-2
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+3
-2
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+1
-1
changelogs/unreleased/51259-ci-cd-gitlab-ui.yml
changelogs/unreleased/51259-ci-cd-gitlab-ui.yml
+5
-0
changelogs/unreleased/frozen-string-enable-lib-gitlab-ci-remain.yml
.../unreleased/frozen-string-enable-lib-gitlab-ci-remain.yml
+5
-0
changelogs/unreleased/toggle-sidebar-alignment.yml
changelogs/unreleased/toggle-sidebar-alignment.yml
+5
-0
lib/gitlab/ci/status/build/action.rb
lib/gitlab/ci/status/build/action.rb
+2
-0
lib/gitlab/ci/status/build/cancelable.rb
lib/gitlab/ci/status/build/cancelable.rb
+2
-0
lib/gitlab/ci/status/build/canceled.rb
lib/gitlab/ci/status/build/canceled.rb
+2
-0
lib/gitlab/ci/status/build/common.rb
lib/gitlab/ci/status/build/common.rb
+2
-0
lib/gitlab/ci/status/build/created.rb
lib/gitlab/ci/status/build/created.rb
+2
-0
lib/gitlab/ci/status/build/erased.rb
lib/gitlab/ci/status/build/erased.rb
+2
-0
lib/gitlab/ci/status/build/factory.rb
lib/gitlab/ci/status/build/factory.rb
+2
-0
lib/gitlab/ci/status/build/failed.rb
lib/gitlab/ci/status/build/failed.rb
+2
-0
lib/gitlab/ci/status/build/failed_allowed.rb
lib/gitlab/ci/status/build/failed_allowed.rb
+2
-0
lib/gitlab/ci/status/build/manual.rb
lib/gitlab/ci/status/build/manual.rb
+2
-0
lib/gitlab/ci/status/build/pending.rb
lib/gitlab/ci/status/build/pending.rb
+2
-0
lib/gitlab/ci/status/build/play.rb
lib/gitlab/ci/status/build/play.rb
+2
-0
lib/gitlab/ci/status/build/retried.rb
lib/gitlab/ci/status/build/retried.rb
+2
-0
lib/gitlab/ci/status/build/retryable.rb
lib/gitlab/ci/status/build/retryable.rb
+2
-0
lib/gitlab/ci/status/build/scheduled.rb
lib/gitlab/ci/status/build/scheduled.rb
+2
-0
lib/gitlab/ci/status/build/skipped.rb
lib/gitlab/ci/status/build/skipped.rb
+2
-0
lib/gitlab/ci/status/build/stop.rb
lib/gitlab/ci/status/build/stop.rb
+2
-0
lib/gitlab/ci/status/build/unschedule.rb
lib/gitlab/ci/status/build/unschedule.rb
+2
-0
lib/gitlab/ci/status/canceled.rb
lib/gitlab/ci/status/canceled.rb
+2
-0
lib/gitlab/ci/status/core.rb
lib/gitlab/ci/status/core.rb
+2
-0
lib/gitlab/ci/status/created.rb
lib/gitlab/ci/status/created.rb
+2
-0
lib/gitlab/ci/status/extended.rb
lib/gitlab/ci/status/extended.rb
+2
-0
lib/gitlab/ci/status/external/common.rb
lib/gitlab/ci/status/external/common.rb
+2
-0
lib/gitlab/ci/status/external/factory.rb
lib/gitlab/ci/status/external/factory.rb
+2
-0
lib/gitlab/ci/status/factory.rb
lib/gitlab/ci/status/factory.rb
+2
-0
lib/gitlab/ci/status/failed.rb
lib/gitlab/ci/status/failed.rb
+2
-0
lib/gitlab/ci/status/group/common.rb
lib/gitlab/ci/status/group/common.rb
+2
-0
lib/gitlab/ci/status/group/factory.rb
lib/gitlab/ci/status/group/factory.rb
+2
-0
lib/gitlab/ci/status/manual.rb
lib/gitlab/ci/status/manual.rb
+2
-0
lib/gitlab/ci/status/pending.rb
lib/gitlab/ci/status/pending.rb
+2
-0
lib/gitlab/ci/status/pipeline/blocked.rb
lib/gitlab/ci/status/pipeline/blocked.rb
+2
-0
lib/gitlab/ci/status/pipeline/common.rb
lib/gitlab/ci/status/pipeline/common.rb
+2
-0
lib/gitlab/ci/status/pipeline/delayed.rb
lib/gitlab/ci/status/pipeline/delayed.rb
+2
-0
lib/gitlab/ci/status/pipeline/factory.rb
lib/gitlab/ci/status/pipeline/factory.rb
+2
-0
lib/gitlab/ci/status/running.rb
lib/gitlab/ci/status/running.rb
+2
-0
lib/gitlab/ci/status/scheduled.rb
lib/gitlab/ci/status/scheduled.rb
+2
-0
lib/gitlab/ci/status/skipped.rb
lib/gitlab/ci/status/skipped.rb
+2
-0
lib/gitlab/ci/status/stage/common.rb
lib/gitlab/ci/status/stage/common.rb
+2
-0
lib/gitlab/ci/status/stage/factory.rb
lib/gitlab/ci/status/stage/factory.rb
+2
-0
lib/gitlab/ci/status/success.rb
lib/gitlab/ci/status/success.rb
+2
-0
lib/gitlab/ci/status/success_warning.rb
lib/gitlab/ci/status/success_warning.rb
+2
-0
lib/gitlab/ci/trace/chunked_io.rb
lib/gitlab/ci/trace/chunked_io.rb
+9
-6
lib/gitlab/ci/trace/section_parser.rb
lib/gitlab/ci/trace/section_parser.rb
+2
-0
lib/gitlab/ci/trace/stream.rb
lib/gitlab/ci/trace/stream.rb
+3
-2
lib/gitlab/ci/variables/collection.rb
lib/gitlab/ci/variables/collection.rb
+2
-0
lib/gitlab/ci/variables/collection/item.rb
lib/gitlab/ci/variables/collection/item.rb
+2
-0
No files found.
app/assets/javascripts/jobs/components/artifacts_block.vue
View file @
dad0ae56
<
script
>
import
{
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
import
TimeagoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
timeagoMixin
from
'
~/vue_shared/mixins/timeago
'
;
export
default
{
components
:
{
TimeagoTooltip
,
GlLink
,
},
mixins
:
[
timeagoMixin
],
props
:
{
...
...
@@ -53,16 +55,16 @@ export default {
class=
"btn-group d-flex"
role=
"group"
>
<
a
<
gl-link
v-if=
"artifact.keep_path"
:href=
"artifact.keep_path"
class=
"js-keep-artifacts btn btn-sm btn-default"
data-method=
"post"
>
{{
s__
(
'
Job|Keep
'
)
}}
</
a
>
</
gl-link
>
<
a
<
gl-link
v-if=
"artifact.download_path"
:href=
"artifact.download_path"
class=
"js-download-artifacts btn btn-sm btn-default"
...
...
@@ -70,15 +72,15 @@ export default {
rel=
"nofollow"
>
{{
s__
(
'
Job|Download
'
)
}}
</
a
>
</
gl-link
>
<
a
<
gl-link
v-if=
"artifact.browse_path"
:href=
"artifact.browse_path"
class=
"js-browse-artifacts btn btn-sm btn-default"
>
{{
s__
(
'
Job|Browse
'
)
}}
</
a
>
</
gl-link
>
</div>
</div>
</
template
>
app/assets/javascripts/jobs/components/commit_block.vue
View file @
dad0ae56
<
script
>
import
{
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
import
ClipboardButton
from
'
~/vue_shared/components/clipboard_button.vue
'
;
export
default
{
components
:
{
ClipboardButton
,
GlLink
,
},
props
:
{
commit
:
{
...
...
@@ -31,10 +33,10 @@ export default {
<p>
{{
__
(
'
Commit
'
)
}}
<
a
<
gl-link
:href=
"commit.commit_path"
class=
"js-commit-sha commit-sha link-commit"
>
{{
commit
.
short_id
}}
</
a
>
>
{{
commit
.
short_id
}}
</
gl-link
>
<clipboard-button
:text=
"commit.short_id"
...
...
@@ -42,11 +44,11 @@ export default {
css-class=
"btn btn-clipboard btn-transparent"
/>
<
a
<
gl-link
v-if=
"mergeRequest"
:href=
"mergeRequest.path"
class=
"js-link-commit link-commit"
>
!
{{
mergeRequest
.
iid
}}
</
a
>
>
!
{{
mergeRequest
.
iid
}}
</
gl-link
>
</p>
<p
class=
"build-light-text append-bottom-0"
>
...
...
app/assets/javascripts/jobs/components/empty_state.vue
View file @
dad0ae56
<
script
>
import
{
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
export
default
{
components
:
{
GlLink
,
},
props
:
{
illustrationPath
:
{
type
:
String
,
...
...
@@ -62,13 +67,13 @@ export default {
v-if=
"action"
class=
"text-center"
>
<
a
<
gl-link
:href=
"action.path"
:data-method=
"action.method"
class=
"js-job-empty-state-action btn btn-primary"
>
{{
action
.
button_title
}}
</
a
>
</
gl-link
>
</div>
</div>
</div>
...
...
app/assets/javascripts/jobs/components/erased_block.vue
View file @
dad0ae56
<
script
>
import
_
from
'
underscore
'
;
import
{
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
import
TimeagoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
export
default
{
components
:
{
TimeagoTooltip
,
GlLink
,
},
props
:
{
user
:
{
...
...
@@ -29,9 +31,9 @@ export default {
<div
class=
"erased alert alert-warning"
>
<template
v-if=
"isErasedByUser"
>
{{
s__
(
"
Job|Job has been erased by
"
)
}}
<
a
:href=
"user.web_url"
>
<
gl-link
:href=
"user.web_url"
>
{{
user
.
username
}}
</
a
>
</
gl-link
>
</
template
>
<
template
v-else
>
{{
s__
(
"
Job|Job has been erased
"
)
}}
...
...
app/assets/javascripts/jobs/components/job_app.vue
View file @
dad0ae56
<
script
>
import
_
from
'
underscore
'
;
import
{
mapGetters
,
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
GlLoadingIcon
}
from
'
@gitlab-org/gitlab-ui
'
;
import
{
isScrolledToBottom
}
from
'
~/lib/utils/scroll_utils
'
;
import
bp
from
'
~/breakpoints
'
;
import
CiHeader
from
'
~/vue_shared/components/header_ci_component.vue
'
;
...
...
@@ -26,6 +27,7 @@ export default {
EmptyState
,
EnvironmentsBlock
,
ErasedBlock
,
GlLoadingIcon
,
Log
,
LogTopBar
,
StuckBlock
,
...
...
app/assets/javascripts/jobs/components/job_container_item.vue
View file @
dad0ae56
<
script
>
import
{
GlTooltipDirective
,
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
import
CiIcon
from
'
~/vue_shared/components/ci_icon.vue
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
export
default
{
components
:
{
CiIcon
,
Icon
,
GlLink
,
},
directives
:
{
tooltip
,
GlTooltip
:
GlTooltipDirective
,
},
props
:
{
job
:
{
...
...
@@ -37,11 +38,10 @@ export default {
active: isActive
}"
>
<
a
v-tooltip
<
gl-link
v-
gl-
tooltip
:href=
"job.status.details_path"
:title=
"tooltipText"
data-container=
"body"
data-boundary=
"viewport"
class=
"js-job-link"
>
...
...
@@ -60,6 +60,6 @@ export default {
name=
"retry"
class=
"js-retry-icon"
/>
</
a
>
</
gl-link
>
</div>
</
template
>
app/assets/javascripts/jobs/components/job_log_controllers.vue
View file @
dad0ae56
<
script
>
import
{
GlTooltipDirective
,
GlLink
,
GlButton
}
from
'
@gitlab-org/gitlab-ui
'
;
import
{
polyfillSticky
}
from
'
~/lib/utils/sticky
'
;
import
Icon
from
'
~/vue_shared/components/icon.vue
'
;
import
tooltip
from
'
~/vue_shared/directives/tooltip
'
;
import
{
numberToHumanSize
}
from
'
~/lib/utils/number_utils
'
;
import
{
sprintf
}
from
'
~/locale
'
;
import
scrollDown
from
'
../svg/scroll_down.svg
'
;
...
...
@@ -9,9 +9,11 @@ import scrollDown from '../svg/scroll_down.svg';
export
default
{
components
:
{
Icon
,
GlLink
,
GlButton
,
},
directives
:
{
tooltip
,
GlTooltip
:
GlTooltipDirective
,
},
scrollDown
,
props
:
{
...
...
@@ -73,76 +75,70 @@ export default {
<template
v-if=
"isTraceSizeVisible"
>
{{
jobLogSize
}}
<
a
<
gl-link
v-if=
"rawPath"
:href=
"rawPath"
class=
"js-raw-link raw-link"
>
{{
s__
(
"
Job|Complete Raw
"
)
}}
</
a
>
</
gl-link
>
</
template
>
</div>
<!-- eo truncate information -->
<div
class=
"controllers float-right"
>
<!-- links -->
<
a
<
gl-link
v-if=
"rawPath"
v-
tooltip
v-
gl-tooltip
.
body
:title=
"s__('Job|Show complete raw')"
:href=
"rawPath"
class=
"js-raw-link-controller controllers-buttons"
data-container=
"body"
>
<icon
name=
"doc-text"
/>
</
a
>
</
gl-link
>
<
a
<
gl-link
v-if=
"erasePath"
v-
tooltip
v-
gl-tooltip
.
body
:title=
"s__('Job|Erase job log')"
:href=
"erasePath"
:data-confirm=
"__('Are you sure you want to erase this build?')"
class=
"js-erase-link controllers-buttons"
data-container=
"body"
data-method=
"post"
>
<icon
name=
"remove"
/>
</
a
>
</
gl-link
>
<!-- eo links -->
<!-- scroll buttons -->
<div
v-tooltip
v-
gl-
tooltip
:title=
"s__('Job|Scroll to top')"
class=
"controllers-buttons"
data-container=
"body"
>
<button
<
gl-
button
:disabled=
"isScrollTopDisabled"
type=
"button"
class=
"js-scroll-top btn-scroll btn-transparent btn-blank"
@
click=
"handleScrollToTop"
>
<icon
name=
"scroll_up"
/>
</button>
<icon
name=
"scroll_up"
/>
</
gl-
button>
</div>
<div
v-tooltip
v-
gl-
tooltip
:title=
"s__('Job|Scroll to bottom')"
class=
"controllers-buttons"
data-container=
"body"
>
<button
<
gl-
button
:disabled=
"isScrollBottomDisabled"
type=
"button"
class=
"js-scroll-bottom btn-scroll btn-transparent btn-blank"
:class=
"{ animate: isScrollingDown }"
@
click=
"handleScrollToBottom"
v-html=
"$options.scrollDown"
>
</button>
/>
</div>
<!-- eo scroll buttons -->
</div>
...
...
app/assets/javascripts/jobs/components/sidebar_detail_row.vue
View file @
dad0ae56
<
script
>
import
{
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
export
default
{
name
:
'
SidebarDetailRow
'
,
components
:
{
GlLink
,
},
props
:
{
title
:
{
type
:
String
,
...
...
@@ -41,7 +46,7 @@ export default {
v-if=
"hasHelpURL"
class=
"help-button float-right"
>
<
a
<
gl-link
:href=
"helpUrl"
target=
"_blank"
rel=
"noopener noreferrer nofollow"
...
...
@@ -50,7 +55,7 @@ export default {
class=
"fa fa-question-circle"
aria-hidden=
"true"
></i>
</
a
>
</
gl-link
>
</span>
</p>
</
template
>
app/assets/javascripts/jobs/components/stuck_block.vue
View file @
dad0ae56
<
script
>
import
{
GlLink
}
from
'
@gitlab-org/gitlab-ui
'
;
/**
* Renders Stuck Runners block for job's view.
*/
export
default
{
components
:
{
GlLink
,
},
props
:
{
hasNoRunnersForProject
:
{
type
:
Boolean
,
...
...
@@ -52,12 +56,12 @@ export default {
</p>
{{
__
(
"
Go to
"
)
}}
<
a
<
gl-link
v-if=
"runnersPath"
:href=
"runnersPath"
class=
"js-runners-path"
>
{{
__
(
"
Runners page
"
)
}}
</
a
>
</
gl-link
>
</div>
</
template
>
app/assets/stylesheets/framework/contextual_sidebar.scss
View file @
dad0ae56
...
...
@@ -322,15 +322,15 @@
width
:
$contextual-sidebar-width
-
1px
;
transition
:
width
$sidebar-transition-duration
;
position
:
fixed
;
height
:
$toggle-sidebar-height
;
bottom
:
0
;
padding
:
$gl-padding
;
padding
:
0
$gl-padding
;
background-color
:
$gray-light
;
border
:
0
;
border-top
:
1px
solid
$border-color
;
color
:
$gl-text-color-secondary
;
display
:
flex
;
align-items
:
center
;
line-height
:
1
;
svg
{
margin-right
:
8px
;
...
...
app/assets/stylesheets/framework/mixins.scss
View file @
dad0ae56
...
...
@@ -291,7 +291,7 @@
/*
* Mixin that handles the position of the controls placed on the top bar
*/
@mixin
build-controllers
(
$control-font-size
,
$flex-direction
,
$with-grow
,
$flex-grow-size
)
{
@mixin
build-controllers
(
$control-font-size
,
$flex-direction
,
$with-grow
,
$flex-grow-size
,
$svg-display
:
'block'
,
$svg-top
:
'2px'
)
{
display
:
flex
;
font-size
:
$control-font-size
;
justify-content
:
$flex-direction
;
...
...
@@ -304,8 +304,9 @@
svg
{
width
:
15px
;
height
:
15px
;
display
:
block
;
display
:
$svg-display
;
fill
:
$gl-text-color
;
top
:
$svg-top
;
}
.controllers-buttons
{
...
...
app/assets/stylesheets/framework/variables.scss
View file @
dad0ae56
...
...
@@ -10,6 +10,7 @@ $sidebar-breakpoint: 1024px;
$default-transition-duration
:
0
.15s
;
$contextual-sidebar-width
:
220px
;
$contextual-sidebar-collapsed-width
:
50px
;
$toggle-sidebar-height
:
48px
;
/*
* Color schema
...
...
app/assets/stylesheets/pages/builds.scss
View file @
dad0ae56
...
...
@@ -74,7 +74,7 @@
}
.controllers
{
@include
build-controllers
(
15px
,
center
,
false
,
0
);
@include
build-controllers
(
15px
,
center
,
false
,
0
,
inline
,
0
);
}
}
...
...
changelogs/unreleased/51259-ci-cd-gitlab-ui.yml
0 → 100644
View file @
dad0ae56
---
title
:
Uses gitlab-ui components in jobs components
merge_request
:
author
:
type
:
other
changelogs/unreleased/frozen-string-enable-lib-gitlab-ci-remain.yml
0 → 100644
View file @
dad0ae56
---
title
:
Enable frozen string for remaining lib/gitlab/ci/**/*.rb
merge_request
:
author
:
gfyoung
type
:
performance
changelogs/unreleased/toggle-sidebar-alignment.yml
0 → 100644
View file @
dad0ae56
---
title
:
Align toggle sidebar button across all browsers and OSs
merge_request
:
22771
author
:
type
:
fixed
lib/gitlab/ci/status/build/action.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/cancelable.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/canceled.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/common.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/created.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/erased.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/factory.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/failed.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/failed_allowed.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/manual.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/pending.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/play.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/retried.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/retryable.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/scheduled.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/skipped.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/stop.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/build/unschedule.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/canceled.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/core.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/created.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/extended.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/external/common.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/external/factory.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/factory.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/failed.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/group/common.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/group/factory.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/manual.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/pending.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/pipeline/blocked.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/pipeline/common.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/pipeline/delayed.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/pipeline/factory.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/running.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/scheduled.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/skipped.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/stage/common.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/stage/factory.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/success.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/status/success_warning.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Status
...
...
lib/gitlab/ci/trace/chunked_io.rb
View file @
dad0ae56
# frozen_string_literal: true
##
# This class is compatible with IO class (https://ruby-doc.org/core-2.3.1/IO.html)
# source: https://gitlab.com/snippets/1685610
...
...
@@ -66,8 +68,8 @@ module Gitlab
end
end
def
read
(
length
=
nil
,
outbuf
=
""
)
out
=
""
def
read
(
length
=
nil
,
outbuf
=
nil
)
out
=
[]
length
||=
size
-
tell
...
...
@@ -83,17 +85,18 @@ module Gitlab
length
-=
chunk_data
.
bytesize
end
out
=
out
.
join
# If outbuf is passed, we put the output into the buffer. This supports IO.copy_stream functionality
if
outbuf
outbuf
.
slice!
(
0
,
outbuf
.
bytesize
)
outbuf
<<
out
outbuf
.
replace
(
out
)
end
out
end
def
readline
out
=
""
out
=
[]
until
eof?
data
=
chunk_slice_from_offset
...
...
@@ -109,7 +112,7 @@ module Gitlab
end
end
out
out
.
join
end
def
write
(
data
)
...
...
lib/gitlab/ci/trace/section_parser.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
class
Trace
...
...
lib/gitlab/ci/trace/stream.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
class
Trace
...
...
@@ -129,8 +131,7 @@ module Gitlab
debris
=
''
until
(
buf
=
read_backward
(
BUFFER_SIZE
)).
empty?
buf
+=
debris
debris
,
*
lines
=
buf
.
each_line
.
to_a
debris
,
*
lines
=
(
buf
+
debris
).
each_line
.
to_a
lines
.
reverse_each
do
|
line
|
yield
(
line
.
force_encoding
(
Encoding
.
default_external
))
end
...
...
lib/gitlab/ci/variables/collection.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Variables
...
...
lib/gitlab/ci/variables/collection/item.rb
View file @
dad0ae56
# frozen_string_literal: true
module
Gitlab
module
Ci
module
Variables
...
...
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