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

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


The following commit(s) were added to refs/heads/trunk by this push:
     new 9a52bf7  Rename ubuntu2204_java_driver_testing.docker, add ccm binary 
download, and avoid PR rebuilds on only base branch changes
9a52bf7 is described below

commit 9a52bf7ac1dc0f1e89a0aa79473ef3339cb50b8f
Author: janehe <[email protected]>
AuthorDate: Wed Oct 30 19:25:05 2024 +0000

    Rename ubuntu2204_java_driver_testing.docker, add ccm binary download, and 
avoid PR rebuilds on only base branch changes
    
    Automatic detect latest C* versions for ccm to download.
    
     patch by Siyao (Jane) He; reviewed by Mick Semb Wever for CASSJAVA-25
---
 ...er_testing => ubuntu2204_java_driver_testing.docker} | 17 +++++++++++++----
 jenkins-dsl/cassandra_job_dsl_seed.groovy               |  5 +++++
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/docker/testing/ubuntu2204_java_driver_testing 
b/docker/testing/ubuntu2204_java_driver_testing.docker
similarity index 76%
rename from docker/testing/ubuntu2204_java_driver_testing
rename to docker/testing/ubuntu2204_java_driver_testing.docker
index fbebfa8..e9057c4 100644
--- a/docker/testing/ubuntu2204_java_driver_testing
+++ b/docker/testing/ubuntu2204_java_driver_testing.docker
@@ -42,15 +42,24 @@ RUN . /home/docker/.jabba/jabba.sh && jabba install 
openjdk@17
 ENV PATH="/home/docker/.jabba/bin:/home/docker/.local/bin:$PATH"
 
 RUN echo "export JAVA8_HOME=$(jabba which [email protected])" >> ~/env.txt && \
-      echo "export JAVA11_HOME=$(jabba which [email protected])" >> ~/env.txt 
&& \
+    echo "export JAVA11_HOME=$(jabba which [email protected])" >> ~/env.txt && \
     echo "export JAVA17_HOME=$(jabba which openjdk@17)" >> ~/env.txt && \
-      echo "export JAVA_HOME=$(jabba which [email protected])" >> ~/env.txt && 
\
-      echo ". $HOME/.jabba/jabba.sh" >> ~/env.txt && \
-      echo "jabba use [email protected]" >> ~/env.txt
+    echo "export JAVA_HOME=$(jabba which [email protected])" >> ~/env.txt && \
+    echo ". $HOME/.jabba/jabba.sh" >> ~/env.txt && \
+    echo "jabba use [email protected]" >> ~/env.txt
 
 # ccm
 RUN git clone https://github.com/riptano/ccm.git  && \
     cd ccm && \
     pip install -e .
 
+# download cassandra binaries of latest patch versions for each minor version
+RUN curl -s https://downloads.apache.org/cassandra/ | \
+    grep -oP '(?<=href=\")[0-9]+\.[0-9]+\.[0-9]+(?=)' | \
+    sort -rV | \
+    uniq -w 3 | \
+    while read -r version; do \
+        ccm create --quiet -n 1 -v binary:"$version" test && ccm remove test ; 
\
+    done
+
 ENTRYPOINT [ "/bin/bash", "-l", "-c" ]
diff --git a/jenkins-dsl/cassandra_job_dsl_seed.groovy 
b/jenkins-dsl/cassandra_job_dsl_seed.groovy
index 7506dee..244f1b1 100755
--- a/jenkins-dsl/cassandra_job_dsl_seed.groovy
+++ b/jenkins-dsl/cassandra_job_dsl_seed.groovy
@@ -1480,6 +1480,11 @@ multibranchPipelineJob('cassandra-java-driver') {
             repoOwner('apache')
               repository('cassandra-java-driver')
         }
+        buildStrategies {
+            buildChangeRequests {
+                ignoreTargetOnlyChanges(true)
+            }
+        }
     }
       factory {
         workflowBranchProjectFactory {


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

Reply via email to