You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2019/08/31 17:02:19 UTC
[struts] branch docker-build updated (35e7882 -> 8f96dca)
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a change to branch docker-build
in repository https://gitbox.apache.org/repos/asf/struts.git.
discard 35e7882 Sticks to trusty distro to check if that will solve build on JDK8
discard 845d5a6 Stops using slim version as some fonts are missing
discard 4ecfb7e Adds missing env variable
discard 2761264 Fixes regex to collect reports
discard 094092c Skips building assemblies
discard 85d8846 Moves label into docker section
discard c397181 Fixes wrong label definition
discard 823fcc5 Splits build into stages
discard d898a82 Drops java checking commands
discard 40d7e52 Avoids using tools and bases on the image only
discard 03bd96d Uses $JAVA_HOME var to test java version
discard c8483e7 Fixes small typo
discard 3305fcb Uses wrapper instead of clean mvn command
discard 769db1e Uses slim image instead of alpine
discard 657512f Defines JDK's related env variables
discard 6de105b Drops a normal build
discard 5918617 Defines a simple Docker build
new b524d26 Defines a simple Docker build
new 8f96dca Sticks to trusty distro to check if that will solve build on JDK8
This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version. This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:
* -- * -- B -- O -- O -- O (35e7882)
\
N -- N -- N refs/heads/docker-build (8f96dca)
You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.
Any revisions marked "omit" are not gone; other references still
refer to them. Any revisions marked "discard" are gone forever.
The 2 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:
[struts] 01/02: Defines a simple Docker build
Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch docker-build
in repository https://gitbox.apache.org/repos/asf/struts.git
commit b524d26b57415ef32279a0b93b1a49ac86dbc72c
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Tue Aug 27 08:55:51 2019 +0200
Defines a simple Docker build
---
Jenkinsfile | 33 +++++++++++++++++++++++----------
1 file changed, 23 insertions(+), 10 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 7686d89..f361a00 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,28 +1,41 @@
#!groovy
pipeline {
agent {
- label 'ubuntu'
+ docker {
+ label 'ubuntu'
+ image 'maven:3-jdk-8'
+ args '-v $HOME/.m2:/root/.m2 -e MAVEN_OPTS="-Xmx1024m" -e USER=$USER'
+ }
}
options {
buildDiscarder logRotator(daysToKeepStr: '14', numToKeepStr: '10')
timeout(80)
disableConcurrentBuilds()
}
- tools {
- jdk 'JDK 1.8 (latest)'
- maven 'Maven 3 (latest)'
- }
triggers {
pollSCM 'H/15 * * * *'
}
- environment {
- MAVEN_OPTS = '-Xmx1024m -XX:MaxPermSize=256m'
- }
stages {
+ stage('Maven version') {
+ steps {
+ sh 'mvn -v'
+ }
+ }
+
stage('Build') {
steps {
- sh 'mvn --version'
- sh 'mvn clean source:jar javadoc:jar install deploy -DskipWiki -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2'
+ sh 'mvn -B -DskipTests -DskipAssembly clean package'
+ }
+ }
+
+ stage('Test') {
+ steps {
+ sh 'mvn test'
+ }
+ post {
+ always {
+ junit '**/target/surefire-reports/*.xml'
+ }
}
}
}
[struts] 02/02: Sticks to trusty distro to check if that will solve
build on JDK8
Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lukaszlenart pushed a commit to branch docker-build
in repository https://gitbox.apache.org/repos/asf/struts.git
commit 8f96dca4dc2ea0bbc7e011d7e9969c60d786a3ad
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Fri Aug 30 09:49:16 2019 +0200
Sticks to trusty distro to check if that will solve build on JDK8
---
.travis.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.travis.yml b/.travis.yml
index d973953..b679ae6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,3 +1,4 @@
+dist: trusty
language: java
sudo: false