jenkinsutil 1.0.67 → 1.0.68

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: ccc3b3e524312f9dd0e4d6c388c332869f875258
4
- data.tar.gz: a8c373cf0712c7889e739bded26148ab461706b8
3
+ metadata.gz: f44f4be705163de3732c3ff6f2a1a6f9c4a314b0
4
+ data.tar.gz: b394900c5983acc829a83bedd42963635e1d3052
5
5
  SHA512:
6
- metadata.gz: 8e2923f2d0c8260489d552bdb94bb495fadcc7944c3e2cc888e2c9a1141dccfad06facb1afd43accd5c49744654f97de614d72b6fcea97594c33634ab9a2fd4e
7
- data.tar.gz: 868cd5689a22c7c69d07da54be384a4b53a162238501b5fee41f132b2c9f27c7e4a48ba8458f1d61a5c2cf4595d87667b48186030378f046d7834ac8dc8a5b7c
6
+ metadata.gz: f674b7ee533fb2a8d997cf63c63e572a6cf8a49fa4f7e3fb7b95bb02c689496729681e07c71c29d346a4f6a13525fecad68f00cc33fbc836509869f02881e8af
7
+ data.tar.gz: e6276ca996a864e68efd3a9bc5efa31a346dbacb40c0e4f39f44d7d71c83c65c117b7c9de83645b1fd0a14de9d311c4295c16bacd59ebd4eb8609ff4e58009bf
data/Dockerfile CHANGED
@@ -15,7 +15,8 @@ ADD . ${BUILD_DIR}
15
15
 
16
16
  WORKDIR ${BUILD_DIR}
17
17
 
18
- RUN bundle update && \
18
+ RUN bundle config specific_platform true && \
19
+ bundle update && \
19
20
  bundle install
20
21
 
21
22
  ARG ARTIFACTS_DIR="/artifacts"
data/jenkins/test.groovy CHANGED
@@ -25,10 +25,13 @@ stage('linux test') {
25
25
  //step([$class: 'RcovPublisher', reportDir: 'artifacts/coverage/rcov/'])
26
26
  }
27
27
  }
28
+
28
29
  stage('osx test') {
29
30
  node('ruby-osx') {
30
31
  checkout scm
31
32
 
33
+ sh "bundle config specific_platform true"
34
+
32
35
  sh "bundle install --path='./gems/'"
33
36
 
34
37
  sh """DROPBOX_ACCESS_TOKEN=${env.DROPBOX_ACCESS_TOKEN} \
@@ -42,10 +45,12 @@ stage('osx test') {
42
45
  step([$class: 'JUnitResultArchiver', testResults: 'test/reports/**/*.xml'])
43
46
  }
44
47
  }
48
+
45
49
  stage('windows test') {
46
50
  node('ruby-windows') {
47
51
  checkout scm
48
52
 
53
+ bat 'call bundle config specific_platform true'
49
54
  bat 'call bundle install --path=./gems'
50
55
  bat 'set DROPBOX_ACCESS_TOKEN=${env.DROPBOX_ACCESS_TOKEN}'
51
56
  bat 'call bundle exec rake SSL_CERT_FILE=%cd%\\certs\\cacert.pem ci:setup:testunit test:default build'
@@ -16,9 +16,10 @@ module DropboxUtil
16
16
 
17
17
  @dropbox_client ||= DropboxApi::Client.new(ENV['DROPBOX_ACCESS_TOKEN'])
18
18
  @sources = sources
19
- @destination = destination
20
19
  @flatten = flatten
21
20
  @root_path = root || Dir.pwd
21
+ @destination = destination
22
+ @destination = "/#{@destination}" unless destination.to_s.start_with?('/')
22
23
 
23
24
  upload_files
24
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkinsutil
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.67
4
+ version: 1.0.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett McGinnis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open4