pipeline { agent any tools { maven 'maven3' jdk 'JDK17' } environment { SCANNER_HOME=tool 'sonar-scanner' } stages { stage('Continuous Download') { steps { git 'https://github.com/stardistributors/BoardgameListingWebApp.git' } } stage('Compile') { steps { sh 'mvn compile' } } stage('Continuous Test') { steps { sh 'mvn test' } } stage('Sonar Qube') { steps { withSonarQubeEnv('sonar') { sh '''$SCANNER_HOME/bin/sonar-scanner -Dsonar.projectName=Boardgame -Dsonar.projectKey=Boardgame -Dsonar.java.binaries=. ''' } } } stage('Continuous Build') { steps { sh 'mvn package' } } } }