jenkins-build 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/jenkins/build/cli.rb +11 -2
- data/lib/jenkins/build/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 730faf862114af0c23a1d01d874413eafc182d41
|
|
4
|
+
data.tar.gz: c1e1a6ad206f10b633ef145586a41f28293f0fb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3168364d029f0ae5248e29cbf73001ca58cafc588f6bcdf00a31ca1ab31bed7e402eb48db6799c4e6925f495f76827a6e6c875712189d7648df3b62671914c89
|
|
7
|
+
data.tar.gz: 38d0d8f0439c304c9eac1fd11dccf80d8ed2dcb83325f2f492fcb8dca5c4b99ff02e00b2bc7b771e5d4b53242eee7d928a0e5e47093ba61de074ef497d461a6f
|
data/lib/jenkins/build/cli.rb
CHANGED
|
@@ -18,8 +18,7 @@ module Jenkins
|
|
|
18
18
|
configuration.write
|
|
19
19
|
end
|
|
20
20
|
|
|
21
|
-
option :branch, desc: 'Git branch
|
|
22
|
-
|
|
21
|
+
option :branch, desc: 'Git branch', default: current_branch
|
|
23
22
|
desc 'trigger', 'triggers build of a branch'
|
|
24
23
|
def trigger
|
|
25
24
|
unless configuration.exists?
|
|
@@ -31,6 +30,16 @@ module Jenkins
|
|
|
31
30
|
puts "Triggered build of #{configuration.project} with branch #{branch}."
|
|
32
31
|
end
|
|
33
32
|
|
|
33
|
+
option :branch, desc: 'Git branch', default: current_branch
|
|
34
|
+
desc 'status', 'prints status of a branch'
|
|
35
|
+
def status
|
|
36
|
+
unless system('which', 'hub')
|
|
37
|
+
warn 'install `hub` tool to get ci status (https://github.com/github/hub)'
|
|
38
|
+
exit 1
|
|
39
|
+
end
|
|
40
|
+
exec('hub', 'ci-status', branch, '-v')
|
|
41
|
+
end
|
|
42
|
+
|
|
34
43
|
private
|
|
35
44
|
|
|
36
45
|
def branch
|