bumperok 0.0.11 → 0.1.0
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/bumper.rb +5 -6
- 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: f94604b9be8db207ba476f4a70cad478d3cf9309
|
|
4
|
+
data.tar.gz: b02ea466befa616411b7d5d115c2180cf8ef7732
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 664eea4ac970616e8776a9157835e7b615257075829ab1ae5ee774180307c3d1b6b830b0cbc18589dbbe1369f6decef57e41dcd635c82f637e4db8de346edf43
|
|
7
|
+
data.tar.gz: 208e4618b191df3a050b87d51ad7f0a64fd3d9e54159d57bb666a10a4cb7647377bd92315c16f4bb9a0c6236949c291d59e86027c8adc575820dbd1853e431c8
|
data/lib/bumper.rb
CHANGED
|
@@ -5,12 +5,12 @@ require 'jenkins_api_client'
|
|
|
5
5
|
require 'gitlab'
|
|
6
6
|
|
|
7
7
|
class Bumper
|
|
8
|
-
VERSION = "0.0
|
|
8
|
+
VERSION = "0.1.0"
|
|
9
9
|
|
|
10
10
|
def self.tag git_path, tag_name
|
|
11
|
-
|
|
11
|
+
bumper_ssh do |w|
|
|
12
12
|
w.set_env
|
|
13
|
-
`#{git(git_path)} tag '-f' '#{tag_name}' '-m tagged by Bumber'`
|
|
13
|
+
`#{git(git_path)} tag '-f' '#{tag_name}' '-m tagged by Bumber'`
|
|
14
14
|
`#{git(git_path)} push '--force' 'origin' 'refs/tags/#{tag_name}'`
|
|
15
15
|
end
|
|
16
16
|
end
|
|
@@ -27,7 +27,7 @@ class Bumper
|
|
|
27
27
|
|
|
28
28
|
def self.submodule_update_version display, name, git
|
|
29
29
|
project_path = 'git_with_submodule'
|
|
30
|
-
|
|
30
|
+
bumper_ssh do |w|
|
|
31
31
|
w.set_env
|
|
32
32
|
`rm -Rf #{project_path}`
|
|
33
33
|
`git clone --recursive #{git} #{project_path}`
|
|
@@ -50,7 +50,7 @@ class Bumper
|
|
|
50
50
|
end
|
|
51
51
|
if merge
|
|
52
52
|
submodule_update_feature submodule_name, git, merge.source_branch
|
|
53
|
-
Gitlab.create_merge_request to_project_id, merge.title, source_branch: merge.source_branch, target_branch: 'master'
|
|
53
|
+
Gitlab.create_merge_request to_project_id, "[AUTO] #{merge.title}", source_branch: merge.source_branch, target_branch: 'master'
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
|
@@ -81,5 +81,4 @@ class Bumper
|
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
|
|
85
84
|
end
|