This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch SUREFIRE-1689
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/SUREFIRE-1689 by this push:
new bd194dc investigating maven-booter on Linux
bd194dc is described below
commit bd194dc03c66d0a3b8d31bcc03ceb93bd3e0ff71
Author: tibordigana <[email protected]>
AuthorDate: Mon Oct 14 14:48:26 2019 +0200
investigating maven-booter on Linux
---
Jenkinsfile | 4 ++++
.../src/main/java/org/apache/maven/surefire/booter/PpidChecker.java | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 7e61b7a..04f9881 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -187,6 +187,10 @@ def buildProcess(String stageKey, String jdkName, String
jdkTestName, String mvn
}
if (currentBuild.result != null && currentBuild.result != 'SUCCESS') {
+ if (fileExists('maven-booter/target')) {
+ zip(zipFile: "maven-booter--${stageKey}.zip", dir:
'maven-booter/target', archive: true)
+ }
+
if (fileExists('maven-failsafe-plugin/target/it')) {
zip(zipFile: "maven-failsafe-plugin--${stageKey}.zip", dir:
'maven-failsafe-plugin/target/it', archive: true)
}
diff --git
a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java
b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java
index b525acc..02885c1 100644
---
a/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java
+++
b/surefire-booter/src/main/java/org/apache/maven/surefire/booter/PpidChecker.java
@@ -125,7 +125,7 @@ final class PpidChecker
parentProcessInfo = unix();
checkProcessInfo();
- // let's compare elapsed time, should be greater or equal if
parent process is the same and still alive
+ System.out.println( "isInvalid=" + parentProcessInfo.isInvalid() +
", previousInfo=" + previousInfo );// let's compare elapsed time, should be
greater or equal if parent process is the same and still alive
return !parentProcessInfo.isInvalid()
&& ( previousInfo == null ||
!parentProcessInfo.isTimeBefore( previousInfo ) );
}
@@ -369,6 +369,7 @@ final class PpidChecker
}
checkValid( scanner );
int exitCode = process.waitFor();
+ System.out.println( "isStopped=" + isStopped() + ", exitCode="
+ exitCode );
return isStopped() ? ERR_PROCESS_INFO : exitCode == 0 ?
processInfo : INVALID_PROCESS_INFO;
}
catch ( Exception e )