You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by kw...@apache.org on 2021/10/07 08:13:51 UTC
[jackrabbit-filevault] branch master updated: JCRVLT-530 add
Jenkinsfile
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jackrabbit-filevault.git
The following commit(s) were added to refs/heads/master by this push:
new 0c1eb57 JCRVLT-530 add Jenkinsfile
0c1eb57 is described below
commit 0c1eb57df91ca977c86d1b6dd0c153f7b79e6b6c
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Thu Oct 7 10:13:45 2021 +0200
JCRVLT-530 add Jenkinsfile
---
.travis.yml | 86 ---------------------
Jenkinsfile | 23 ++++++
README.md | 2 +-
parent/pom.xml | 6 +-
.../test-packages/pkg-with-no-manifest.zip.cpgz | Bin 10655 -> 0 bytes
5 files changed, 28 insertions(+), 89 deletions(-)
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 11a737b..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-# 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.
-
-# use https://github.com/DanySK/Gravis-CI for Maven Builds on Windows
-
-# Java is not yet supported on Windows, so the build would block.
-# You do not need any setup from Travis, use a plain bash build
-language: bash
-# Enable them all, if you need them.
-os:
- - linux
-# - osx
- - windows
-git:
- symlinks: true
-env:
- global:
- # This is a convenience variable for shortening download commands
- - GRAVIS="https://raw.githubusercontent.com/DanySK/Gravis-CI/master/"
- - MAVEN_VERSION="3.6.3"
- # If you use Windows, you may want to disable Windows Defender. It slows down the builds
- # dramatically, also during cache setup. From a Tanzinul Islam's idea: http://bit.ly/348VPYS,
- # This work around disables it before caching
- - NO_WIN_DEFENDER=$(curl "${GRAVIS}.disable-windows-defender.sh" --output .no-defender.sh && source .no-defender.sh)
- matrix:
- # List any JDK you want to build your software with.
- # You can see the list of supported environments by installing Jabba and using ls-remote:
- # https://github.com/shyiko/jabba#usage
- # Partial versions are allowed. They are dynamically resoved by launching jabba ls-remote,
- # filtering for the provided JDK string, then picking the *first* match. This is useful if
- # the intent is to target the latest release of some Java major release, or if the latest
- # available build differs among platforms.
- - JDK="adopt@1.8"
- - JDK="adopt@1.11"
- - JDK="adopt@1.16"
-jobs:
- include:
- - os: linux
- env:
- - JDK="adopt@1.11"
- - LANG="de_DE.UTF-8"
- - LC_ALL="de_DE.UTF-8"
- - SONARQUBE_EXECUTION=true
-before_install:
- # Download the script
- - curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
- # Download, install, configue the JDK, and export the configuration to the current shell
- - source ~/.install-jdk-travis.sh
- - curl "${GRAVIS}.install-maven.sh" --output ~/.install-maven.sh
- # Download, install, configue the JDK, and export the configuration to the current shell
- - source ~/.install-maven.sh
-addons:
- sonarcloud:
- organization: "apache"
- token:
- secure: "EMpJMtN+fqjuyy69BByyUc08QGzgYCA8s40HDLofCExA/7i0o8tDMwLm2nVBUO5RNrvK8YDxdNI4P6zRAytws/KIw8WPJG4ycN3OFhaqccZit0zWzHO+JAD3r7rSc7dRTmC3KzeMjEHJbsbKQywLVUuaSy6vf8x5GJT2KG73hIU=" # encrypted value of your token
-# This is your main script
-script:
- - |
- if [ "$SONARQUBE_EXECUTION" == "true" ]; then
- mvn clean verify site sonar:sonar -B -Pjacoco-report -Dsonar.projectKey=apache_jackrabbit-filevault -Dlogback.configurationFile=vault-core/src/test/resources/logback-only-errors.xml
- else
- mvn clean verify site -B
- fi
-# If you use Gradle, cleanup the build cache from lock/temporary files
-before_cache:
- #- curl "${GRAVIS}.clean_gradle_cache.sh" --output ~/.clean_gradle_cache.sh
- #- bash ~/.clean_gradle_cache.sh
-cache:
- directories:
- # This avoids re-downloading the JDK every time, but Travis recommends not to do it
- # - $HOME/.jabba/
- # Cache Maven repo
- - $HOME/.m2
\ No newline at end of file
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..747e1da
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,23 @@
+#!/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.
+ */
+// use the shared library from https://github.com/apache/jackrabbit-filevault-jenkins-lib
+library "filevault@master"
+
+fileVaultMavenStdBuild([11, 8, 17], 11, [ "ubuntu", "Windows"], "ubuntu")
\ No newline at end of file
diff --git a/README.md b/README.md
index 13980a7..933aa1f 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
[![ASF Jira](https://img.shields.io/badge/ASF%20JIRA-JCRVLT-orange)](https://issues.apache.org/jira/projects/JCRVLT/summary)
![GitHub](https://img.shields.io/github/license/apache/jackrabbit-filevault)
[![Maven Central](https://img.shields.io/maven-central/v/org.apache.jackrabbit.vault/vault-cli.svg?label=Maven%20Central)](https://search.maven.org/artifact//org.apache.jackrabbit.vault/vault-cli)
-[![Build Status](https://img.shields.io/travis/com/apache/jackrabbit-filevault/master)](https://travis-ci.com/apache/jackrabbit-filevault)
+[![Build Status](https://ci-builds.apache.org/buildStatus/icon?job=Jackrabbit%2Ffilevault%2Fmaster)](https://ci-builds.apache.org/job/Jackrabbit/job/filevault/job/master/)
[![SonarCloud Status](https://sonarcloud.io/api/project_badges/measure?project=apache_jackrabbit-filevault&metric=alert_status)](https://sonarcloud.io/dashboard?id=apache_jackrabbit-filevault)
[![SonarCloud Coverage](https://sonarcloud.io/api/project_badges/measure?project=apache_jackrabbit-filevault&metric=coverage)](https://sonarcloud.io/component_measures/metric/coverage/list?id=apache_jackrabbit-filevault)
[![SonarCloud Bugs](https://sonarcloud.io/api/project_badges/measure?project=apache_jackrabbit-filevault&metric=bugs)](https://sonarcloud.io/component_measures/metric/reliability_rating/list?id=apache_jackrabbit-filevault)
diff --git a/parent/pom.xml b/parent/pom.xml
index f8c0456..aec2e58 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -102,8 +102,8 @@ Apache Jackrabbit FileVault is a project of the Apache Software Foundation.
</issueManagement>
<ciManagement>
- <system>Travis</system>
- <url>https://travis-ci.org/apache/jackrabbit-filevault</url>
+ <system>Jenkins</system>
+ <url>https://ci-builds.apache.org/blue/organizations/jenkins/Jackrabbit%2Ffilevault/activity</url>
</ciManagement>
<url>https://jackrabbit.apache.org/filevault/</url>
@@ -257,6 +257,8 @@ Bundle-Category: jackrabbit
<exclude>**/*.zip/**</exclude>
<exclude>.mvn/**</exclude>
<exclude>.no-defender.sh</exclude>
+ <exclude>.repository/**</exclude>
+ <exclude>local-snapshots-dir/**</exclude>
</excludes>
</configuration>
</plugin>
diff --git a/vault-core/src/test/resources/test-packages/pkg-with-no-manifest.zip.cpgz b/vault-core/src/test/resources/test-packages/pkg-with-no-manifest.zip.cpgz
deleted file mode 100644
index e7c885c..0000000
Binary files a/vault-core/src/test/resources/test-packages/pkg-with-no-manifest.zip.cpgz and /dev/null differ