jenkinz
is a tool to retrieve every build for every job ever created and run on a given Jenkins instance.
jenkinz -d https://[jenkins-instance] [options]
Flag | Description | Example |
---|---|---|
-d |
URL of Jenkins | jenkinz -d https://jenkins.example.com |
-creds |
Credentials for Jenkins instance (format user:apikey) | jenkinz -d url -creds "admin:c129e5db6b5e3abdff6eb9b0008ad7f2" |
-c |
Limit the number of workers that are spawned | jenkinz -d url -c 200 |
-timeout |
Timeout for the tool in seconds (default 30) | jenkinz -d url -timeout 10 |
If anonymous read is disabled but you have credentials, you can generate an API Key by navigating to:
https://[jenkins]/user/username/configure
- Under
API Token
clickAdd New Token
go get -u github.com/lc/jenkinz
git clone [email protected]:lc/jenkinz
cd jenkinz && go build -o $GOPATH/bin/jenkinz main.go