michaelsembwever commented on code in PR #1956:
URL: 
https://github.com/apache/cassandra-java-driver/pull/1956#discussion_r1754027283


##########
Jenkinsfile-asf:
##########
@@ -0,0 +1,77 @@
+#!groovy
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+pipeline {
+    agent {
+        label 'cassandra-small'
+    }
+
+  triggers {
+    // schedules only run against release branches (i.e. 3.x, 4.x, 4.5.x, etc.)
+    cron(branchPatternCron().matcher(env.BRANCH_NAME).matches() ? "@weekly" : 
"")
+  }
+
+    stages {
+        stage('Matrix') {
+            matrix {
+                axes {
+                    axis {
+                        name 'TEST_JAVA_VERSION'
+                        values '[email protected]', '[email protected]', 
'openjdk@17'
+                    }
+                    axis {
+                        name 'SERVER_VERSION'
+                        values '3.11.17',      
+                               '4.0.13', 
+                                '5.0-beta1' 
+                    }
+                }
+                stages {
+                    stage('Tests') {
+                        agent {
+                            label 'cassandra-medium'
+                        }
+                        steps {
+                            script {
+                                executeTests()
+                                junit testResults: 
'**/target/surefire-reports/TEST-*.xml', allowEmptyResults: true
+                                junit testResults: 
'**/target/failsafe-reports/TEST-*.xml', allowEmptyResults: true
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+}
+
+
+
+def executeTests() {
+    def testJavaMajorVersion = (TEST_JAVA_VERSION =~ /@(?:1\.)?(\d+)/)[0][1]
+    sh "docker run -u 1000:1000 -e TEST_JAVA_VERSION=${TEST_JAVA_VERSION} -e 
SERVER_VERSION=${SERVER_VERSION} -e 
TEST_JAVA_MAJOR_VERSION=${testJavaMajorVersion} -v 
\$(pwd):/home/docker/cassandra-java-driver janehe/cassandra-java-driver-dev-env 
cassandra-java-driver/ci/run-tests.sh"

Review Comment:
   ```suggestion
       sh "docker run -u 1000:1000 -e TEST_JAVA_VERSION=${TEST_JAVA_VERSION} -e 
SERVER_VERSION=${SERVER_VERSION} -e 
TEST_JAVA_MAJOR_VERSION=${testJavaMajorVersion} -v 
\$(pwd):/home/docker/cassandra-java-driver 
apache.jfrog.io/cassan-docker/apache/cassandra-java-driver-testing-ubuntu2204 
cassandra-java-driver/ci/run-tests.sh"
   ```



##########
Jenkinsfile-asf:
##########
@@ -0,0 +1,77 @@
+#!groovy
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+pipeline {
+    agent {
+        label 'cassandra-small'
+    }
+
+  triggers {
+    // schedules only run against release branches (i.e. 3.x, 4.x, 4.5.x, etc.)
+    cron(branchPatternCron().matcher(env.BRANCH_NAME).matches() ? "@weekly" : 
"")
+  }
+
+    stages {
+        stage('Matrix') {
+            matrix {
+                axes {
+                    axis {
+                        name 'TEST_JAVA_VERSION'
+                        values '[email protected]', '[email protected]', 
'openjdk@17'
+                    }
+                    axis {
+                        name 'SERVER_VERSION'
+                        values '3.11.17',      
+                               '4.0.13', 
+                                '5.0-beta1' 
+                    }
+                }
+                stages {
+                    stage('Tests') {
+                        agent {
+                            label 'cassandra-medium'
+                        }
+                        steps {
+                            script {
+                                executeTests()
+                                junit testResults: 
'**/target/surefire-reports/TEST-*.xml', allowEmptyResults: true
+                                junit testResults: 
'**/target/failsafe-reports/TEST-*.xml', allowEmptyResults: true
+                            }
+                        }
+                    }
+                }
+            }
+        }
+    }
+}
+
+
+
+def executeTests() {
+    def testJavaMajorVersion = (TEST_JAVA_VERSION =~ /@(?:1\.)?(\d+)/)[0][1]
+    sh "docker run -u 1000:1000 -e TEST_JAVA_VERSION=${TEST_JAVA_VERSION} -e 
SERVER_VERSION=${SERVER_VERSION} -e 
TEST_JAVA_MAJOR_VERSION=${testJavaMajorVersion} -v 
\$(pwd):/home/docker/cassandra-java-driver janehe/cassandra-java-driver-dev-env 
cassandra-java-driver/ci/run-tests.sh"

Review Comment:
   image name is going to be 
   - apache/cassandra-java-driver-testing-ubuntu2204
   - 
apache.jfrog.io/cassan-docker/apache/cassandra-java-driver-testing-ubuntu2204
   
   (the latter is recommended to use, to avoid dockerhub rate limits)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to