forked from AudaxHealthInc/alpakka
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
50 lines (45 loc) · 1.46 KB
/
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
@Library("[email protected]") _
pipeline {
agent any
options {
timeout(time: 30, unit: 'MINUTES')
timestamps()
ansiColor('xterm')
}
triggers {
issueCommentTrigger('.*test this please.*')
}
stages {
stage('Checkout tags') {
// Get tags, because default checkout does not include them.
steps {
checkout scm: [
$class : "GitSCM",
branches : scm.branches,
extensions : [[
$class : "CloneOption",
noTags : false,
reference: "",
shallow : false]],
userRemoteConfigs: scm.userRemoteConfigs
]
}
}
stage('Build, Test, Publish') {
agent {
docker {
image "docker.werally.in/java8-sbt:0.13.8"
reuseNode true
label 'ec2'
args '-v /etc/passwd:/etc/passwd:ro'
}
}
environment {
HOME = "${env.WORKSPACE}"
}
steps {
rally_sbt(["user.home": "${env.HOME}"], "+test +publish")
}
}
}
}