-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
43 lines (40 loc) · 1.01 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
#!groovy
@Library("jenkinsfile-lib") _
pipeline {
agent any
environment {
ARTIFACTORY_CREDS = credentials('artifactory-deployer')
}
stages {
stage('Clean & Compile') {
steps {
script {
def sbtHome = tool 'sbt 1.0'
sh "${sbtHome}/bin/sbt \"set test in Test := {}\" clean +package"
}
}
}
stage('Test') {
steps {
script {
def sbtHome = tool 'sbt 1.0'
sh "${sbtHome}/bin/sbt test"
}
}
post {
always {
archive "target/**/*"
junit 'target/test-reports/*.xml'
}
}
}
stage('Publish') {
steps {
script {
def sbtHome = tool 'sbt 1.0'
sh "${sbtHome}/bin/sbt +publish"
}
}
}
}
}