cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mshu...@apache.org
Subject cassandra-builds git commit: Add Parameterized Dev Branch Jobs to DSL
Date Fri, 03 Mar 2017 17:18:42 GMT
Repository: cassandra-builds
Updated Branches:
  refs/heads/master 2fff2e6b1 -> 481db1991


Add Parameterized Dev Branch Jobs to DSL


Project: http://git-wip-us.apache.org/repos/asf/cassandra-builds/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-builds/commit/481db199
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-builds/tree/481db199
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-builds/diff/481db199

Branch: refs/heads/master
Commit: 481db1991136b05b5b6d3ec90da9183a93259df8
Parents: 2fff2e6
Author: Michael Shuler <michael@pbandjelly.org>
Authored: Fri Mar 3 11:18:37 2017 -0600
Committer: Michael Shuler <michael@pbandjelly.org>
Committed: Fri Mar 3 11:18:37 2017 -0600

----------------------------------------------------------------------
 jenkins-dsl/cassandra_job_dsl_seed.groovy | 110 ++++++++++++++++++++++++-
 1 file changed, 109 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/481db199/jenkins-dsl/cassandra_job_dsl_seed.groovy
----------------------------------------------------------------------
diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 4b1dbdd..a390ba4 100644
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -15,6 +15,7 @@ def buildDescStr = 'REF = ${GIT_BRANCH} <br /> COMMIT = ${GIT_COMMIT}'
 def cassandraBranches = ['cassandra-2.2', 'cassandra-3.0', 'cassandra-3.11', 'trunk']
 // Ant test targets
 def testTargets = ['test', 'test-all', 'test-burn', 'test-cdc', 'test-compression']
+// Dtest test targets
 def dtestTargets = ['dtest', 'dtest-novnode', 'dtest-offheap']  // dtest-large target exists,
but no large servers to run on..
 
 ////////////////////////////////////////////////////////////
@@ -250,6 +251,113 @@ cassandraBranches.each {
             }
         }
     }
+}
+
+////////////////////////////////////////////////////////////
+//
+// Parameterized Dev Branch Job Definitions
+//
+////////////////////////////////////////////////////////////
 
-// The End.
+/**
+ * Parameterized Dev Branch `ant testall`
+ */
+job('Cassandra-devbranch-testall') {
+    description(jobDescription)
+    jdk(jdkLabel)
+    label(slaveLabel)
+    logRotator {
+        numToKeep(10)
+    }
+    wrappers {
+        timeout {
+            noActivity(1200)
+        }
+    }
+    throttleConcurrentBuilds {
+        categories(['Cassandra'])
+    }
+    parameters {
+        stringParam('REPO', 'apache', 'The github user/org to clone cassandra repo from')
+        stringParam('BRANCH', 'trunk', 'The branch of cassandra to checkout')
+    }
+    scm {
+        git {
+            remote {
+                url('https://github.com/${REPO}/cassandra.git')
+            }
+            branch('${BRANCH}')
+            extensions {
+                cleanAfterCheckout()
+            }
+        }
+    }
+    steps {
+        buildDescription('', buildDescStr)
+        shell("git clean -xdff ; git clone ${buildsRepo}")
+        shell('./cassandra-builds/build-scripts/cassandra-unittest.sh testall')
+    }
+    publishers {
+        junit {
+            testResults('**/TEST-*.xml')
+            testDataPublishers {
+                stabilityTestDataPublisher()
+            }
+        }
+        postBuildTask {
+            task('.', 'echo "Finding job process orphans.."; if pgrep -af ${JOB_BASE_NAME};
then pkill -9 -f ${JOB_BASE_NAME}; fi')
+        }
+    }
+}
+
+/**
+ * Parameterized Dev Branch dtest
+ */
+job('Cassandra-devbranch-dtest') {
+    description(jobDescription)
+    jdk(jdkLabel)
+    label(slaveLabel)
+    logRotator {
+        numToKeep(10)
+    }
+    wrappers {
+        timeout {
+            noActivity(1200)
+        }
+    }
+    throttleConcurrentBuilds {
+        categories(['Cassandra'])
+    }
+    parameters {
+        stringParam('REPO', 'apache', 'The github user/org to clone cassandra repo from')
+        stringParam('BRANCH', 'trunk', 'The branch of cassandra to checkout')
+    }
+    scm {
+        git {
+            remote {
+                url('https://github.com/${REPO}/cassandra.git')
+            }
+            branch('${BRANCH}')
+            extensions {
+                cleanAfterCheckout()
+            }
+        }
+    }
+    steps {
+        buildDescription('', buildDescStr)
+        shell("git clean -xdff ; git clone ${buildsRepo} ; git clone ${dtestRepo}")
+        shell('./cassandra-builds/build-scripts/cassandra-dtest.sh')
+    }
+    publishers {
+        archiveArtifacts('test_stdout.txt')
+        junit {
+            testResults('cassandra-dtest/nosetests.xml')
+            testDataPublishers {
+                stabilityTestDataPublisher()
+            }
+        }
+        postBuildTask {
+            task('.', 'echo "Finding job process orphans.."; if pgrep -af ${JOB_BASE_NAME};
then pkill -9 -f ${JOB_BASE_NAME}; fi')
+        }
+    }
 }


Mime
View raw message