From 5e65975f1fba82f65249a6d63d3625b5ae6ffc3a Mon Sep 17 00:00:00 2001 From: asalimov Date: Mon, 14 Sep 2020 11:23:37 +0300 Subject: [PATCH] added index file --- cmd/set.go | 15 ++++++++------- index.html | 9 +++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 index.html diff --git a/cmd/set.go b/cmd/set.go index 2830b21..91a78da 100644 --- a/cmd/set.go +++ b/cmd/set.go @@ -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 @@ -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...") diff --git a/index.html b/index.html new file mode 100644 index 0000000..92a28a6 --- /dev/null +++ b/index.html @@ -0,0 +1,9 @@ + + + + Runs Jenkins job from the Command Line + + +Runs Jenkins job from the Command Line + + \ No newline at end of file