You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by zh...@apache.org on 2018/07/23 05:54:26 UTC

[bookkeeper] branch master updated: [CI] Cleanup workspace before build

This is an automated email from the ASF dual-hosted git repository.

zhaijia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 89f8ee9  [CI] Cleanup workspace before build
89f8ee9 is described below

commit 89f8ee91ff768664b5da2c52fcac1d1b7f0614f0
Author: Sijie Guo <si...@apache.org>
AuthorDate: Mon Jul 23 13:53:38 2018 +0800

    [CI] Cleanup workspace before build
    
    Descriptions of the changes in this PR:
    
    *Motivation*
    
    A lot of CI jobs failed due to gitlock file left in the workspace
    
    *Changes*
    
    Cleanup workspace before build
    
    Author: Sijie Guo <si...@apache.org>
    
    Reviewers: Enrico Olivelli <eo...@gmail.com>, Jia Zhai <None>
    
    This closes #1566 from sijie/cleanup_workspace
---
 .test-infra/jenkins/job_bookkeeper_codecoverage.groovy                 | 3 +++
 .test-infra/jenkins/job_bookkeeper_postcommit_master_java8.groovy      | 3 +++
 .test-infra/jenkins/job_bookkeeper_postcommit_master_java9.groovy      | 3 +++
 .test-infra/jenkins/job_bookkeeper_postcommit_validation_master.groovy | 3 +++
 .test-infra/jenkins/job_bookkeeper_postcommit_website.groovy           | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_bookie_tests.groovy       | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_client_tests.groovy       | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_integrationtests.groovy   | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_java8.groovy              | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_java9.groovy              | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_remaining_tests.groovy    | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_replication_tests.groovy  | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_tls_tests.groovy          | 3 +++
 .test-infra/jenkins/job_bookkeeper_precommit_validation.groovy         | 3 +++
 14 files changed, 42 insertions(+)

