forked from fuinorg/event-store-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
22 lines (22 loc) · 706 Bytes
/
Jenkinsfile
File metadata and controls
22 lines (22 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pipeline {
agent any
tools {
jdk 'OpenJDK 11 (latest)'
}
stages {
stage ('Initialize') {
steps {
sh "./mvnw -version"
}
}
stage('Build') {
steps {
withCredentials( [
string(credentialsId: 'sonar_login', variable: 'SONAR_LOGIN')
] ) {
sh "./mvnw clean javadoc:jar deploy jacoco:report sonar:sonar -U -B -P sonatype-oss-release -s /private/jenkins/settings.xml -Dsonar.organization=fuinorg -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_LOGIN}"
}
}
}
}
}