Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipeline {
- agent any
- stages {
- stage('Checkout') {
- steps {
- echo 'Retrieving Jenkinsfile from the github repository.'
- checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'LocalBranch', localBranch: 'dummy']], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/humblemetsuke/coursework_2']]])
- }
- }
- stage('SonarQube') {
- environment {
- scannerHome = tool 'SonarQube'
- }
- steps {
- withSonarQubeEnv('SonarQube') {
- sh "${scannerHome}/bin/sonar-scanner"
- }
- timeout(time: 10, unit: 'MINUTES') {
- waitForQualityGate abortPipeline: true
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement