1
0
Fork 0

revert of git checkout script

This commit is contained in:
Christian Kühnel 2019-12-11 17:10:00 +00:00
parent 43299bb04b
commit 04dd0ce66a

View file

@ -25,16 +25,7 @@ pipeline {
stages { stages {
stage("git checkout"){ stage("git checkout"){
steps { steps {
// test to see if this is faster then Jenkins own git command... git url: 'https://github.com/llvm/llvm-project.git'
powershell """
if (Test-Path .git -PathType Container) {
git clean -fdx
git pull
#TODO: in case of errors: delete the folder and `git clone`
} else {
git clone --depth=1 https://github.com/llvm/llvm-project
}
"""
powershell 'New-Item -ItemType Directory -Force -Path llvm-premerge-checks' powershell 'New-Item -ItemType Directory -Force -Path llvm-premerge-checks'
powershell 'New-Item -ItemType Directory -Force -Path ${TARGET_DIR}' powershell 'New-Item -ItemType Directory -Force -Path ${TARGET_DIR}'
dir("llvm-premerge-checks") dir("llvm-premerge-checks")