-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
50 lines (50 loc) · 1.37 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
pipeline {
agent {
label 'buildagent'
}
environment {
// Define sbt path
SBT_HOME = tool name: 'sbt-1.2.6', type: 'org.jvnet.hudson.plugins.SbtPluginBuilder$SbtInstallation'
SBT_THREAD_NUMBER = 7
PATH = "${env.SBT_HOME}/bin:${env.PATH}"
}
options {
ansiColor('xterm')
}
stages {
stage('Unit Test') {
steps {
sh "sbt -mem 10240 checkPR"
}
}
stage('Check containers') {
steps {
sh 'docker rmi com.wavesplatform/it com.wavesplatform/node-it com.wavesplatform/dex-it || true'
sh 'docker ps -a'
sh 'docker images'
sh 'docker network ls'
sh 'rm -rf it/target || true'
}
}
stage('Integration Test') {
steps {
sh "sbt -mem 40960 clean it/test"
}
post {
always {
dir('it/target/logs') {
sh "tar zcf logs.tar.gz * || true"
}
dir('node-it/target/logs') {
sh "tar zcf node.logs.tar.gz * || true"
}
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'it/target/logs/*.logs.tar.gz'
}
}
}