273f2128fe
Add support for the Slave Prerequisites Plugin (https://wiki.jenkins-ci.org/display/JENKINS/Slave+Prerequisites+Plugin) Change-Id: I98e854ab3ab7cdbe1563b6b38b7fc4d661edcd11
13 lines
338 B
XML
13 lines
338 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<project>
|
|
<properties>
|
|
<com.cloudbees.plugins.JobPrerequisites>
|
|
<script>#!/bin/bash
|
|
AVAILABLE=$(df -BG --output=avail / | tail -1)
|
|
test ${AVAILABLE%G} -ge 10
|
|
</script>
|
|
<interpreter>shell script</interpreter>
|
|
</com.cloudbees.plugins.JobPrerequisites>
|
|
</properties>
|
|
</project>
|