Skip to content
Permalink
Browse files

Adding standard helpers

  • Loading branch information
Jim Van Fleet
Jim Van Fleet committed Aug 30, 2016
1 parent afa01de commit 991a369694a029a79ab2e3b07aaceb90995f48ac
Showing with 10 additions and 0 deletions.
  1. +10 −0 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")

0 comments on commit 991a369

Please sign in to comment.
You can’t perform that action at this time.