Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Web - Open
Gitlab Runner
Commits
d8f6c5c7
Unverified
Commit
d8f6c5c7
authored
Oct 15, 2020
by
Suzanne Selhorn
Committed by
Pedro Pombeiro
Oct 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a typo
parent
b7405bc0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
commands/register.go
commands/register.go
+1
-2
commands/register_test.go
commands/register_test.go
+1
-1
No files found.
commands/register.go
View file @
d8f6c5c7
...
...
@@ -236,7 +236,6 @@ func (s *RegisterCommand) askRunner() {
if
s
.
URL
==
""
{
s
.
URL
=
"https://gitlab.com/"
}
if
s
.
Token
!=
""
{
logrus
.
Infoln
(
"Token specified trying to verify runner..."
)
...
...
@@ -249,7 +248,7 @@ func (s *RegisterCommand) askRunner() {
// we store registration token as token, since we pass that to RunnerCredentials
s
.
Token
=
s
.
ask
(
"registration-token"
,
"Enter the registration token:"
)
s
.
Name
=
s
.
ask
(
"name"
,
"Enter a description for th
r
runner:"
)
s
.
Name
=
s
.
ask
(
"name"
,
"Enter a description for th
e
runner:"
)
s
.
TagList
=
s
.
ask
(
"tag-list"
,
"Enter tags for the runner (comma-separated):"
,
true
)
if
s
.
TagList
==
""
{
...
...
commands/register_test.go
View file @
d8f6c5c7
...
...
@@ -197,7 +197,7 @@ func TestAccessLevelSetting(t *testing.T) {
if
testCase
.
failureExpected
{
assert
.
EqualError
(
t
,
err
,
"command error: Given access-level is not valid. "
+
"
Please r
efer to gitlab-runner register -h for the correct options."
)
"
R
efer to gitlab-runner register -h for the correct options."
)
assert
.
NotContains
(
t
,
output
,
"Runner registered successfully."
)
return
...
...
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