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
Léo-Paul Géneau
gitlab-ce
Commits
8f227f23
Commit
8f227f23
authored
Mar 06, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve docs and specs related to pages artifacts
parent
098a876f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
doc/user/project/pages/getting_started_part_four.md
doc/user/project/pages/getting_started_part_four.md
+1
-1
spec/services/projects/update_pages_service_spec.rb
spec/services/projects/update_pages_service_spec.rb
+3
-1
No files found.
doc/user/project/pages/getting_started_part_four.md
View file @
8f227f23
...
@@ -134,7 +134,7 @@ configuration for our example. On the steps below, we'll refine
...
@@ -134,7 +134,7 @@ configuration for our example. On the steps below, we'll refine
the script by adding extra options to our GitLab CI.
the script by adding extra options to our GitLab CI.
Artifacts will be automatically deleted once GitLab Pages got deployed.
Artifacts will be automatically deleted once GitLab Pages got deployed.
You can preserve artifacts for limited time by specifying expiry time.
You can preserve artifacts for limited time by specifying
the
expiry time.
### Image
### Image
...
...
spec/services/projects/update_pages_service_spec.rb
View file @
8f227f23
...
@@ -26,7 +26,7 @@ describe Projects::UpdatePagesService do
...
@@ -26,7 +26,7 @@ describe Projects::UpdatePagesService do
build
.
update_attributes
(
artifacts_metadata:
metadata
)
build
.
update_attributes
(
artifacts_metadata:
metadata
)
end
end
context
'
artifacts'
do
describe
'pages
artifacts'
do
context
'with expiry date'
do
context
'with expiry date'
do
before
do
before
do
build
.
artifacts_expire_in
=
"2 days"
build
.
artifacts_expire_in
=
"2 days"
...
@@ -34,6 +34,7 @@ describe Projects::UpdatePagesService do
...
@@ -34,6 +34,7 @@ describe Projects::UpdatePagesService do
it
"doesn't delete artifacts"
do
it
"doesn't delete artifacts"
do
expect
(
execute
).
to
eq
(
:success
)
expect
(
execute
).
to
eq
(
:success
)
expect
(
build
.
reload
.
artifacts_file?
).
to
eq
(
true
)
expect
(
build
.
reload
.
artifacts_file?
).
to
eq
(
true
)
end
end
end
end
...
@@ -41,6 +42,7 @@ describe Projects::UpdatePagesService do
...
@@ -41,6 +42,7 @@ describe Projects::UpdatePagesService do
context
'without expiry date'
do
context
'without expiry date'
do
it
"does delete artifacts"
do
it
"does delete artifacts"
do
expect
(
execute
).
to
eq
(
:success
)
expect
(
execute
).
to
eq
(
:success
)
expect
(
build
.
reload
.
artifacts_file?
).
to
eq
(
false
)
expect
(
build
.
reload
.
artifacts_file?
).
to
eq
(
false
)
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