nixenvironment 0.0.133 → 0.0.134
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/nixenvironment/jenkins/Modules/git_helper.rb +18 -6
- data/lib/nixenvironment/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: d0a473efe4d69dddf84f83f48b3e10cdfae4bbf2
|
|
4
|
+
data.tar.gz: e47bca374a65336b758d21866bcd4c25cbe61378
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: adab622f98434f2855228331b8568be67592b9cb21bd5771117e823ef55acfabc83388cabe2e72c06f81cea1ffaa8af5b910a6740af16253d8f71969f9c8fd35
|
|
7
|
+
data.tar.gz: 2e64bd6878198a84ebe1eac92a598f7a0d1acc74bab976b301ef7b3cb2594314647629abd4c07beb90ab6044326aa7cd772db7d278aad0819d2a168f6b08a5be
|
|
@@ -13,22 +13,34 @@ module GitHelper
|
|
|
13
13
|
def clone_environment
|
|
14
14
|
FileUtils.mkdir_p(path_to_environment)
|
|
15
15
|
|
|
16
|
-
Dir.chdir(path_to_environment)
|
|
16
|
+
Dir.chdir(path_to_environment) do
|
|
17
|
+
unless system('git clone git@nix.githost.io.write:NIX_iPhone_Internal/IJE.git .')
|
|
18
|
+
if system('git clone https://nix.githost.io/NIX_iPhone_Internal/IJE.git .')
|
|
19
|
+
`git remote set-url origin git@nix.githost.io.write:NIX_iPhone_Internal/IJE.git`
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
17
23
|
end
|
|
18
24
|
|
|
19
25
|
def clone_provisioning_updater
|
|
20
26
|
FileUtils.mkdir_p(path_to_provisioning_updater)
|
|
21
|
-
|
|
22
|
-
Dir.chdir(path_to_provisioning_updater)
|
|
27
|
+
|
|
28
|
+
Dir.chdir(path_to_provisioning_updater) do
|
|
29
|
+
unless system('git clone git@nix.githost.io:NIX_iPhone_Internal/NPU.git .')
|
|
30
|
+
if system('git clone https://nix.githost.io/NIX_iPhone_Internal/NPU.git .')
|
|
31
|
+
`git remote set-url origin git@nix.githost.io:NIX_iPhone_Internal/NPU.git`
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
23
35
|
end
|
|
24
36
|
|
|
25
|
-
def set_git_hook
|
|
37
|
+
def set_git_hook
|
|
26
38
|
Thread.new do
|
|
27
39
|
Dir.chdir(path_to_environment) do
|
|
28
|
-
|
|
40
|
+
loop do
|
|
29
41
|
if repos_changed
|
|
30
42
|
`git pull`
|
|
31
|
-
|
|
43
|
+
yield
|
|
32
44
|
end
|
|
33
45
|
|
|
34
46
|
sleep(15)
|