-
Notifications
You must be signed in to change notification settings - Fork 74
/
Jenkinsfile
60 lines (42 loc) · 997 Bytes
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
pipeline {
agent { label 'virtualbox' }
options {
disableConcurrentBuilds()
}
parameters {
string(
name: 'VAGRANT_TEST_ISSUE',
defaultValue: '180',
description: 'The test/issues/# where "#" refers to the test environment to invoke'
)
string(
name: 'DEFAULT_RVM_RUBY',
defaultValue: '2.4.4',
description: 'The default ruby to use for RVM'
)
}
stages {
stage('test') {
environment {
VAGRANT_TEST_ISSUE = "${params.VAGRANT_TEST_ISSUE}"
DEFAULT_RVM_RUBY = "${params.DEFAULT_RVM_RUBY}"
}
steps {
timestamps {
ansiColor('xterm') {
dir("${WORKSPACE}") {
sh '''#!/usr/bin/env bash -l
set +x
tty
. jenkins/helper_functions
setup_test_env
set -e
run_all_tests
'''
}
}
}
}
}
} // stages
}