aded 'git clean' to the pipelines
This commit is contained in:
parent
ac61475fe2
commit
86c9d08007
3 changed files with 2 additions and 1 deletions
1
Jenkins/Phabricator-pipeline/Jenkinsfile
vendored
1
Jenkins/Phabricator-pipeline/Jenkinsfile
vendored
|
@ -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")
|
||||
{
|
||||
|
|
1
Jenkins/master-pipeline/Jenkinsfile
vendored
1
Jenkins/master-pipeline/Jenkinsfile
vendored
|
@ -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")
|
||||
{
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue