#22874 More debug output
Signed-off-by: arjantijms <arjan.tijms@gmail.com>
diff --git a/Jenkinsfile b/Jenkinsfile
index dc2415b..d828966 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -205,6 +205,10 @@
sh '''
echo Catting settings.xml
cat /home/jenkins/.m2/settings.xml
+
+ echo Maven version
+ mvn -v
+
bash -xe ./gfbuild.sh build_re_dev
'''
archiveArtifacts artifacts: 'bundles/*.zip'
diff --git a/appserver/tests/appserv-tests/config/run.xml b/appserver/tests/appserv-tests/config/run.xml
index aca5aa1..7f6e34d 100644
--- a/appserver/tests/appserv-tests/config/run.xml
+++ b/appserver/tests/appserv-tests/config/run.xml
@@ -96,7 +96,7 @@
<filterchain>
<linecontains>
<contains value="ASMain"/>
- <contains value="${env.S1AS_HOME}"/>
+ <contains value="${env.S1AS_HOME}"/>
</linecontains>
<tokenfilter>
<replaceregex pattern="^(\d+) ASMain (.*)" replace="\1"/>
@@ -106,10 +106,21 @@
<striplinebreaks/>
</filterchain>
</loadfile>
- <echo>Dumping the thread stack for Appserver instance with PID - "${pid.out}"</echo>
- <exec executable="${env.JAVA_HOME}/bin/jstack">
- <arg value="${pid.out}"/>
- </exec>
+
+ <if>
+ <isset property="pid.out.file"/>
+ <then>
+ <echo>Dumping the thread stack for Appserver instance with PID - "${pid.out}"</echo>
+ <exec executable="${env.JAVA_HOME}/bin/jstack">
+ <arg value="${pid.out}"/>
+ </exec>
+ </then>
+ <else>
+ <echo>Attempt to dump AS threads stack, but no Appserver instance with PID found in - "${pid.out.file}" </echo>
+ </else>
+ </if>
+
+
<delete file="pid.out.file"/>
</target>