Skip to content

Commit 292a8bc

Browse files
authored
Merge pull request #21 from iampeterbanjo/feature/update-readme
Feature/update readme
2 parents cc09409 + 0ae3e40 commit 292a8bc

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,16 @@
77

88
![usage](usage.gif)
99

10-
A commandline interface for Jenkins.
10+
A commandline interface for Jenkins.
1111

12-
### Features
12+
## Features
1313

1414
* Queries the current status of jobs in parallel.
1515
* Can trigger Jenkins builds from the commandline.
1616
* Visualizes the status of jobs and nodes.
1717
* Can diff the output two runs.
1818

19-
###
20-
21-
```
19+
```Shell
2220
usage: riffraff [<flags>] <command> [<args> ...]
2321

2422
Flags:
@@ -52,46 +50,52 @@ Commands:
5250
Open a job in the browser
5351
```
5452

55-
### Installation
53+
## Installation
5654

57-
```
55+
```Shell
5856
go get github.com/mre/riffraff
5957
```
6058

6159
...or download a static binary from the [releases page](https://github.com/mre/riffraff/releases).
6260

63-
### Getting started
61+
## Getting started
6462

6563
You need to set the following environment variables:
6664

67-
```
65+
```Shell
6866
export JENKINS_URL="http://example.com/"
6967
export JENKINS_USER="username"
7068
export JENKINS_PW="password"
7169
```
7270

7371
You might want to put those into your `~/.bashrc`, `~/.zshrc` or equivalent.
7472

73+
## Usage
7574

76-
### Usage
77-
78-
```
75+
```Shell
7976
riffraff status jenkins-job-name
8077
```
8178

8279
This will print the current status of all Jenkins jobs matching the given pattern (`jenkins-job-name` in this case).
8380
You can use any regular expression for that, e.g.:
8481

85-
```
82+
```Shell
8683
riffraff status "^application-.*-unittests$"
8784
```
8885

89-
You can get the full output of each last job matching the pattern with
86+
You can get the full output of each last job matching the pattern with
9087

91-
```
88+
```Shell
9289
riffraff status -v "^application-.*-unittests$"
9390
```
9491

95-
### OBTW
92+
## Development
93+
94+
* Install golang version 1.11 or later for [go modules](https://github.com/golang/go/wiki/Modules) support
95+
* Clone this repository to a directory in your `$GOPATH/src` tree (recommended) or use`go get -u github.com/mre/riffraff.git` (uses https not SSH)
96+
* In the source folder run `go run main.go` to install modules and run `riffraff`
97+
* If you don't have a Jenkins server you can run it by using its [`.war` file](https://jenkins.io/doc/pipeline/tour/getting-started/) (recommended) or installing its [`.deb` file](https://jenkins.io/doc/book/installing)
98+
99+
## OBTW
96100

97101
The tool is named after the [butler from the Rocky Horror Picture Show](https://en.wikipedia.org/wiki/The_Rocky_Horror_Picture_Show:_Let%27s_Do_the_Time_Warp_Again), and not the rapper with the same name ;-).

0 commit comments

Comments
 (0)