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
a501feb4
Commit
a501feb4
authored
Sep 07, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve RuboCop violations in scripts/trigger-build-docs
parent
45510326
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
scripts/trigger-build-docs
scripts/trigger-build-docs
+6
-6
No files found.
scripts/trigger-build-docs
View file @
a501feb4
...
...
@@ -7,7 +7,7 @@ require 'gitlab'
# in order to avoid conflicts
#
@docs_branch
=
"
#{
ENV
[
"CI_COMMIT_REF_SLUG"
]
}
-built-from-ce-ee"
GITLAB_DOCS_REPO
=
'gitlab-com/gitlab-docs'
GITLAB_DOCS_REPO
=
'gitlab-com/gitlab-docs'
.
freeze
#
# Configure credentials to be used with gitlab gem
...
...
@@ -20,8 +20,8 @@ end
#
# Dummy way to find out in which repo we are, CE or EE
#
def
is_
ee?
File
.
exist
s
?
(
'CHANGELOG-EE.md'
)
def
ee?
File
.
exist?
(
'CHANGELOG-EE.md'
)
end
#
...
...
@@ -30,7 +30,7 @@ end
def
create_remote_branch
Gitlab
.
create_branch
(
GITLAB_DOCS_REPO
,
@docs_branch
,
'master'
)
puts
"Remote branch '
#{
@docs_branch
}
' created"
rescue
Gitlab
::
Error
::
BadRequest
=>
e
rescue
Gitlab
::
Error
::
BadRequest
puts
"Remote branch '
#{
@docs_branch
}
' already exists"
end
...
...
@@ -47,10 +47,10 @@ end
#
def
trigger_pipeline
# Overriding vars in https://gitlab.com/gitlab-com/gitlab-docs/blob/master/.gitlab-ci.yml
param_name
=
is_
ee?
?
'BRANCH_EE'
:
'BRANCH_CE'
param_name
=
ee?
?
'BRANCH_EE'
:
'BRANCH_CE'
# The review app URL
app_url
=
"http://
#{
@docs_branch
}
.
#{
ENV
[
"DOCS_REVIEW_APPS_DOMAIN"
]
}
/
#{
is_
ee?
?
'ee'
:
'ce'
}
"
app_url
=
"http://
#{
@docs_branch
}
.
#{
ENV
[
"DOCS_REVIEW_APPS_DOMAIN"
]
}
/
#{
ee?
?
'ee'
:
'ce'
}
"
# Create the pipeline
puts
"=> Triggering a pipeline..."
...
...
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