Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.devtools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.devtools
Commits
422cd159
Commit
422cd159
authored
6 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[scripts][ci] Do not re-deploy documentation (risks multiple parallel deployments)
parent
3bf4aaa0
No related branches found
No related tags found
No related merge requests found
Pipeline
#27732
passed
6 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/devtools/scripts/ci.py
+2
-9
2 additions, 9 deletions
bob/devtools/scripts/ci.py
with
2 additions
and
9 deletions
bob/devtools/scripts/ci.py
+
2
−
9
View file @
422cd159
...
@@ -522,16 +522,9 @@ def nightlies(ctx, order, dry_run):
...
@@ -522,16 +522,9 @@ def nightlies(ctx, order, dry_run):
public
=
(
not
private
),
username
=
os
.
environ
[
'
DOCUSER
'
],
public
=
(
not
private
),
username
=
os
.
environ
[
'
DOCUSER
'
],
password
=
os
.
environ
[
'
DOCPASS
'
],
overwrite
=
False
,
dry_run
=
dry_run
)
password
=
os
.
environ
[
'
DOCPASS
'
],
overwrite
=
False
,
dry_run
=
dry_run
)
# re
-deploys freshly built documentation if we're on the master branch
# re
moves the documentation to avoid permissions issues with the following
#
otherwise, removes the documentation
#
projects being built
local_docs
=
os
.
path
.
join
(
os
.
environ
[
'
CI_PROJECT_DIR
'
],
'
sphinx
'
)
local_docs
=
os
.
path
.
join
(
os
.
environ
[
'
CI_PROJECT_DIR
'
],
'
sphinx
'
)
if
is_master
:
deploy_documentation
(
local_docs
,
package
,
stable
=
stable
,
public
=
(
not
private
),
branch
=
'
master
'
,
tag
=
None
,
username
=
os
.
environ
[
'
DOCUSER
'
],
password
=
os
.
environ
[
'
DOCPASS
'
],
dry_run
=
dry_run
)
if
os
.
path
.
exists
(
local_docs
):
if
os
.
path
.
exists
(
local_docs
):
logger
.
debug
(
'
Sphinx output was generated during test/rebuild
'
\
logger
.
debug
(
'
Sphinx output was generated during test/rebuild
'
\
'
of %s - Erasing...
'
,
package
)
'
of %s - Erasing...
'
,
package
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment