You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ms...@apache.org on 2016/11/18 22:56:05 UTC
cassandra-builds git commit: Add initial DSL builder
Repository: cassandra-builds
Updated Branches:
refs/heads/master cd2f37cc7 -> 8d79f534b
Add initial DSL builder
Project: http://git-wip-us.apache.org/repos/asf/cassandra-builds/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra-builds/commit/8d79f534
Tree: http://git-wip-us.apache.org/repos/asf/cassandra-builds/tree/8d79f534
Diff: http://git-wip-us.apache.org/repos/asf/cassandra-builds/diff/8d79f534
Branch: refs/heads/master
Commit: 8d79f534b74c0070dcee719c1c120e28af412df3
Parents: cd2f37c
Author: Michael Shuler <mi...@pbandjelly.org>
Authored: Fri Nov 18 16:55:58 2016 -0600
Committer: Michael Shuler <mi...@pbandjelly.org>
Committed: Fri Nov 18 16:55:58 2016 -0600
----------------------------------------------------------------------
jenkins-dsl/cassandra-job-dsl-seed.groovy | 230 +++++++++++++++++++++++++
1 file changed, 230 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cassandra-builds/blob/8d79f534/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
new file mode 100644
index 0000000..ddf5dfe
--- /dev/null
+++ b/jenkins-dsl/cassandra-job-dsl-seed.groovy
@@ -0,0 +1,230 @@
+////////////////////////////////////////////////////////////
+//
+// Common Vars and Branch List
+//
+////////////////////////////////////////////////////////////
+
+def jobDescription = 'Apache Cassandra DSL-generated job - DSL git repo: <a href="https://git-wip-us.apache.org/repos/asf?p=cassandra-builds.git">cassandra-builds</a>'
+def jdkLabel = 'jdk1.8.0_66-unlimited-security'
+def slaveLabel = 'cassandra'
+def mainRepo = 'https://git-wip-us.apache.org/repos/asf/cassandra.git'
+def buildsRepo = 'https://git.apache.org/cassandra-builds.git'
+def buildDescStr = 'REF = ${GIT_BRANCH} <br /> COMMIT = ${GIT_COMMIT}'
+// Cassandra active branches
+def cassandraBranches = ['cassandra-2.2', 'cassandra-3.0', 'cassandra-3.X', 'trunk']
+// Ant test targets
+def testTargets = ['test', 'test-all', 'test-burn', 'test-cdc', 'test-compression']
+
+////////////////////////////////////////////////////////////
+//
+// Job Templates
+// - disabled by default
+// - running jobs use templates for most configurations
+// and set details like branch
+//
+////////////////////////////////////////////////////////////
+
+/**
+ * Artifacts and eclipse-warnings template
+ */
+job('Cassandra-template-artifacts') {
+ disabled(true)
+ description(jobDescription)
+ jdk(jdkLabel)
+ label(slaveLabel)
+ logRotator {
+ numToKeep(10)
+ artifactNumToKeep(1)
+ }
+ wrappers {
+ timestamps()
+ timeout {
+ noActivity(300)
+ }
+ }
+ scm {
+ git {
+ remote {
+ url(mainRepo)
+ }
+ branch('*/null')
+ extensions {
+ cleanAfterCheckout()
+ }
+ }
+ }
+ triggers {
+ scm('H/30 * * * *')
+ }
+ steps {
+ buildDescription('', buildDescStr)
+ shell("git clean -xdff ; git clone ${buildsRepo}")
+ }
+ publishers {
+ archiveArtifacts('build/*.tar.gz, build/**/eclipse_compiler_checks.txt')
+ archiveJavadoc {
+ javadocDir 'build/javadoc'
+ keepAll false
+ }
+ }
+}
+
+/**
+ * Ant test template
+ */
+job('Cassandra-template-test') {
+ disabled(true)
+ description(jobDescription)
+ jdk(jdkLabel)
+ label(slaveLabel)
+ logRotator {
+ numToKeep(10)
+ }
+ wrappers {
+ timestamps()
+ timeout {
+ noActivity(1200)
+ }
+ }
+ scm {
+ git {
+ remote {
+ url(mainRepo)
+ }
+ branch('*/null')
+ extensions {
+ cleanAfterCheckout()
+ }
+ }
+ }
+ triggers {
+ scm('@daily')
+ }
+ steps {
+ buildDescription('', buildDescStr)
+ shell("git clean -xdff ; git clone ${buildsRepo}")
+ }
+ publishers {
+ junit {
+ testResults('**/TEST-*.xml')
+ testDataPublishers {
+ stabilityTestDataPublisher()
+ }
+ }
+ archiveArtifacts('')
+ }
+}
+
+/**
+ * Dtest template
+ */
+job('Cassandra-template-dtest') {
+ disabled(true)
+ description(jobDescription)
+ jdk(jdkLabel)
+ label(slaveLabel)
+ logRotator {
+ numToKeep(10)
+ }
+ wrappers {
+ timestamps()
+ timeout {
+ noActivity(1200)
+ }
+ }
+ scm {
+ git {
+ remote {
+ url(mainRepo)
+ }
+ branch('*/null')
+ extensions {
+ cleanAfterCheckout()
+ }
+ }
+ }
+ triggers {
+ scm('@daily')
+ }
+ steps {
+ buildDescription('', buildDescStr)
+ shell("git clean -xdff ; git clone ${buildsRepo}")
+ }
+ publishers {
+ junit {
+ testResults('nosetests.xml')
+ testDataPublishers {
+ stabilityTestDataPublisher()
+ }
+ }
+ archiveArtifacts('')
+ }
+}
+
+////////////////////////////////////////////////////////////
+//
+// Branch Job Definitions
+// - set to disabled(false)
+// - running jobs use templates for most configurations
+// and set details like branch
+//
+////////////////////////////////////////////////////////////
+
+cassandraBranches.each {
+ def branchName = it
+ def jobNamePrefix = "Cassandra-${branchName}".replaceAll('cassandra-', '')
+
+ /**
+ * Main branch artifacts and eclipse-warnings job
+ */
+ job("${jobNamePrefix}-artifacts") {
+ disabled(false)
+ using('Cassandra-template-artifacts')
+ configure { node ->
+ node / scm / branches / 'hudson.plugins.git.BranchSpec' / name(branchName)
+ }
+ steps {
+ shell('./cassandra-builds/build-scripts/cassandra-artifacts.sh')
+ }
+ }
+
+ /**
+ * Main branch ant test target jobs
+ */
+ testTargets.each {
+ def targetName = it
+
+ job("${jobNamePrefix}-${targetName}") {
+ disabled(false)
+ using('Cassandra-template-test')
+ configure { node ->
+ node / scm / branches / 'hudson.plugins.git.BranchSpec' / name(branchName)
+ }
+ steps {
+ shell("./cassandra-builds/build-scripts/cassandra-unittest.sh ${targetName}")
+ }
+ }
+ }
+
+// /**
+// * Main branch dtest variation jobs
+// */
+// dtestTargets.each {
+// def targetName = it
+//
+// job("${jobNamePrefix}-${targetName}") {
+// //disabled(false)
+// using('Cassandra-template-dtest')
+// configure { node ->
+// node / scm / branches / 'hudson.plugins.git.BranchSpec' / name(branchName)
+// }
+// steps {
+// shell("./cassandra-builds/build-scripts/cassandra-dtest.sh ${targetName}")
+// }
+// }
+// }
+
+
+
+
+}