You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2025/10/20 04:56:08 UTC

(directory-ldap-api) branch master updated (d3e274aa9 -> f32349c8b)

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

elecharny pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


    from d3e274aa9 Update Jenkinsfile
     new fd789bc40 Using JDK 17/21/25; Added parallel builds
     new 4512d463e Merged Jenkinsfile
     new f32349c8b Fixed an duplicated stage

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:
 Jenkinsfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


(directory-ldap-api) 03/03: Fixed an duplicated stage

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

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git

commit f32349c8b1af93dfce5b674c6525bb32620a6eac
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Oct 20 06:55:54 2025 +0200

    Fixed an duplicated stage
---
 Jenkinsfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index efe1fb2ec..36184bf8e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -93,12 +93,12 @@ pipeline {
           }
         }
 
-        stage('Build JDK 17 Linux') {
+        stage('Build JDK 25 Linux') {
           tools {
-            jdk "jdk_17_latest"
+            jdk "jdk_25_latest"
           }
           steps {
-            echo 'Building JDK 17 Linux'
+            echo 'Building JDK 25 Linux'
             sh 'java -version'
             sh 'mvn -version'
             sh 'mvn clean install'


(directory-ldap-api) 01/03: Using JDK 17/21/25; Added parallel builds

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

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git

commit fd789bc40fcf073bc60234101fa98e45e131f212
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Sun Oct 19 22:13:58 2025 +0200

    Using JDK 17/21/25; Added parallel builds
---
 Jenkinsfile | 283 +++++++++++++++++++++++++-----------------------------------
 1 file changed, 118 insertions(+), 165 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 7d5042207..3aad71628 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,206 +17,159 @@
  * under the License.
  */
 pipeline {
-  agent none
+  agent any
+
+  tools {
+    maven 'maven_3_latest'
+    jdk params.jdkVersion
+  }
+
   options {
-    buildDiscarder(logRotator(numToKeepStr: '10'))
-    timeout(time: 8, unit: 'HOURS')
+      // Configure an overall timeout for the build of ten hours.
+      timeout(time: 20, unit: 'HOURS')
+      // When we have test-fails e.g. we don't need to run the remaining steps
+      buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5'))
+      disableConcurrentBuilds()
+  }
+
+  parameters {
+      choice(name: 'nodeLabel', choices: ['ubuntu', 'arm', 'Windows']) 
+      choice(name: 'jdkVersion', choices: ['jdk_17_latest', 'jdk_21_latest', 'jdk_25_latest', 'jdk_26_latest', 'jdk_17_latest_windows', 'jdk_21_latest_windows', 'jdk_25_latest_windows']) 
+      booleanParam(name: 'deployEnabled', defaultValue: true)
+      booleanParam(name: 'sonarEnabled', defaultValue: true)
+      booleanParam(name: 'testsEnabled', defaultValue: true)
   }
+
   triggers {
     cron('@weekly')
     pollSCM('@daily')
   }
+
   stages {
-    stage ('Debug') {
-      options {
-        timeout(time: 1, unit: 'HOURS')
-        retry(2)
-      }
-      agent {
-        docker {
-          label 'ubuntu'
-          image 'apachedirectory/maven-build:jdk-11'
-          alwaysPull true
-          args '-v $HOME/.m2:/home/hnelson/.m2'
-        }
+    stage('Initialization') {
+      steps {
+        echo "running on ${env.NODE_NAME}"
+        echo 'Building branch ' + env.BRANCH_NAME
+        echo 'Using PATH ' + env.PATH
       }
+    }
+
+    stage('Cleanup') {
       steps {
-        sh 'env'
+        echo 'Cleaning up the workspace'
+        deleteDir()
       }
-      post {
-        always {
-          deleteDir()
-        }
+    }
+
+    stage('Checkout') {
+      steps {
+        echo 'Checking out branch ' + env.BRANCH_NAME
+        checkout scm
       }
     }
-    stage ('Build and Test') {
+   
+    stage('Parallel Stage') {
       parallel {
-        stage ('Linux Java 17') {
-          options {
-            timeout(time: 4, unit: 'HOURS')
-            retry(2)
-          }
-          agent {
-            docker {
-              label 'ubuntu'
-              image 'apachedirectory/maven-build:jdk-17'
-              alwaysPull true
-              args '-v $HOME/.m2:/home/hnelson/.m2'
-            }
+        stage('Build JDK 17 Linux') {
+          tools {
+            jdk "jdk_17_latest"
           }
           steps {
-            sh 'mvn -U -V clean verify'
-          }
-          post {
-            always {
-              deleteDir()
-            }
+            echo 'Building JDK 17 Linux'
+            sh 'java -version'
+            sh 'mvn -version'
+            sh 'mvn clean install -Pserial'
           }
         }
-        stage ('Linux Java 21') {
-          options {
-            timeout(time: 4, unit: 'HOURS')
-            retry(2)
-          }
-          agent {
-            docker {
-              label 'ubuntu'
-              image 'apachedirectory/maven-build:jdk-21'
-              alwaysPull true
-              args '-v $HOME/.m2:/home/hnelson/.m2'
-            }
-          }
-          steps {
-            sh 'mvn -U -V clean verify'
-          }
-          post {
-            always {
-              deleteDir()
-            }
-          }
-        }
-        stage ('Linux Java 25') {
-          options {
-            timeout(time: 4, unit: 'HOURS')
-            retry(2)
-          }
-          agent {
-            docker {
-              label 'ubuntu'
-              image 'apachedirectory/maven-build:jdk-25'
-              alwaysPull true
-              args '-v $HOME/.m2:/home/hnelson/.m2'
-            }
+
+        stage('Build JDK 21 Linux') {
+          tools {
+            jdk "jdk_21_latest"
           }
           steps {
-            sh 'mvn -U -V clean verify'
-          }
-          post {
-            always {
-              deleteDir()
-            }
+            echo 'Building JDK 21 Linux'
+            sh 'java -version'
+            sh 'mvn -version'
+            sh 'mvn clean install -Pserial'
           }
         }
-        stage ('Windows Java 17') {
-          options {
-            timeout(time: 4, unit: 'HOURS')
-            retry(2)
-          }
-          agent {
-            label 'Windows'
+
+        stage('Build JDK 17 Linux') {
+          tools {
+            jdk "jdk_17_latest"
           }
           steps {
-            bat '''
-            set JAVA_HOME=F:\\jenkins\\tools\\java\\latest17
-            set MAVEN_OPTS="-Xmx512m"
-            F:\\jenkins\\tools\\maven\\latest3\\bin\\mvn -U -V clean verify
-            '''
-          }
-          post {
-            always {
-              deleteDir()
-            }
+            echo 'Building JDK 17 Linux'
+            sh 'java -version'
+            sh 'mvn -version'
+            sh 'mvn clean install -Pserial'
           }
         }
-        stage ('Windows Java 21') {
-          options {
-            timeout(time: 4, unit: 'HOURS')
-            retry(2)
-          }
-          agent {
-            label 'Windows'
-          }
-          steps {
-            bat '''
-            set JAVA_HOME=F:\\jenkins\\tools\\java\\latest21
-            set MAVEN_OPTS="-Xmx512m"
-            F:\\jenkins\\tools\\maven\\latest3\\bin\\mvn -U -V clean verify
-            '''
-          }
-          post {
-            always {
-              deleteDir()
-            }
-          }
-        }/*
-        stage ('Windows Java 25') {
-          options {
-            timeout(time: 4, unit: 'HOURS')
-            retry(2)
-          }
-          agent {
-            label 'Windows'
-          }
-          steps {
-            bat '''
-            set JAVA_HOME=F:\\jenkins\\tools\\java\\latest25
-            set MAVEN_OPTS="-Xmx512m"
-            F:\\jenkins\\tools\\maven\\latest3\\bin\\mvn -U -V clean verify
-            '''
-          }
-          post {
-            always {
-              deleteDir()
-            }
-          }
-        }*/
       }
     }
-    stage ('Deploy') {
-      options {
-        timeout(time: 2, unit: 'HOURS')
-        retry(2)
+
+    /*--- Comment out Windows builds for the moment ---*/
+    /*    
+    stage('Build JDK 22 Windows') {
+      tools {
+        jdk "jdk_22_latest_windows"
       }
-      agent {
-        label 'ubuntu && !H28 && !H36 && !H40'
+      steps {
+        echo 'Building JDK 22 Windows'
+        sh 'java -version'
+        sh 'mvn -version'
+        sh 'mvn clean install -Pserial'
+      }
+    }
+
+    stage('Build JDK 21 Windows') {
+      tools {
+        jdk "jdk_21_latest_windows"
       }
-      // https://cwiki.apache.org/confluence/display/INFRA/JDK+Installation+Matrix
-      // https://cwiki.apache.org/confluence/display/INFRA/Maven+Installation+Matrix
       steps {
-        sh '''
-        export JAVA_HOME=/home/jenkins/tools/java/latest1.8
-        export MAVEN_OPTS="-Xmx512m"
-        /home/jenkins/tools/maven/latest3/bin/mvn -U -V clean deploy -DskipTests
-        '''
+        echo 'Building JDK 21 Windows'
+        sh 'java -version'
+        sh 'mvn -version'
+        sh 'mvn clean install -Pserial'
       }
-      post {
-        always {
-          deleteDir()
-        }
+    }
+
+    stage('Build JDK 17 Windows') {
+      tools {
+        jdk "jdk_17_latest_windows"
+      }
+      steps {
+        echo 'Building JDK 17 Windows'
+        sh 'java -version'
+        sh 'mvn -version'
+        sh 'mvn clean install -Pserial'
       }
     }
-  }
-  post {
-    failure {
-      mail to: 'notifications@directory.apache.org',
-      subject: "Jenkins pipeline failed: ${currentBuild.fullDisplayName}",
-      body: "Jenkins build URL: ${env.BUILD_URL}"
+
+    stage('Build JDK 11 Windows') {
+      tools {
+        jdk "jdk_11_latest_windows"
+      }
+      steps {
+        echo 'Building JDK 11 Windows'
+        sh 'java -version'
+        sh 'mvn -version'
+        sh 'mvn clean install -Pserial'
+      }
     }
-    fixed {
-      mail to: 'notifications@directory.apache.org',
-      subject: "Jenkins pipeline fixed: ${currentBuild.fullDisplayName}",
-      body: "Jenkins build URL: ${env.BUILD_URL}"
+
+    stage('Build JDK 8 Windows') {
+      tools {
+        jdk "jdk_1.8_latest_windows"
+      }
+      steps {
+        echo 'Building JDK 8 Windows'
+        sh 'java -version'
+        sh 'mvn -version'
+        sh 'mvn clean install -Pserial'
+      }
     }
+    ---*/
   }
 }
 


(directory-ldap-api) 02/03: Merged Jenkinsfile

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

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git

commit 4512d463eeb8bfe44bff5ba7bed8169ce703d66c
Merge: fd789bc40 d3e274aa9
Author: emmanuel lecharny <el...@apache.org>
AuthorDate: Mon Oct 20 06:52:03 2025 +0200

    Merged Jenkinsfile

 Jenkinsfile | 77 +++++--------------------------------------------------------
 1 file changed, 6 insertions(+), 71 deletions(-)