custom-git: accept commit SHAs 7+ chars in length
This commit is contained in:
parent
598fc6ec46
commit
fe3f0dc10b
2 changed files with 2 additions and 2 deletions
|
@ -1048,7 +1048,7 @@ class CustomBuildTrigger(BuildTriggerHandler):
|
|||
}
|
||||
|
||||
prepared = PreparedBuild(self.trigger)
|
||||
prepared.tags = [commit_sha]
|
||||
prepared.tags = [commit_sha[:7]]
|
||||
prepared.name_from_sha(commit_sha)
|
||||
prepared.subdirectory = config['subdir']
|
||||
prepared.metadata = metadata
|
||||
|
|
Reference in a new issue