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 2020/10/17 17:39:47 UTC
[uima-uimaj] branch NO-JIRA-Fix-build-on-Windows-nodes created (now
72f3f7a)
This is an automated email from the ASF dual-hosted git repository.
rec pushed a change to branch NO-JIRA-Fix-build-on-Windows-nodes
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git.
at 72f3f7a NO JIRA - Fix build step printing environment variables on Windows
This branch includes the following new commits:
new 72f3f7a NO JIRA - Fix build step printing environment variables on Windows
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.
[uima-uimaj] 01/01: NO JIRA - Fix build step printing environment
variables on Windows
Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
rec pushed a commit to branch NO-JIRA-Fix-build-on-Windows-nodes
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git
commit 72f3f7ace7baeccc6bf4d99cc21f6a2d0fc70385
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Sat Oct 17 19:40:16 2020 +0200
NO JIRA - Fix build step printing environment variables on Windows
---
Jenkinsfile | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 30cd4b2..581c0b4 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,9 +16,7 @@
// under the License.
pipeline {
- agent {
- label '!Windows'
- }
+ agent any
tools {
maven 'Maven (latest)'
@@ -48,7 +46,14 @@ pipeline {
stage("Build info") {
steps {
echo '=== Environment variables ==='
- sh 'printenv'
+ script {
+ if (isUnix()) {
+ sh 'printenv'
+ }
+ else {
+ bat 'set'
+ }
+ }
}
}