-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
50 lines (47 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
#!groovy
pipeline {
agent {
dockerfile true
}
environment {
NEXUS = credentials('exchange-nexus')
}
stages {
stage('Test') {
steps {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'sonarqube-official', passwordVariable: 'SONAR_SERVER_TOKEN', usernameVariable: 'SONAR_SERVER_URL']]) {
sh 'sbt -mem 4096 -Dfile.encoding=UTF-8 clean coverage test coverageReport sonarMe'
}
}
}
}
stage('Publish') {
when {
anyOf {
branch 'master'
branch 'build/develop'
branch 'release/*'
}
}
steps {
wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
sh 'sbt publish'
}
}
}
stage('Trigger amf projects') {
when {
branch 'build/develop'
}
steps {
echo "Starting TCKutor Applications/AMF/amfTCKutor/master"
build job: 'application/AMF/amfTCKutor/master', wait: false
echo "Starting TCKutor Applications/AMF/amfexamples/master"
build job: 'application/AMF/amf-examples/snapshot', wait: false
echo "Starting TCKutor Applications/AMF/amfinterfacetests/master"
build job: 'application/AMF/amf-interface-tests/master', wait: false
}
}
}
}