Skip to content

Commit

Permalink
Adding envDebug and proper implementation for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed May 3, 2017
1 parent 79c2b24 commit 342519b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/edu/internet2/jenkins/DockerBuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ class DockerBuild implements Serializable {
this.config = config
}

def tag() {
def envDebug() {
env.getEnvironment().toString()
}

def tag() {
if(env.BRANCH_NAME == "master"){
"latest"
}else{
env.BRANCH_NAME
}
}

def imagename() {
readCommonBash('imagename')
}
Expand Down

0 comments on commit 342519b

Please sign in to comment.