jenkinsutil 1.0.62 → 1.0.63
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jenkins/test.groovy +52 -48
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 664a1b4d47f37654107fce6e55fbae5f5c313032
|
4
|
+
data.tar.gz: b77da66042e83089f6f452c36dd479f5fd1eef13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72136a88352a4c7b337c4602c3f4487f22aa34174cae205dbab682c8954503084b14130465c4e984b47c850726d4b93da3fbddcdfc17222721777fb17b1711fb
|
7
|
+
data.tar.gz: 97b7e56f7e123ab7cb963d238e9bd67ebd72f32849883134105e5d09618c5f1cb1a7d028a45fa43d065adeeb0b40f600786e57839894d5bfff0487e712567de2
|
data/jenkins/test.groovy
CHANGED
@@ -1,60 +1,64 @@
|
|
1
1
|
#!groovy
|
2
2
|
|
3
|
-
stage 'test'
|
4
|
-
|
5
3
|
parallel(
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
'linux': {
|
5
|
+
stage('linux test') {
|
6
|
+
node('docker') {
|
7
|
+
checkout scm
|
9
8
|
|
10
|
-
|
11
|
-
|
12
|
-
|
9
|
+
def dockerRepository = "${env.JOB_NAME}".toLowerCase()
|
10
|
+
def dockerTag = "${dockerRepository}:${env.BUILD_NUMBER}"
|
11
|
+
def dockerContainerName = "${dockerRepository}_${env.BUILD_NUMBER}"
|
13
12
|
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
sh """docker build \
|
14
|
+
-t ${dockerTag} \
|
15
|
+
."""
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
sh """docker run \
|
18
|
+
-e BUILD_NUMBER=${env.BUILD_NUMBER} \
|
19
|
+
-e DROPBOX_ACCESS_TOKEN=${env.DROPBOX_ACCESS_TOKEN} \
|
20
|
+
--name ${dockerContainerName} \
|
21
|
+
${dockerTag}"""
|
23
22
|
|
24
|
-
|
25
|
-
|
23
|
+
sh "docker cp ${dockerContainerName}:/artifacts ${env.WORKSPACE}"
|
24
|
+
sh "docker stop ${dockerContainerName}"
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
26
|
+
step([$class: 'JUnitResultArchiver', testResults: 'artifacts/**/*.xml'])
|
27
|
+
//step([$class: 'RcovPublisher', reportDir: 'artifacts/coverage/rcov/'])
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
'osx': {
|
32
|
+
stage('osx test') {
|
33
|
+
node('ruby-osx') {
|
34
|
+
checkout scm
|
35
|
+
|
36
|
+
sh "bundle install --path='./gems/'"
|
37
|
+
|
38
|
+
sh """DROPBOX_ACCESS_TOKEN=${env.DROPBOX_ACCESS_TOKEN} \
|
39
|
+
RUBYOPT='-W0' \
|
40
|
+
CI_CAPTURE=off \
|
41
|
+
bundle exec \
|
42
|
+
rake ci:setup:testunit \
|
43
|
+
test:all \
|
44
|
+
build"""
|
45
|
+
|
46
|
+
step([$class: 'JUnitResultArchiver', testResults: 'test/reports/**/*.xml'])
|
47
|
+
}
|
48
|
+
}
|
49
|
+
},
|
50
|
+
'windows': {
|
51
|
+
stage('windows test') {
|
52
|
+
node('ruby-windows') {
|
53
|
+
checkout scm
|
51
54
|
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
+
bat 'call bundle install --path=./gems'
|
56
|
+
bat 'set DROPBOX_ACCESS_TOKEN=${env.DROPBOX_ACCESS_TOKEN}'
|
57
|
+
bat 'call bundle exec rake ci:setup:testunit test:default build'
|
55
58
|
|
56
|
-
|
57
|
-
|
59
|
+
step([$class: 'JUnitResultArchiver', testResults: 'test/reports/**/*.xml'])
|
60
|
+
//step([$class: 'RcovPublisher', reportDir: 'coverage/rcov/'])
|
61
|
+
}
|
62
|
+
}
|
58
63
|
}
|
59
|
-
}
|
60
64
|
)
|
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.
|
4
|
+
version: 1.0.63
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett McGinnis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open4
|