Skip to content

Commit

Permalink
fix(api): inconsistent git.hash (#4962)
Browse files Browse the repository at this point in the history
close #4952

Signed-off-by: Yvonnick Esnault <yvonnick.esnault@corp.ovh.com>
  • Loading branch information
yesnault committed Feb 6, 2020
1 parent b209414 commit 7b7ced5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions engine/api/workflow/process_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,7 @@ func processNode(ctx context.Context, db gorp.SqlExecutor, store cache.Store, pr
if nr.VCSTag != "" {
wr.Tag(tagGitTag, nr.VCSTag)
}
if len(nr.VCSHash) >= 7 {
wr.Tag(tagGitHash, nr.VCSHash[:7])
} else {
wr.Tag(tagGitHash, nr.VCSHash)
}
wr.Tag(tagGitHash, nr.VCSHash)
wr.Tag(tagGitAuthor, vcsInf.Author)
}

Expand Down

0 comments on commit 7b7ced5

Please sign in to comment.