#!/usr/bin/env groovy def call(Map config = [:]) { echo "Hello, ${config.name}" if (fileExists 'Makefile') { sh 'make' } echo 'Done' }