jenkins-job-builder/tests/properties/fixtures/slave-prerequisites-minimal.yaml
Alexander Evseev 273f2128fe Add the Slave Prerequisites properties plugin
Add support for the Slave Prerequisites Plugin
(https://wiki.jenkins-ci.org/display/JENKINS/Slave+Prerequisites+Plugin)

Change-Id: I98e854ab3ab7cdbe1563b6b38b7fc4d661edcd11
2017-03-07 12:09:23 +03:00

7 lines
163 B
YAML

properties:
- slave-prerequisites:
script: |
#!/bin/bash
AVAILABLE=$(df -BG --output=avail / | tail -1)
test ${AVAILABLE%G} -ge 10