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

skygo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-jenkins-lib.git


The following commit(s) were added to refs/heads/master by this push:
     new 0597818  display junit for matrix
0597818 is described below

commit 0597818cdfe30a50c5c21981d0ac5e9b81acda9a
Author: Eric Barboni <[email protected]>
AuthorDate: Tue Oct 19 10:32:09 2021 +0200

    display junit for matrix
---
 jobs/Jenkinsmatrixfile.groovy | 27 ++++++++++++++++++++++++---
 1 file changed, 24 insertions(+), 3 deletions(-)

diff --git a/jobs/Jenkinsmatrixfile.groovy b/jobs/Jenkinsmatrixfile.groovy
index 77714f2..ea5e75d 100644
--- a/jobs/Jenkinsmatrixfile.groovy
+++ b/jobs/Jenkinsmatrixfile.groovy
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
 pipeline {
     options {
         buildDiscarder(logRotator(numToKeepStr: '2'))
@@ -55,15 +74,17 @@ pipeline {
                                 unzip  zipFile: 'zip/NetBeansIDE.zip', 
dir:'netbeans'
                                 sh "mkdir -p 
${WORKSPACE}/result/unit/${env.JDK}/${env.MODULE} "
                                 sh 'java -version'
-                                sh 'ant -version'
+                                //sh 'ant -version'
                                 // this is not finished
                                 wrap([$class: 'Xvfb', additionalOptions: '', 
assignedLabels: '', displayNameOffset: 0, autoDisplayName:true, 
installationName: 'Xvfb', parallelBuild: true, screen: '']) {
                                     // echo to return 0 and go further
                                     sh "ant -f ${WORKSPACE}/testdir/build.xml 
-Dtest-sys-prop.ignore.random.failures=true 
-Dtest.results.dir=${WORKSPACE}/result/unit/${env.JDK}/${env.MODULE} 
-Dtest.clusters=${env.MODULE} -Dtest.types=unit 
-Dnetbeans.dest.dir=${WORKSPACE}/netbeans/netbeans || echo Failed "
                                 }
-                                //junit 
"${WORKSPACE}/result/unit/${env.JDK}/${env.MODULE}/**/*.xml"
+                                // do not use TESTS- as it's redundant with 
TEST- (inverted to check report readability)
+                                junit 
"result/unit/${env.JDK}/${env.MODULE}/**/TESTS-*.xml"
                                 //sh "ant -f ${WORKSPACE}/testdir/build.xml 
-Dtest.clusters=${env.MODULE} -Dtest.types=qa-functional 
-Dnetbeans.dest.dir=${WORKSPACE}/netbeans/netbeans"
-                                archiveArtifacts artifacts: 
"${WORKSPACE}/result/unit/${env.JDK}/${env.MODULE}/**"
+                                // html can be done but unusable from jenkins
+                                //archiveArtifacts artifacts: 
"result/unit/${env.JDK}/${env.MODULE}/**/*"
                             }
                         }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to