1
0
Fork 0

print current git commit info on checkout and while applying patch

This commit is contained in:
Mikhail Goncharov 2020-01-23 09:32:45 +01:00
parent 36b87f3496
commit bf98f92a3d
2 changed files with 4 additions and 4 deletions

View file

@ -46,16 +46,14 @@ pipeline {
currentBuild.displayName += " D${drev_id}"
currentBuild.description = "<a href='https://reviews.llvm.org/D${drev_id}'>D${drev_id}</a>"
}
// Report versions of the installed packages.
sh 'dpkg -l'
sh 'clang --version'
sh 'python --version'
sh 'dpkg -l' // Report versions of the installed packages.
}
}
stage("git checkout"){
steps {
git url: 'https://github.com/llvm/llvm-project.git'
sh 'git clean -fdx'
sh 'git show -s'
sh 'mkdir -p llvm-premerge-checks'
dir("llvm-premerge-checks")
{

View file

@ -87,6 +87,8 @@ class ApplyPatch:
'master branch instead...'.format(self.git_hash)]
subprocess.check_call('git checkout master', stdout=sys.stdout,
stderr=sys.stderr, shell=True)
subprocess.check_call('git show -s', stdout=sys.stdout,
stderr=sys.stderr, shell=True)
print('git checkout completed.')
def _apply_patch(self):