You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/07/28 09:08:46 UTC
[maven-jenkins-lib] branch master updated: print disk space usage
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jenkins-lib.git
The following commit(s) were added to refs/heads/master by this push:
new d2913d4 print disk space usage
d2913d4 is described below
commit d2913d4a591e02c2b3f289c1e727e6224508cf7a
Author: tibordigana <ti...@apache.org>
AuthorDate: Sun Jul 28 11:08:26 2019 +0200
print disk space usage
---
vars/asfMavenTlpPlgnBuild.groovy | 2 ++
1 file changed, 2 insertions(+)
diff --git a/vars/asfMavenTlpPlgnBuild.groovy b/vars/asfMavenTlpPlgnBuild.groovy
index cb8b255..76103c9 100644
--- a/vars/asfMavenTlpPlgnBuild.groovy
+++ b/vars/asfMavenTlpPlgnBuild.groovy
@@ -199,8 +199,10 @@ def doCreateTask( os, jdk, maven, tasks, first, plan, taskContext )
], publisherStrategy: 'EXPLICIT') {
dir (stageDir) {
if (isUnix()) {
+ sh 'df -h -t --output=source,used,avail,size,pcent'
sh cmd.join(' ')
} else {
+ bat 'wmic logicaldisk get size,freespace,caption'
bat cmd.join(' ')
}
}