commit d571e3d4e4ce40cd3483bfa02c3043b13597bf6b Author: Jim Nicholson Date: Thu Feb 1 01:05:58 2024 -0800 Initial version diff --git a/.groovylintrc.json b/.groovylintrc.json new file mode 100644 index 0000000..e30e5f6 --- /dev/null +++ b/.groovylintrc.json @@ -0,0 +1,8 @@ +{ + "extends": "recommended", + "rules": { + "Indentation": { + "enabled": false + } + } +} \ No newline at end of file diff --git a/vars/buildStep.groovy b/vars/buildStep.groovy new file mode 100644 index 0000000..f7a9fe7 --- /dev/null +++ b/vars/buildStep.groovy @@ -0,0 +1,9 @@ +#!/usr/bin/env groovy + +def call(Map config = [:]) { + echo "Hello, ${config.name}" + if (fileExists 'Makefile') { + sh 'make' + } + echo 'Done' +}