From 86c9d0800722f936812f50024166197e8479a8e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Mon, 21 Oct 2019 22:47:25 +0200 Subject: [PATCH] aded 'git clean' to the pipelines --- Jenkins/Phabricator-pipeline/Jenkinsfile | 1 + Jenkins/master-pipeline/Jenkinsfile | 1 + scripts/phabtalk/apply_patch.py | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkins/Phabricator-pipeline/Jenkinsfile b/Jenkins/Phabricator-pipeline/Jenkinsfile index 8f04ed4..646b727 100644 --- a/Jenkins/Phabricator-pipeline/Jenkinsfile +++ b/Jenkins/Phabricator-pipeline/Jenkinsfile @@ -31,6 +31,7 @@ pipeline { stage("git checkout"){ steps { git url: 'https://github.com/llvm/llvm-project.git' + sh 'git clean -fdx' sh 'mkdir -p llvm-premerge-checks' dir("llvm-premerge-checks") { diff --git a/Jenkins/master-pipeline/Jenkinsfile b/Jenkins/master-pipeline/Jenkinsfile index 541eaa5..3d7c004 100644 --- a/Jenkins/master-pipeline/Jenkinsfile +++ b/Jenkins/master-pipeline/Jenkinsfile @@ -21,6 +21,7 @@ pipeline { stage("git checkout"){ steps { git url: 'https://github.com/llvm/llvm-project.git' + sh 'git clean -fdx' sh 'mkdir -p llvm-premerge-checks' dir("llvm-premerge-checks") { diff --git a/scripts/phabtalk/apply_patch.py b/scripts/phabtalk/apply_patch.py index 7d6d5af..cb0c64b 100755 --- a/scripts/phabtalk/apply_patch.py +++ b/scripts/phabtalk/apply_patch.py @@ -38,7 +38,6 @@ def _get_parent_hash(diff_id: str, phab:Phabricator) -> str: def _git_checkout(git_hash:str): 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):