Parcourir la source

adjusted jenkinsfile to cleanup workspace

xiaoct il y a 8 ans
Parent
commit
cf4186abf8
1 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 5 0
      Jenkinsfile

+ 5 - 0
Jenkinsfile

@@ -8,6 +8,11 @@ pipeline {
         }
         }
     }
     }
     stages {
     stages {
+        stage('Clean Up Workspace'){
+            steps {
+                cleanWs()
+            }
+        }
         stage('SonarQube Analysis') {
         stage('SonarQube Analysis') {
             steps {
             steps {
                 sh 'sonar-scanner'
                 sh 'sonar-scanner'