You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2022/05/28 11:59:03 UTC

[cassandra] branch cassandra-3.11 updated (76648a6534 -> bb0e63fc38)

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

mck pushed a change to branch cassandra-3.11
in repository https://gitbox.apache.org/repos/asf/cassandra.git


    from 76648a6534 Merge branch 'cassandra-3.0' into cassandra-3.11
     new 136c8c0f65 In jenkins retry each stage build in the pipeline
     new 2b533b28c2 Merge branch 'cassandra-2.2' into cassandra-3.0
     new bb0e63fc38 Merge branch 'cassandra-3.0' into cassandra-3.11

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .jenkins/Jenkinsfile | 237 ++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 178 insertions(+), 59 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org


[cassandra] 01/01: Merge branch 'cassandra-3.0' into cassandra-3.11

Posted by mc...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mck pushed a commit to branch cassandra-3.11
in repository https://gitbox.apache.org/repos/asf/cassandra.git

commit bb0e63fc389f59b98713b762ecd49e9021b1c66f
Merge: 76648a6534 2b533b28c2
Author: Mick Semb Wever <mc...@apache.org>
AuthorDate: Sat May 28 13:54:13 2022 +0200

    Merge branch 'cassandra-3.0' into cassandra-3.11

 .jenkins/Jenkinsfile | 237 ++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 178 insertions(+), 59 deletions(-)

