Created
March 21, 2025 18:01
-
-
Save gabrielfeo/3ac90d0600889331038c89084834ea1b to your computer and use it in GitHub Desktop.
Capture free disk space to a custom value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.file.FileSystems | |
develocity { | |
buildScan { | |
background { | |
FileSystems.getDefault().getFileStores().forEach { | |
value("Free space: ${it.name()}", "${it.usableSpace}/${it.totalSpace}") | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment