Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Fix missing variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic Patterson committed Mar 1, 2018
1 parent 0cd9c0e commit f21907a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ public getStageName(Map yml, Map args, String stepName) {
String imageName = args?.imageName ?: yml.tools?.docker?.imageName ?: "${env.GIT_OWNER}/${env.GIT_REPO}"
switch(stepName) {
case 'build':
return dockerfile ? "docker: build: $imageName": 'docker: build'
return "docker: build: $imageName"
case 'push':
return "docker: push: $imageName"
}
Expand Down

0 comments on commit f21907a

Please sign in to comment.