diff --git a/.test-infra/jenkins/job_bookkeeper_codecoverage.groovy b/.test-infra/jenkins/job_bookkeeper_codecoverage.groovy
index 6127812..0763549 100644
--- a/.test-infra/jenkins/job_bookkeeper_codecoverage.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_codecoverage.groovy
@@ -23,6 +23,9 @@ mavenJob('bookkeeper_codecoverage') {
   description('runs a `mvn clean verify` of the nightly snapshot for bookkeeper,\n\
                 running tests and gathering code coverage metrics.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Set common parameters.
   common_job_properties.setTopLevelMainJobProperties(delegate)
 
diff --git a/.test-infra/jenkins/job_bookkeeper_postcommit_master_java8.groovy b/.test-infra/jenkins/job_bookkeeper_postcommit_master_java8.groovy
index 42f2c35..bb5a5d5 100644
--- a/.test-infra/jenkins/job_bookkeeper_postcommit_master_java8.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_postcommit_master_java8.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 mavenJob('bookkeeper_postcommit_master_java8') {
   description('Runs nightly build for bookkeeper in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Set common parameters.
   common_job_properties.setTopLevelMainJobProperties(
     delegate, 'master', 'JDK 1.8 (latest)')
diff --git a/.test-infra/jenkins/job_bookkeeper_postcommit_master_java9.groovy b/.test-infra/jenkins/job_bookkeeper_postcommit_master_java9.groovy
index ec6c95e..6669104 100644
--- a/.test-infra/jenkins/job_bookkeeper_postcommit_master_java9.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_postcommit_master_java9.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 mavenJob('bookkeeper_postcommit_master_java9') {
   description('Runs nightly build for bookkeeper in Java 9.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Set common parameters.
   common_job_properties.setTopLevelMainJobProperties(
     delegate, 'master', 'JDK 1.9 (latest)')
diff --git a/.test-infra/jenkins/job_bookkeeper_postcommit_validation_master.groovy b/.test-infra/jenkins/job_bookkeeper_postcommit_validation_master.groovy
index de45c32..f7005b3 100644
--- a/.test-infra/jenkins/job_bookkeeper_postcommit_validation_master.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_postcommit_validation_master.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 mavenJob('bookkeeper_postcommit_validation_master') {
   description('Runs postcommit validation nightly for bookkeeper.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Set common parameters.
   common_job_properties.setTopLevelMainJobProperties(
     delegate, 'master', 'JDK 1.8 (latest)')
diff --git a/.test-infra/jenkins/job_bookkeeper_postcommit_website.groovy b/.test-infra/jenkins/job_bookkeeper_postcommit_website.groovy
index 8a39937..f99cb42 100644
--- a/.test-infra/jenkins/job_bookkeeper_postcommit_website.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_postcommit_website.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 job('bookkeeper_postcommit_publish_website') {
   description('Publish website to asf-site branch')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Set common parameters.
   common_job_properties.setTopLevelWebsiteJobProperties(delegate)
 
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_bookie_tests.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_bookie_tests.groovy
index 137abdd..f0e9ec0 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_bookie_tests.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_bookie_tests.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 freeStyleJob('bookkeeper_precommit_bookie_tests') {
   description('Run bookkeeper bookie tests in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Execute concurrent builds if necessary.
   concurrentBuild()
 
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_client_tests.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_client_tests.groovy
index 28cfba0..b09607c 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_client_tests.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_client_tests.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 freeStyleJob('bookkeeper_precommit_client_tests') {
   description('Run bookkeeper client tests in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Execute concurrent builds if necessary.
   concurrentBuild()
 
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_integrationtests.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_integrationtests.groovy
index ac56b9e..f070822 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_integrationtests.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_integrationtests.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 freeStyleJob('bookkeeper_precommit_integrationtests') {
     description('precommit integration test verification for pull requests of <a href="http://bookkeeper.apache.org">Apache BookKeeper</a>.')
 
+    // clean up the workspace before build
+    wrappers { preBuildCleanup() }
+
     // Set common parameters.
     common_job_properties.setTopLevelMainJobProperties(
         delegate,
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_java8.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_java8.groovy
index 1e4615e..67d7646 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_java8.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_java8.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 mavenJob('bookkeeper_precommit_pullrequest_java8') {
   description('precommit verification for pull requests of <a href="http://bookkeeper.apache.org">Apache BookKeeper</a> in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Temporary information gathering to see if full disks are causing the builds to flake
   preBuildSteps {
     shell("id")
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_java9.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_java9.groovy
index 399d915..43cb02b 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_java9.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_java9.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 mavenJob('bookkeeper_precommit_pullrequest_java9') {
   description('precommit verification for pull requests of <a href="http://bookkeeper.apache.org">Apache BookKeeper</a> in Java 9.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Temporary information gathering to see if full disks are causing the builds to flake
   preBuildSteps {
     shell("id")
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_remaining_tests.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_remaining_tests.groovy
index 7449cb5..d57605b 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_remaining_tests.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_remaining_tests.groovy
@@ -26,6 +26,9 @@ import common_job_properties
 freeStyleJob('bookkeeper_precommit_remaining_tests') {
   description('Run bookkeeper remaining tests in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Execute concurrent builds if necessary.
   concurrentBuild()
 
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_replication_tests.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_replication_tests.groovy
index 70c6a69..61893ba 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_replication_tests.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_replication_tests.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 freeStyleJob('bookkeeper_precommit_replication_tests') {
   description('Run bookkeeper replication tests in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Execute concurrent builds if necessary.
   concurrentBuild()
 
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_tls_tests.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_tls_tests.groovy
index 0ffa177..1adc19e 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_tls_tests.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_tls_tests.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 freeStyleJob('bookkeeper_precommit_tls_tests') {
   description('Run bookkeeper tls tests in Java 8.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Execute concurrent builds if necessary.
   concurrentBuild()
 
diff --git a/.test-infra/jenkins/job_bookkeeper_precommit_validation.groovy b/.test-infra/jenkins/job_bookkeeper_precommit_validation.groovy
index 6b1e32c..57a2791 100644
--- a/.test-infra/jenkins/job_bookkeeper_precommit_validation.groovy
+++ b/.test-infra/jenkins/job_bookkeeper_precommit_validation.groovy
@@ -22,6 +22,9 @@ import common_job_properties
 mavenJob('bookkeeper_precommit_pullrequest_validation') {
   description('precommit validation for pull requests of <a href="http://bookkeeper.apache.org">Apache BookKeeper</a>.')
 
+  // clean up the workspace before build
+  wrappers { preBuildCleanup() }
+
   // Execute concurrent builds if necessary.
   concurrentBuild()