Browse Source

[ci] Clean working directory after build in package and sdks build

Alexander Köplinger 6 years ago
parent
commit
d159a38c47

+ 2 - 0
scripts/ci/pipeline/osx-package.groovy

@@ -72,6 +72,8 @@ try {
                                 doNotWaitForPreviousBuild: true,
                                 uploadArtifactsOnlyIfSuccessful: true)
                 }
+
+                sh 'git clean -xdff'
             }
         }
 

+ 2 - 0
scripts/ci/pipeline/sdks-archive.groovy

@@ -143,6 +143,8 @@ def archive (product, configuration, platform, chrootname = "", chrootadditional
                                 uploadArtifactsOnlyIfSuccessful: true)
                 }
 
+                sh 'git clean -xdff'
+
                 utils.reportGitHubStatus (isPr ? env.ghprbActualCommit : commitHash, "Archive-${product}-${configuration}-${platform}", "https://xamjenkinsartifact.azureedge.net/mono-sdks/${packageFileName}", 'SUCCESS', packageFileName)
             }
             catch (Exception e) {

+ 2 - 0
scripts/ci/pipeline/win-package.groovy

@@ -83,6 +83,8 @@ try {
                                 doNotWaitForPreviousBuild: true,
                                 uploadArtifactsOnlyIfSuccessful: true)
                 }
+
+                sh 'git clean -xdff'
             }
         }