Skip to content
This repository has been archived by the owner on Nov 11, 2020. It is now read-only.

Commit

Permalink
fix: lets avoid the unnecessary server sub command
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Feb 25, 2020
1 parent ad1e693 commit 618c6ee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 33 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,26 @@ tp trigger --help

`trigger-pipeline` can automatically discover Jenkins servers created via the [Jenkins Operator](https://jenkinsci.github.io/kubernetes-operator/).

In addition you can register any Jenkins servers you wish to the Jenkins Server Registry via the `tp server add` command.
In addition you can register any Jenkins servers you wish to the Jenkins Server Registry via the `tp add` command.

To add a new Jenkins server with a guided wizard:

```
tp server add
tp add
```

If you already know the name, URL, username and API Token then you can use:

```
tp server add
tp add
```

### Removing Jenkins Servers

You can remove a Jenkins server via:

```
tp server remove
tp remove
```

Note that this only removes it from the registry; it doesn't affect the actual Jenkins Server.
Expand All @@ -83,7 +83,7 @@ Note that this only removes it from the registry; it doesn't affect the actual J
To list the servers you can use try:

```
tp server list
tp list
```

## How it works
Expand Down
5 changes: 4 additions & 1 deletion pkg/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func NewCmd() *cobra.Command {
},
}
cmd.AddCommand(common.SplitCommand(trigger.NewCmdTrigger()))
cmd.AddCommand(server.NewCmdServer())
cmd.AddCommand(common.SplitCommand(server.NewCmdAdd()))
cmd.AddCommand(common.SplitCommand(server.NewCmdDelete()))
cmd.AddCommand(common.SplitCommand(server.NewCmdJobs()))
cmd.AddCommand(common.SplitCommand(server.NewCmdList()))
return cmd
}
27 changes: 0 additions & 27 deletions pkg/cmd/server/server.go

This file was deleted.

0 comments on commit 618c6ee

Please sign in to comment.