You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/10/30 21:12:38 UTC
(maven-dist-tool) branch jenkis-fix updated (bfd0175 -> 7c5ccd0)
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a change to branch jenkis-fix
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
discard bfd0175 Improve jenkins build
new 7c5ccd0 Improve jenkins build
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 (bfd0175)
\
N -- N -- N refs/heads/jenkis-fix (7c5ccd0)
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 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.
Summary of changes:
Jenkinsfile | 35 +++++++++--------------------------
1 file changed, 9 insertions(+), 26 deletions(-)
(maven-dist-tool) 01/01: Improve jenkins build
Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sjaranowski pushed a commit to branch jenkis-fix
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
commit 7c5ccd0c873a05fddcac5dd2041d57ed4809e4a4
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Wed Oct 30 21:49:30 2024 +0100
Improve jenkins build
- publish only on master
---
Jenkinsfile | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 115ed8c..445ce19 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -34,27 +34,25 @@ pipeline {
}
}
stage('Check') {
- when {
- branch 'master'
- }
steps {
withMaven(jdk:'jdk_17_latest', maven:'maven_3_latest', mavenLocalRepo:'.repository', options: [
artifactsPublisher(disabled: true),
findbugsPublisher(disabled: true),
]) {
- sh "mvn -ntp -V -e -Preporting -Dscreenshot=false clean install site"
+ catchError {
+ sh "mvn -ntp -V -e -Preporting -Dscreenshot=clean install site"
+ }
+ }
+ archiveArtifacts artifacts: "**/target/site/**/*",allowEmptyArchive: true
+ script {
+ if (env.BRANCH_NAME == 'master') {
+ publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "${env.WORKSPACE}/target/site", reportFiles: 'index.html', reportName: 'site', reportTitles: ''])
+ }
}
}
}
}
- post {
- always {
- // not sure what is this
- //jenkinsNotify()
- archiveArtifacts artifacts: "**/site/*.*",allowEmptyArchive: true
- publishHTML([allowMissing: false, alwaysLinkToLastBuild: true, keepAll: true, reportDir: "${env.WORKSPACE}/target/site", reportFiles: 'index.html', reportName: 'site', reportTitles: ''])
- }
- }
+
options {
buildDiscarder(logRotator(numToKeepStr:'15'))
timeout(time: 10, unit: 'MINUTES')