Compare commits
2 Commits
0.0.1.post
...
0.0.1.post
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
be9ef684e4 | ||
|
|
792666c6ec |
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -148,7 +148,8 @@ pipeline {
|
||||
{
|
||||
if(sh(returnStdout: true, script: "git tag --points-at HEAD").trim().isEmpty())
|
||||
{
|
||||
error("master push/merge must have an explicit tag release number")
|
||||
currentBuild.getRawBuild().getExecutor().doStop()
|
||||
//error("master push/merge must have an explicit tag release number")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -155,16 +155,16 @@ class gitversionhelper: # pylint: disable=too-few-public-methods
|
||||
return result
|
||||
|
||||
@classmethod
|
||||
def getMessage(cls, hash:str) -> str:
|
||||
def getMessage(cls, commit_hash:str) -> str:
|
||||
"""
|
||||
retrieve a commit message from repository
|
||||
Args:
|
||||
hash: id of the commit
|
||||
commit_hash: id of the commit
|
||||
Returns:
|
||||
the commit message
|
||||
"""
|
||||
try:
|
||||
res=_exec(f"git log -z --pretty=\"tformat:%B%-C()\" -n 1 {hash}",None,True).rstrip('\x00')
|
||||
res=_exec(f"git log -z --pretty=\"tformat:%B%-C()\" -n 1 {commit_hash}",None,True).rstrip('\x00')
|
||||
except gitversionhelper.unknownGITFatalError as _e:
|
||||
raise cls.commitNotFound("no commit found in commit history") from _e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user