forked from CROSSINGTUD/CryptoAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
42 lines (35 loc) · 837 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
pipeline {
agent any
tools {
jdk 'Oracle JDK 9'
}
stages {
stage('Build') {
steps {
sh 'mvn clean compile -U'
}
}
stage('Test') {
steps {
sh 'mvn test -U'
}
post {
always {
junit 'shippable/testresults/*.xml'
}
}
}
stage('Deploy'){
when {
anyOf { branch 'master'; branch 'develop' }
}
steps {
configFileProvider(
[configFile(fileId: '1d7d4c57-de41-4f04-8e95-9f3bb6382327', variable: 'MAVEN_SETTINGS')]) {
sh 'cd CryptoAnalysis; mvn -s $MAVEN_SETTINGS clean deploy -DskipTests'
sh 'cd CryptoAnalysis-Android; mvn -s $MAVEN_SETTINGS clean deploy -DskipTests'
}
}
}
}
}