You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Server URL, Username and password may be specified either by the command line arguments or in configuration file **(.jenkins-cli)**. Command line arguments has the highest priority, after that the **.jenkins-cli** file from current folder is taking into account. If there is no.jenkins-cli file in current folder, settings will be read from **.jenkins-cli** from the home folder
@@ -45,13 +54,87 @@ Server URL, Username and password may be specified either by the command line ar
45
54
console Show console for the build
46
55
builds Show builds for job
47
56
changes Show build's changes
48
-
```
57
+
Run `jenkins --help` for detailed help. To see the optional parameters, run `--help` for the specific command. For example `jenkins jobs --help` will show job status description and optional arguments.
58
+
49
59
50
60
# Usage example:
51
61
62
+
Show status descriptions
63
+
```bash
64
+
$ jenkins jobs --help
65
+
usage: jenkins jobs [-h] [-a] [-p]
66
+
67
+
Status description:
68
+
69
+
... -> Unknown
70
+
F.. -> Failed
71
+
D.. -> Disabled
72
+
U.. -> Unstable
73
+
D.. -> Disabled
74
+
S.. -> Stable
75
+
A.. -> Aborted
76
+
.>> -> Build in progress
77
+
78
+
optional arguments:
79
+
-h, --help show this help message and exit
80
+
-a Show only active jobs
81
+
-p Show only jobs thats in build progress
82
+
```
83
+
Show jobs
84
+
```bash
85
+
$ jenkins jobs
86
+
D.. hudson
87
+
S.. jenkins-cli
88
+
U>> new-project
89
+
```
90
+
Show job info
91
+
```bash
92
+
$ jenkins info jenkins-cli
93
+
Last build name: jenkins-cli #18 (result: SUCCESS)
94
+
Last success build name: jenkins-cli #18
95
+
Build started: 2016-03-31 00:22:38.326999
96
+
Building now: No
97
+
Git branch set to: master
98
+
```
99
+
Update VCS branch
100
+
```bash
101
+
$ jenkins setbranch new-feature
102
+
Done
103
+
```
104
+
Run job
105
+
```bash
106
+
$ jenkins start jenkins-cli
107
+
jenkins-cli: started
108
+
```
109
+
Check job builds
110
+
```bash
111
+
$ jenkins builds jenkins-cli
112
+
S.. #18 0:00:07 (2 commits)
113
+
S.. #17 0:00:08 (2 commits)
114
+
F.. #16 0:00:00 (4 commits)
115
+
S.. #15 0:00:08 (2 commits)
116
+
```
117
+
Show previous build changes
118
+
```bash
119
+
$ jenkins changes jenkins-cli -b 17
120
+
1. add .travis.yml from add-travis branch by Denys Levchenko affected 1 files
121
+
2. scaffolding for tests by Denys Levchenko affected 5 files
0 commit comments