Skip to content

Commit

Permalink
Merge pull request openshift#274 from cgwalters/cloud-relver
Browse files Browse the repository at this point in the history
jenkins/cloud: Fix image genver logic
  • Loading branch information
openshift-merge-robot authored Sep 4, 2018
2 parents 0842af5 + 5e9030b commit c24bad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile.cloud
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ node(NODE) {
// We write this to meta.json
def meta = [:];
Integer image_genver;
if (last_build_meta != null) {
image_genver = last_build_meta["image-genver"] + 1;
if (previously_built_commit) {
image_genver = Integer.parseInt(last_build_meta["image-genver"]) + 1;
} else {
image_genver = 1;
}
Expand Down

0 comments on commit c24bad0

Please sign in to comment.