1
0
Fork 0

aded 'git clean' to the pipelines

This commit is contained in:
Christian Kühnel 2019-10-21 22:47:25 +02:00
parent ac61475fe2
commit 86c9d08007
3 changed files with 2 additions and 1 deletions

View file

@ -31,6 +31,7 @@ pipeline {
stage("git checkout"){ stage("git checkout"){
steps { steps {
git url: 'https://github.com/llvm/llvm-project.git' git url: 'https://github.com/llvm/llvm-project.git'
sh 'git clean -fdx'
sh 'mkdir -p llvm-premerge-checks' sh 'mkdir -p llvm-premerge-checks'
dir("llvm-premerge-checks") dir("llvm-premerge-checks")
{ {

View file

@ -21,6 +21,7 @@ pipeline {
stage("git checkout"){ stage("git checkout"){
steps { steps {
git url: 'https://github.com/llvm/llvm-project.git' git url: 'https://github.com/llvm/llvm-project.git'
sh 'git clean -fdx'
sh 'mkdir -p llvm-premerge-checks' sh 'mkdir -p llvm-premerge-checks'
dir("llvm-premerge-checks") dir("llvm-premerge-checks")
{ {

View file

@ -38,7 +38,6 @@ def _get_parent_hash(diff_id: str, phab:Phabricator) -> str:
def _git_checkout(git_hash:str): def _git_checkout(git_hash:str):
subprocess.check_call('git reset --hard {}'.format(git_hash), shell=True) subprocess.check_call('git reset --hard {}'.format(git_hash), shell=True)
subprocess.check_call('git clean -fdx', shell=True)
def _apply_patch(diff_id: str, conduit_token: str, host: str): def _apply_patch(diff_id: str, conduit_token: str, host: str):