You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by kw...@apache.org on 2025/02/18 14:43:30 UTC

(jackrabbit-oak) branch feature/remove-jenkins-build created (now 7ed6342d40)

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

kwin pushed a change to branch feature/remove-jenkins-build
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


      at 7ed6342d40 OAK-11268: Remove Jenkinsfile and add GitHub Actions metadata to POM

This branch includes the following new commits:

     new 7ed6342d40 OAK-11268: Remove Jenkinsfile and add GitHub Actions metadata to POM

The 1 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.



(jackrabbit-oak) 01/01: OAK-11268: Remove Jenkinsfile and add GitHub Actions metadata to POM

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

kwin pushed a commit to branch feature/remove-jenkins-build
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git

commit 7ed6342d4023ef0a344fc67679b57c6fc03766a7
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Feb 18 15:43:23 2025 +0100

    OAK-11268: Remove Jenkinsfile and add GitHub Actions metadata to POM
---
 Jenkinsfile        | 88 ------------------------------------------------------
 oak-parent/pom.xml |  5 ++++
 2 files changed, 5 insertions(+), 88 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
deleted file mode 100644
index cc4288f185..0000000000
--- a/Jenkinsfile
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/usr/bin/env 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.
- */
-
-// schedule oak-jcr:ut,oak-search-elastic,oak-segment-tar,oak-store-document first
-// because they are longest running modules
-def OAK_MODULES = 'oak-jcr:ut,oak-search-elastic,oak-segment-tar,oak-store-document,oak-api,oak-auth-external,oak-auth-ldap,oak-authorization-cug,oak-authorization-principalbased,oak-benchmarks,oak-benchmarks-elastic,oak-benchmarks-lucene,oak-benchmarks-solr,oak-blob,oak-blob-cloud,oak-blob-cloud-azure,oak-blob-plugins,oak-commons,oak-core,oak-core-spi,oak-examples,oak-exercise,oak-http,oak-it,oak-it-osgi,oak-jackrabbit-api,oak-jcr:it,oak-lucene,oak-pojosr,oak-query-spi,oak-run,oak-run-c [...]
-
-properties([buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10'))])
-
-def buildModule(moduleSpec) {
-    def moduleName = ''
-    def testOptions = '-PintegrationTesting'
-    def idx = moduleSpec.indexOf(':') 
-    if (idx == -1) {
-        moduleName = moduleSpec
-    } else {
-        moduleName = moduleSpec.substring(0, idx)
-        flags = moduleSpec.substring(idx + 1)
-        if (flags == 'ut') {
-            // unit tests only
-            testOptions = '' 
-        } else if (flags == 'it') {
-            // integration tests only
-            testOptions = '-PintegrationTesting -Dsurefire.skip.ut=true -Dskip.coverage=true' 
-        }
-    }
-    stage(moduleSpec) {
-        node(label: 'ubuntu') {
-            def JAVA_JDK_11=tool name: 'jdk_11_latest', type: 'hudson.model.JDK'
-            def MAVEN_3_LATEST=tool name: 'maven_3_latest', type: 'hudson.tasks.Maven$MavenInstallation'
-            def MAVEN_CMD = "mvn --batch-mode -Dmaven.repo.local=${env.HOME}/maven-repositories/${env.EXECUTOR_NUMBER}"
-            def MONGODB_SUFFIX = sh(script: 'openssl rand -hex 4', returnStdout: true).trim()
-            sh '''
-            echo "Setting MAVEN_OPTS"
-            echo "MAVEN_OPTS was ${MAVEN_OPTS}"
-            export MAVEN_OPTS="-Xmx1536M"
-            echo "MAVEN_OPTS now ${MAVEN_OPTS}"
-            echo "Setting MAVEN_OPTS done"
-            '''
-            timeout(70) {
-                checkout scm
-                withEnv(["Path+JDK=$JAVA_JDK_11/bin","Path+MAVEN=$MAVEN_3_LATEST/bin","JAVA_HOME=$JAVA_JDK_11","MAVEN_OPTS=-Xmx1536M"]) {
-                    sh '''
-                    echo "MAVEN_OPTS is ${MAVEN_OPTS}"
-                    '''
-                    // clean all modules
-                    sh "${MAVEN_CMD} -T 1C clean"
-                    // build and install up to desired module
-                    sh "${MAVEN_CMD} -Dbaseline.skip=true -T 1C install -DskipTests -pl :${moduleName} -am"
-                    try {
-                        sh "${MAVEN_CMD} ${testOptions} -DtrimStackTrace=false -Dnsfixtures=SEGMENT_TAR,DOCUMENT_NS -Dmongo.db=MongoMKDB-${MONGODB_SUFFIX} clean verify -pl :${moduleName}"
-                    } finally {
-                        archiveArtifacts(artifacts: '*/target/unit-tests.log', allowEmptyArchive: true)
-                        junit(testResults: '*/target/surefire-reports/*.xml,*/target/failsafe-reports/*.xml', allowEmptyResults: true)
-                    }
-                }
-            }
-        }
-    }
-}
-
-def stagesFor(modules) {
-    def stages = [:]
-    for (m in modules.tokenize(',')) {
-        def module = m.trim()
-        stages[module] = { buildModule(module) }
-    }
-    return stages
-}
-
-parallel stagesFor("${OAK_MODULES}")
diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index 9195ad889c..cd98ba0c0c 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -101,6 +101,11 @@
     <url>http://issues.apache.org/jira/browse/OAK</url>
   </issueManagement>
 
+  <ciManagement>
+    <system>GitHub Actions</system>
+    <url>https://github.com/apache/jackrabbit-oak/actions/workflows/build.yml</url>
+  </ciManagement>
+
   <url>http://jackrabbit.apache.org/</url>
   <inceptionYear>2012</inceptionYear>
   <description>