diff --git a/vars/readCommonBash.groovy b/vars/readCommonBash.groovy new file mode 100644 index 0000000..dff621c --- /dev/null +++ b/vars/readCommonBash.groovy @@ -0,0 +1,4 @@ +def call(String key = 'maintainer') { + def matcher = readFile('common.bash') =~ (key + '="(.+)"') + matcher ? matcher[0][1] : 'null' +} \ No newline at end of file