diff --cc .jenkins/Jenkinsfile
index df708ccb0e,ca4a0c7f24..31f06d280d
--- a/.jenkins/Jenkinsfile
+++ b/.jenkins/Jenkinsfile
@@@ -26,72 -26,30 +26,55 @@@
  pipeline {
    agent { label 'cassandra' }
    stages {
 -      stage('Init') {
 +    stage('Init') {
          steps {
-             cleanWs()
+           cleanWs()
+           script {
+               currentBuild.result='SUCCESS'
+           }
          }
 -      }
 -      stage('Build') {
 -        steps {
 -          script {
 -            def attempt = 1
 -            retry(2) {
 -              if (attempt > 1) {
 -                sleep(60 * attempt)
 -              }
 -              attempt = attempt + 1
 -              build job: "${env.JOB_NAME}-artifacts"
 +    }
 +    stage('Build') {
-         steps {
-             build job: "${env.JOB_NAME}-artifacts"
++      steps {
++        script {
++          def attempt = 1
++          retry(2) {
++            if (attempt > 1) {
++              sleep(60 * attempt)
+             }
++            attempt = attempt + 1
++              build job: "${env.JOB_NAME}-artifacts"
+           }
          }
+       }
 -      stage('Test') {
 +    }
 +    stage('Test') {
          parallel {
 +          stage('stress') {
-             steps {
-                 script {
-                   stress = build job: "${env.JOB_NAME}-stress-test", propagate: false
-                   if (stress.result != 'SUCCESS') unstable('stress test failures')
-                   if (stress.result == 'FAILURE') currentBuild.result='FAILURE'
-                 }
-             }
-             post {
-               always {
-                   warnError('missing test xml files') {
-                       script {
-                           copyTestResults('stress-test', stress.getNumber())
-                       }
-                   }
-               }
-             }
-           }
-           stage('jvm-dtest') {
 +            steps {
 +              script {
-                 jvm_dtest = build job: "${env.JOB_NAME}-jvm-dtest", propagate: false
-                 if (jvm_dtest.result != 'SUCCESS') unstable('jvm-dtest failures')
-                 if (jvm_dtest.result == 'FAILURE') currentBuild.result='FAILURE'
-               }
-             }
-             post {
-               always {
-                   warnError('missing test xml files') {
-                       script {
-                           copyTestResults('jvm-dtest', jvm_dtest.getNumber())
-                       }
++                def attempt = 1
++                retry(2) {
++                  if (attempt > 1) {
++                    sleep(60 * attempt)
 +                  }
-               }
-             }
-           }
-           stage('jvm-dtest-upgrade') {
-             steps {
-               script {
-                 jvm_dtest_upgrade = build job: "${env.JOB_NAME}-jvm-dtest-upgrade", propagate: false
-                 if (jvm_dtest_upgrade.result != 'SUCCESS') unstable('jvm-dtest-upgrade failures')
-                 if (jvm_dtest_upgrade.result == 'FAILURE') currentBuild.result='FAILURE'
++                  attempt = attempt + 1
++                  stress = build job: "${env.JOB_NAME}-stress-test", propagate: false
++                }
++                if (stress.result != 'SUCCESS') unstable('stress test failures')
++                if (stress.result == 'FAILURE') currentBuild.result='FAILURE'
 +              }
 +            }
 +            post {
 +              always {
 +                  warnError('missing test xml files') {
 +                      script {
-                           copyTestResults('jvm-dtest-upgrade', jvm_dtest_upgrade.getNumber())
++                          copyTestResults('stress-test', stress.getNumber())
 +                      }
 +                  }
 +              }
 +            }
 +          }
            stage('units') {
              steps {
                script {
@@@ -146,24 -125,6 +150,31 @@@
                }
              }
            }
 +          stage('cdc') {
 +            steps {
 +              script {
-                 cdc = build job: "${env.JOB_NAME}-test-cdc", propagate: false
++                def attempt = 1
++                retry(2) {
++                  if (attempt > 1) {
++                    sleep(60 * attempt)
++                  }
++                  attempt = attempt + 1
++                  cdc = build job: "${env.JOB_NAME}-test-cdc", propagate: false
++                }
 +                if (cdc.result != 'SUCCESS') unstable('cdc failures')
 +                if (cdc.result == 'FAILURE') currentBuild.result='FAILURE'
 +              }
 +            }
 +            post {
 +              always {
 +                  warnError('missing test xml files') {
 +                      script {
 +                          copyTestResults('test-cdc', cdc.getNumber())
 +                      }
 +                  }
 +              }
 +            }
 +          }
            stage('compression') {
              steps {
                script {
@@@ -201,9 -176,59 +226,59 @@@
              }
            }
          }
 -      }
 -      stage('Distributed Test') {
 +    }
 +    stage('Distributed Test') {
          parallel {
+           stage('jvm-dtest') {
+             steps {
+               script {
+                 def attempt = 1
+                 retry(2) {
+                   if (attempt > 1) {
+                     sleep(60 * attempt)
+                   }
+                   attempt = attempt + 1
+                   jvm_dtest = build job: "${env.JOB_NAME}-jvm-dtest", propagate: false
+                 }
+                 if (jvm_dtest.result != 'SUCCESS') unstable('jvm-dtest failures')
+                 if (jvm_dtest.result == 'FAILURE') currentBuild.result='FAILURE'
+               }
+             }
+             post {
+               always {
+                   warnError('missing test xml files') {
+                       script {
+                           copyTestResults('jvm-dtest', jvm_dtest.getNumber())
+                       }
+                   }
+               }
+             }
+           }
+           stage('jvm-dtest-upgrade') {
+             steps {
+               script {
+                 def attempt = 1
+                 retry(2) {
+                   if (attempt > 1) {
+                     sleep(60 * attempt)
+                   }
+                   attempt = attempt + 1
+                   jvm_dtest_upgrade = build job: "${env.JOB_NAME}-jvm-dtest-upgrade", propagate: false
+                 }
+                 if (jvm_dtest_upgrade.result != 'SUCCESS') unstable('jvm-dtest-upgrade failures')
+                 if (jvm_dtest_upgrade.result == 'FAILURE') currentBuild.result='FAILURE'
+               }
+             }
+             post {
+               always {
+                   warnError('missing test xml files') {
+                       script {
+                           copyTestResults('jvm-dtest-upgrade', jvm_dtest_upgrade.getNumber())
+                       }
+                   }
+               }
+             }
+           }
            stage('dtest') {
              steps {
                script {
@@@ -258,24 -304,6 +354,31 @@@
                }
              }
            }
 +          stage('dtest-offheap') {
 +            steps {
 +              script {
-                 dtest_offheap = build job: "${env.JOB_NAME}-dtest-offheap", propagate: false
++                def attempt = 1
++                retry(2) {
++                  if (attempt > 1) {
++                    sleep(60 * attempt)
++                  }
++                  attempt = attempt + 1
++                  dtest_offheap = build job: "${env.JOB_NAME}-dtest-offheap", propagate: false
++                }
 +                if (dtest_offheap.result != 'SUCCESS') unstable('dtest-offheap failures')
 +                if (dtest_offheap.result == 'FAILURE') currentBuild.result='FAILURE'
 +              }
 +            }
 +            post {
 +              always {
 +                warnError('missing test xml files') {
 +                    script {
 +                        copyTestResults('dtest-offheap', dtest_offheap.getNumber())
 +                    }
 +                }
 +              }
 +            }
 +          }
            stage('dtest-large-novnode') {
              steps {
                script {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org