revert of git checkout script
This commit is contained in:
parent
43299bb04b
commit
04dd0ce66a
1 changed files with 1 additions and 10 deletions
11
Jenkins/master-windows-pipeline/Jenkinsfile
vendored
11
Jenkins/master-windows-pipeline/Jenkinsfile
vendored
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue