cicd-builder 0.9.60 → 0.9.61
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 246f9b00a120827355ddb4302ff2591b87b0c2ce
|
4
|
+
data.tar.gz: f5d332f8fee9bcbfc3ba0f6b34836e1ecdd349f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a5bbed39584e9ce71a8ca73c48f4fda0739f70d1c64f27a6b77504040f46891c45034ddaefb18c778ae4d9adb20dd5633743108df15f1f53106d3ca69d42c8b
|
7
|
+
data.tar.gz: 0901978e2fb0bb255892c832bcc9e21291e09e9746c1aa2c311f29ef8afb93fc286b42fb7d676be38abae2e37ee65573dd3e6e7578f86edb385ea53d6247c4ea
|
data/Gemfile.lock
CHANGED
@@ -26,13 +26,18 @@ module CiCd
|
|
26
26
|
#raise Exception.new("Need these environment variables: #{missing}")
|
27
27
|
puts("Need these environment variables: #{missing.ai}")
|
28
28
|
return 1
|
29
|
-
|
30
|
-
|
29
|
+
end
|
30
|
+
@default_options[:env_unused] = @default_options[:env_keys].select{|k| k !~ /^(WORKSPACE|JENKINS|BUILD_|JOB_|VERSION|RELEASE|VARIANT|BRANCH|GIT_|PROJECT_|REPO_)/}
|
31
|
+
@default_options[:env_unused] = @default_options[:env_unused].select{|k| k if ENV.has_key?(k) and ENV[k] != 'faked' }
|
32
|
+
0
|
31
33
|
end
|
32
34
|
|
33
35
|
# ---------------------------------------------------------------------------------------------------------------
|
34
36
|
def getVars()
|
35
37
|
@logger.step CLASS+'::'+__method__.to_s
|
38
|
+
|
39
|
+
@logger.info "Unused ENV vars: #{@default_options[:env_unused].ai}" if @default_options[:env_unused].size > 0
|
40
|
+
|
36
41
|
@vars ||= {}
|
37
42
|
@vars[:release] = 'latest'
|
38
43
|
@vars[:build_store] = '/tmp'
|
@@ -45,6 +45,7 @@ EC2 Instance profile
|
|
45
45
|
|
46
46
|
# ---------------------------------------------------------------------------------------------------------------
|
47
47
|
def uploadToRepo(artifacts)
|
48
|
+
@logger.info CLASS+'::'+__method__.to_s
|
48
49
|
s3 = getS3()
|
49
50
|
artifacts.each{|art|
|
50
51
|
|
@@ -150,6 +151,7 @@ EC2 Instance profile
|
|
150
151
|
|
151
152
|
# ---------------------------------------------------------------------------------------------------------------
|
152
153
|
def takeInventory()
|
154
|
+
@logger.info CLASS+'::'+__method__.to_s
|
153
155
|
varianth = nil
|
154
156
|
# Read and parse in JSON
|
155
157
|
key, json, over = pullInventory()
|
@@ -245,6 +247,7 @@ EC2 Instance profile
|
|
245
247
|
end
|
246
248
|
|
247
249
|
def pushInventory(json_s, key)
|
250
|
+
@logger.info CLASS+'::'+__method__.to_s
|
248
251
|
begin
|
249
252
|
md5 = Digest::MD5.hexdigest(json_s)
|
250
253
|
# [:'x-amz-meta-digest'] = "md5=#{md5}"
|
@@ -313,7 +313,7 @@ module CiCd
|
|
313
313
|
@arti_search_result = ::Artifactory::Resource::Artifact.latest_version(client: @client, group: artifactory_org_path(), name: artifact_name, repos: [repo || artifactory_repo()])
|
314
314
|
}
|
315
315
|
# noinspection RubyScope
|
316
|
-
if @arti_search_result.size > 0
|
316
|
+
if @arti_search_result and @arti_search_result.size > 0
|
317
317
|
@logger.info "\tresult: #{@arti_search_result}"
|
318
318
|
end
|
319
319
|
@arti_search_result
|
data/lib/cicd/builder/version.rb
CHANGED
@@ -4,7 +4,7 @@ module CiCd
|
|
4
4
|
# file = File.expand_path("#{File.dirname(__FILE__)}/../../../VERSION")
|
5
5
|
# lines = File.readlines(file)
|
6
6
|
# version = lines[0]
|
7
|
-
version = '0.9.
|
7
|
+
version = '0.9.61'
|
8
8
|
VERSION = version unless const_defined?('VERSION')
|
9
9
|
major, minor, tiny = VERSION.split('.')
|
10
10
|
MAJOR = major unless const_defined?('MAJOR')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cicd-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.61
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christo De Lange
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|