Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Adding standard helpers
Jim Van Fleet committed Aug 30, 2016
1 parent afa01de commit 991a369
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions 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.