You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2022/05/30 09:59:14 UTC
[uima-build-jenkins-shared-library] branch main updated: [UIMA-6465] Check out code into subfolder of Jenkins workspace
This is an automated email from the ASF dual-hosted git repository.
rec pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/uima-build-jenkins-shared-library.git
The following commit(s) were added to refs/heads/main by this push:
new f379f56 [UIMA-6465] Check out code into subfolder of Jenkins workspace
f379f56 is described below
commit f379f5679ea3f8bbb05cadc4fec8840f34c8c965
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Mon May 30 11:59:10 2022 +0200
[UIMA-6465] Check out code into subfolder of Jenkins workspace
- Try checking out into subfolder
---
vars/defaultPipeline.groovy | 86 ++++++++++++++++++++++++++-------------------
1 file changed, 49 insertions(+), 37 deletions(-)
diff --git a/vars/defaultPipeline.groovy b/vars/defaultPipeline.groovy
index b5647b6..6c4aa32 100644
--- a/vars/defaultPipeline.groovy
+++ b/vars/defaultPipeline.groovy
@@ -67,6 +67,14 @@ def call(body) {
}
stages {
+ stage("Checkout code") {
+ steps {
+ dir('checkout') {
+ checkout scm
+ }
+ }
+ }
+
// Display information about the build environemnt. This can be useful for debugging
// build issues.
stage("Info") {
@@ -102,26 +110,28 @@ def call(body) {
': ' + env.CHANGE_BRANCH + '</a> (' + env.CHANGE_AUTHOR_DISPLAY_NAME + ')'
}
- withMaven(maven: config.maven, jdk: config.jdk, mavenLocalRepo: "$WORKSPACE/.repository") {
- script {
- def mavenCommand = 'mvn ' +
- params.extraMavenArguments +
- ' -U -Dmaven.test.failure.ignore=true clean verify';
-
- if (isUnix()) {
- sh script: mavenCommand
- }
- else {
- bat script: mavenCommand
+ dir('checkout') {
+ withMaven(maven: config.maven, jdk: config.jdk, mavenLocalRepo: "$WORKSPACE/.repository") {
+ script {
+ def mavenCommand = 'mvn ' +
+ params.extraMavenArguments +
+ ' -U -Dmaven.test.failure.ignore=true clean verify';
+
+ if (isUnix()) {
+ sh script: mavenCommand
+ }
+ else {
+ bat script: mavenCommand
+ }
}
}
- }
-
- script {
- def mavenConsoleIssues = scanForIssues tool: mavenConsole()
- def javaIssues = scanForIssues tool: java()
- def javaDocIssues = scanForIssues tool: javaDoc()
- publishIssues id: "analysis-${PLATFORM}", issues: [mavenConsoleIssues, javaIssues, javaDocIssues]
+
+ script {
+ def mavenConsoleIssues = scanForIssues tool: mavenConsole()
+ def javaIssues = scanForIssues tool: java()
+ def javaDocIssues = scanForIssues tool: javaDoc()
+ publishIssues id: "analysis-${PLATFORM}", issues: [mavenConsoleIssues, javaIssues, javaDocIssues]
+ }
}
}
}
@@ -133,28 +143,30 @@ def call(body) {
when { branch pattern: "main|main-v2", comparator: "REGEXP" }
steps {
- withMaven(maven: config.maven, jdk: config.jdk, mavenLocalRepo: "$WORKSPACE/.repository") {
- script {
- def finalStep = PLATFORM == "ubuntu" ? "deploy" : "verify"
-
- def mavenCommand = 'mvn ' +
- params.extraMavenArguments +
- ' -U -Dmaven.test.failure.ignore=true clean deploy'
+ dir('checkout') {
+ withMaven(maven: config.maven, jdk: config.jdk, mavenLocalRepo: "$WORKSPACE/.repository") {
+ script {
+ def finalStep = PLATFORM == "ubuntu" ? "deploy" : "verify"
- if (isUnix()) {
- sh script: mavenCommand
- }
- else {
- bat script: mavenCommand
+ def mavenCommand = 'mvn ' +
+ params.extraMavenArguments +
+ ' -U -Dmaven.test.failure.ignore=true clean deploy'
+
+ if (isUnix()) {
+ sh script: mavenCommand
+ }
+ else {
+ bat script: mavenCommand
+ }
}
}
- }
-
- script {
- def mavenConsoleIssues = scanForIssues tool: mavenConsole()
- def javaIssues = scanForIssues tool: java()
- def javaDocIssues = scanForIssues tool: javaDoc()
- publishIssues id: "analysis-${PLATFORM}", issues: [mavenConsoleIssues, javaIssues, javaDocIssues]
+
+ script {
+ def mavenConsoleIssues = scanForIssues tool: mavenConsole()
+ def javaIssues = scanForIssues tool: java()
+ def javaDocIssues = scanForIssues tool: javaDoc()
+ publishIssues id: "analysis-${PLATFORM}", issues: [mavenConsoleIssues, javaIssues, javaDocIssues]
+ }
}
}
}