Skip to content

Commit

Permalink
added index file
Browse files Browse the repository at this point in the history
  • Loading branch information
gocruncher committed Sep 14, 2020
1 parent b0461d9 commit 5e65975
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cmd/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ func set(args []string) {
name = args[0]
}
_, env := jb.GetEnv(name)
url := URL
if url == "" {
url = getBaseAnswer("url: ", env.Url)
if URL == "" {
env.Url = getBaseAnswer("url: ", env.Url)
} else {
env.Url = URL

}

var authtype string
Expand All @@ -60,20 +62,19 @@ func set(args []string) {
}
}
}

env.Url = url
env.Name = jb.EName(name)
env.Type = jb.EType(authtype)
if authtype == "a" {
if login == "" {
env.Login = getBaseAnswer("login: ", env.Login)
} else {
env.Login = getBaseAnswer("login: ", login)
env.Login = login

}
if token == "" {
env.Secret = getBaseAnswer("token: ", env.Secret)
} else {
env.Secret = getBaseAnswer("token: ", token)
env.Secret = token
}
}
fmt.Println("checking...")
Expand Down
9 changes: 9 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Runs Jenkins job from the Command Line</title>
</head>
<body>
Runs Jenkins job from the Command Line
</body>
</html>

0 comments on commit 5e65975

Please sign in to comment.