You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ol...@apache.org on 2020/04/10 02:31:20 UTC
[tomcat-taglibs-site] branch master updated: add Jenkinsfile fix
pom to check snapshot dependencies
This is an automated email from the ASF dual-hosted git repository.
olamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-taglibs-site.git
The following commit(s) were added to refs/heads/master by this push:
new d214394 add Jenkinsfile fix pom to check snapshot dependencies
d214394 is described below
commit d214394c3654911b9a42616b0e16a544a6f20f0c
Author: olivier lamy <ol...@apache.org>
AuthorDate: Fri Apr 10 12:29:37 2020 +1000
add Jenkinsfile fix pom to check snapshot dependencies
Signed-off-by: olivier lamy <ol...@apache.org>
---
.gitignore | 2 ++
Jenkinsfile | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pom.xml | 14 +++++++++++++-
3 files changed, 74 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ffac74e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+target/
+*.iml
diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644
index 0000000..e1ec02a
--- /dev/null
+++ b/Jenkinsfile
@@ -0,0 +1,59 @@
+#!groovy
+
+pipeline {
+ agent any
+ options {
+ durabilityHint('PERFORMANCE_OPTIMIZED')
+ buildDiscarder(logRotator(numToKeepStr: '7', artifactNumToKeepStr: '2'))
+ timeout(time: 60, unit: 'MINUTES')
+ }
+ stages {
+ stage( "Parallel Stage" ) {
+ parallel {
+ stage( "Build / Test - JDK8" ) {
+ agent { node { label 'ubuntu' } }
+ options { timeout( time: 120, unit: 'MINUTES' ) }
+ steps {
+ mavenBuild( "JDK 1.8 (latest)", "clean site" )
+ }
+ }
+ stage( "Build / Test - JDK11" ) {
+ agent { node { label 'ubuntu' } }
+ options { timeout( time: 120, unit: 'MINUTES' ) }
+ steps {
+ mavenBuild( "JDK 11 (latest)", "clean site" )
+ }
+ }
+ }
+ }
+ }
+}
+
+
+
+/**
+ * To other developers, if you are using this method above, please use the following syntax.
+ *
+ * mavenBuild("<jdk>", "<profiles> <goals> <plugins> <properties>"
+ *
+ * @param jdk the jdk tool name (in jenkins) to use for this build
+ * @param cmdline the command line in "<profiles> <goals> <properties>"`format.
+ * @return the Jenkinsfile step representing a maven build
+ */
+def mavenBuild(jdk, cmdline) {
+ def mvnName = 'Maven 3.6.3'
+ //def localRepo = "${env.JENKINS_HOME}/${env.EXECUTOR_NUMBER}" // ".repository" //
+ //def settingsName = 'oss-settings.xml'
+ def mavenOpts = '-Xms2g -Xmx2g -Djava.awt.headless=true'
+
+ withMaven(
+ maven: mvnName,
+ jdk: "$jdk",
+ publisherStrategy: 'EXPLICIT',
+ //globalMavenSettingsConfig: settingsName,
+ options: [junitPublisher(disabled: false)],
+ mavenOpts: mavenOpts) {
+ // Some common Maven command line + provided command line
+ sh "mvn -V -B -DfailIfNoTests=false -Dmaven.test.failure.ignore=true $cmdline"
+ }
+}
diff --git a/pom.xml b/pom.xml
index bc95784..a6ac3af 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,6 @@
<groupId>org.apache.taglibs</groupId>
<artifactId>taglibs-parent</artifactId>
<version>4-SNAPSHOT</version>
- <relativePath>../taglibs-parent/pom.xml</relativePath>
</parent>
<artifactId>site</artifactId>
@@ -93,4 +92,17 @@
</plugins>
</build>
+ <repositories>
+ <repository>
+ <id>apache.snapshots</id>
+ <url>https://repository.apache.org/content/repositories/snapshots/</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org