epcim of DevOps
8/17/2017 - 4:02 PM

Clear all jenkins job builds - run into jobs directory

Clear all jenkins job builds - run into jobs directory

#!/bin/bash
for dir in `find .  ! -path . -maxdepth 1 -type d`
do
  echo "rm -rf $dir/builds/*"
  rm -rf "$dir/builds/*"
done