capistrano-scm-jenkins 0.5.1 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/.travis.yml +4 -6
- data/Gemfile.lock +11 -6
- data/NEWS.md +21 -0
- data/Rakefile +1 -1
- data/capistrano-scm-jenkins.gemspec +2 -2
- data/lib/capistrano-scm-jenkins/version.rb +1 -1
- data/lib/capistrano/jenkins.rb +3 -11
- data/lib/capistrano/tasks/jenkins.rake +0 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05b5dc0565fe5ea91daff6b8bed3aa24fbe4635f
|
4
|
+
data.tar.gz: 8900b19e755025dc8bf21e41a1eea43c133826e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 649222ff2fb1037779556829615220782b106a30dc8a83fe19f58d0a5e9c53a90855609f3c82b6dfe54be48dc9449c12fde26fd9240c06abc2e3282678037fc0
|
7
|
+
data.tar.gz: 30465130b4aad8b3564231cc458ae942f10b4b3491da45e929c5e0dbb8aa10415d6c12ad235e5bf4a4529c7477440bd126e03d9c0da300e4e542b43fc27e5825
|
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,16 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
capistrano-scm-jenkins (0.5.
|
4
|
+
capistrano-scm-jenkins (0.5.3)
|
5
5
|
capistrano (~> 3.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
|
10
|
+
airbrussh (1.0.2)
|
11
|
+
sshkit (>= 1.6.1, != 1.7.0)
|
12
|
+
capistrano (3.5.0)
|
13
|
+
airbrussh (>= 1.0.0)
|
14
|
+
capistrano-harrow
|
11
15
|
i18n
|
12
16
|
rake (>= 10.0.0)
|
13
|
-
sshkit (
|
17
|
+
sshkit (>= 1.9.0)
|
18
|
+
capistrano-harrow (0.5.2)
|
14
19
|
diff-lcs (1.2.5)
|
15
20
|
i18n (0.7.0)
|
16
21
|
metaclass (0.0.4)
|
@@ -18,7 +23,7 @@ GEM
|
|
18
23
|
metaclass (~> 0.0.1)
|
19
24
|
net-scp (1.2.1)
|
20
25
|
net-ssh (>= 2.6.5)
|
21
|
-
net-ssh (3.
|
26
|
+
net-ssh (3.2.0)
|
22
27
|
rake (10.3.2)
|
23
28
|
rspec (3.1.0)
|
24
29
|
rspec-core (~> 3.1.0)
|
@@ -32,7 +37,7 @@ GEM
|
|
32
37
|
rspec-mocks (3.1.3)
|
33
38
|
rspec-support (~> 3.1.0)
|
34
39
|
rspec-support (3.1.2)
|
35
|
-
sshkit (1.
|
40
|
+
sshkit (1.11.1)
|
36
41
|
net-scp (>= 1.1.2)
|
37
42
|
net-ssh (>= 2.8.0)
|
38
43
|
|
@@ -48,4 +53,4 @@ DEPENDENCIES
|
|
48
53
|
rspec
|
49
54
|
|
50
55
|
BUNDLED WITH
|
51
|
-
1.
|
56
|
+
1.12.4
|
data/NEWS.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
## 0.5.3 (2016-07-19)
|
2
|
+
|
3
|
+
* Try solving #24 using a janky `bash` based solution
|
4
|
+
|
5
|
+
## 0.5.2 (2016-07-19)
|
6
|
+
|
7
|
+
### YANKED
|
8
|
+
|
9
|
+
The Fix for #24 broke things
|
10
|
+
|
11
|
+
* Ensure we move hidden files from an unzipped archive (#24)
|
12
|
+
* Drop Travis tests on Ruby 1.9 versions
|
13
|
+
- The version of `net-ssh` that is installed requires Ruby >= 2.0.0
|
14
|
+
* Switch to container-based Travis tests
|
15
|
+
* RuboCop cleanup
|
16
|
+
- Whitespace, some unnecessary else clauses, add config to be more forgiving of line lengths
|
17
|
+
|
18
|
+
## 0.5.1 (2016-03-22)
|
19
|
+
|
20
|
+
* Loosen Capistrano version pin
|
21
|
+
|
1
22
|
## 0.5.0 (2014-11-11)
|
2
23
|
|
3
24
|
* Clean up some Ruby code, thanks to RuboCop
|
data/Rakefile
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.version = CapistranoScmJenkins::VERSION
|
9
9
|
s.authors = ['LI Daobing', 'Jeff Byrnes']
|
10
10
|
s.email = ['lidaobing@gmail.com', 'jeff@evertrue.com']
|
11
|
-
s.summary =
|
12
|
-
s.description =
|
11
|
+
s.summary = 'Use Jenkins as a Capistrano 3.x SCM.'
|
12
|
+
s.description = 'Capistrano 3.x plugin to deploy Jenkins artifacts.'
|
13
13
|
s.homepage = "https://github.com/lidaobing/#{s.name}"
|
14
14
|
s.license = 'MIT'
|
15
15
|
|
data/lib/capistrano/jenkins.rb
CHANGED
@@ -11,21 +11,13 @@ require 'json'
|
|
11
11
|
class Capistrano::Jenkins < Capistrano::SCM
|
12
12
|
def jenkins_user
|
13
13
|
@jenkins_user ||= begin
|
14
|
-
if fetch(:jenkins_user)
|
15
|
-
fetch(:jenkins_user)
|
16
|
-
else
|
17
|
-
nil
|
18
|
-
end
|
14
|
+
fetch(:jenkins_user) if fetch(:jenkins_user)
|
19
15
|
end
|
20
16
|
end
|
21
17
|
|
22
18
|
def jenkins_pass
|
23
19
|
@jenkins_pass ||= begin
|
24
|
-
if fetch(:jenkins_pass)
|
25
|
-
fetch(:jenkins_pass)
|
26
|
-
else
|
27
|
-
nil
|
28
|
-
end
|
20
|
+
fetch(:jenkins_pass) if fetch(:jenkins_pass)
|
29
21
|
end
|
30
22
|
end
|
31
23
|
|
@@ -143,7 +135,7 @@ class Capistrano::Jenkins < Capistrano::SCM
|
|
143
135
|
# is an archive - unpack and deploy
|
144
136
|
context.execute :rm, '-rf', 'out'
|
145
137
|
context.execute :unzip, fetch(:deployed_artifact_filename, artifact_filename), '-d', 'out/'
|
146
|
-
context.execute :
|
138
|
+
context.execute :bash, "-c 'shopt -s dotglob; mv out/#{fetch(:jenkins_artifact_path, '*')} #{release_path}'"
|
147
139
|
context.execute :rm, '-rf', 'out'
|
148
140
|
else
|
149
141
|
context.execute :cp, fetch(:deployed_artifact_filename, artifact_filename), release_path
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-scm-jenkins
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LI Daobing
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
@@ -92,6 +92,7 @@ files:
|
|
92
92
|
- ".editorconfig"
|
93
93
|
- ".gitignore"
|
94
94
|
- ".rspec"
|
95
|
+
- ".rubocop.yml"
|
95
96
|
- ".travis.yml"
|
96
97
|
- Gemfile
|
97
98
|
- Gemfile.lock
|
@@ -124,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
125
|
version: '0'
|
125
126
|
requirements: []
|
126
127
|
rubyforge_project: capistrano-scm-jenkins
|
127
|
-
rubygems_version: 2.
|
128
|
+
rubygems_version: 2.5.1
|
128
129
|
signing_key:
|
129
130
|
specification_version: 4
|
130
131
|
summary: Use Jenkins as a Capistrano 3.x SCM.
|