diff --git a/Jenkinsfile b/Jenkinsfile index 94afbd0..a497a63 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -63,6 +63,16 @@ node { } } +def maintainer() { + def matcher = readFile('common.bash') =~ 'maintainer="(.+)"' + matcher ? matcher[0][1] : 'tier' +} + +def imagename() { + def matcher = readFile('common.bash') =~ 'imagename="(.+)"' + matcher ? matcher[0][1] : null +} + def handleError(String message){ echo "${message}" currentBuild.setResult("FAILED")