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/18 20:00:35 UTC

[uima-uimafit] 01/01: [NO JIRA] Fix Jenkinsfile

This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch NO-JIRA-Fix-Jenkinsfile
in repository https://gitbox.apache.org/repos/asf/uima-uimafit.git

commit 6a2ff16910d2cb82f06dae64b4c83aca0625180e
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Sun Oct 18 22:00:24 2020 +0200

    [NO JIRA] Fix Jenkinsfile
    
    - Re-enable builds on Windows nodes
    - Adjust tools IDs
    - Fix environment variables step to also run on Windows nodes
---
 Jenkinsfile | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5bd0abc..28eabed 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,13 +16,11 @@
 // under the License.
   
 pipeline {
-  agent {
-    label '!Windows'
-  }
-
-  tools { 
-    maven 'Maven (latest)' 
-    jdk 'JDK 1.8 (latest)' 
+  agent any
+  
+  tools {
+    maven 'maven_latest' 
+    jdk 'jdk_8_latest' 
   }
 
   options {
@@ -48,7 +46,14 @@ pipeline {
     stage("Build info") {
       steps {
         echo '=== Environment variables ==='
-        sh 'printenv'
+        script {
+          if (isUnix()) {
+            sh 'printenv'
+          }
+          else {
+            bat 'set'
+          }
+        }
       }
     }