Skip to content

Commit

Permalink
wrap mvn in ssh
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information
berezovskyi committed Feb 15, 2022
1 parent 1c5842c commit 9c19b46
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,21 @@ pipeline {
jdk 'temurin-jdk11-latest'
}
stages {
stage('Build') {
steps {
sh '''
java -version
mvn -v
'''
}
}
// stage('Build') {
// steps {
// sh '''
// java -version
// mvn -v
// '''
// }
// }
stage('Sonar') {
steps{
steps {
withCredentials([string(credentialsId: 'sonarcloud-token', variable: 'SONARCLOUD_TOKEN')]) {
withSonarQubeEnv('SonarCloud.io') {
sh '''
mvn clean verify -B sonar:sonar -Dsonar.projectKey=org.eclipse.lyo -Dsonar.organization=eclipse -Dsonar.host.url=${SONAR_HOST_URL} -Dsonar.login=${SONARCLOUD_TOKEN}
'''
}
}
}
Expand Down

0 comments on commit 9c19b46

Please sign in to comment.