troubleshoot Jenkins - restore orig pipeline steps
This commit is contained in:
1 parent
adb190a0e0
commit
775dba6377
1 file changed
+37
-59
+37
-59
@@ -2,72 +2,50 @@ pipeline {
|
||||
agent {
|
||||
label 'os=windows && ram=8gb && installed=vs2022 && installed=python3'
|
||||
}
|
||||
parameters {
|
||||
booleanParam(name: 'CLONE_REPO', defaultValue: false, description: 'Whether or not to clone the repo')
|
||||
}
|
||||
stages {
|
||||
stage('Checkout SCM') {
|
||||
stage('Build') {
|
||||
steps {
|
||||
checkout scmGit(extensions: [lfs()])
|
||||
echo 'Building..'
|
||||
script {
|
||||
if (fileExists('.venv')) {
|
||||
echo 'Using existing Python virtual env'
|
||||
} else {
|
||||
echo 'Creating Python virtual env'
|
||||
bat 'tools\\ensure_venv.cmd'
|
||||
}
|
||||
}
|
||||
bat """
|
||||
.venv\\Scripts\\activate
|
||||
pip install -r requirements.txt
|
||||
python tools\\py\\build_spark.py --build-type Release
|
||||
"""
|
||||
}
|
||||
post {
|
||||
always {
|
||||
echo '========Build Done========'
|
||||
}
|
||||
success {
|
||||
echo '========Build executed successfully========'
|
||||
}
|
||||
failure {
|
||||
echo '========Build execution failed========'
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Git Clone') {
|
||||
when {
|
||||
expression { params.CLONE_REPO }
|
||||
}
|
||||
stage('Installing') {
|
||||
steps {
|
||||
echo 'Cloning repo...'
|
||||
bat cd
|
||||
echo 'Installing...'
|
||||
bat """
|
||||
"C:\\Program Files\\7-Zip\7z.exe" a -tzip Release.zip "build\\Release"
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('Archiving') {
|
||||
steps {
|
||||
echo 'Archiving...'
|
||||
archiveArtifacts artifacts: 'Release.zip', followSymlinks: false, onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
// stage('Git Checkout') {
|
||||
// steps {
|
||||
// echo ''
|
||||
// }
|
||||
// }
|
||||
// stage('Build') {
|
||||
// steps {
|
||||
// echo 'Building..'
|
||||
// script {
|
||||
// if (fileExists('.venv')) {
|
||||
// echo 'Using existing Python virtual env'
|
||||
// } else {
|
||||
// echo 'Creating Python virtual env'
|
||||
// bat 'tools\\ensure_venv.cmd'
|
||||
// }
|
||||
// }
|
||||
// bat """
|
||||
// .venv\\Scripts\\activate
|
||||
// pip install -r requirements.txt
|
||||
// python tools\\py\\build_spark.py --build-type Release
|
||||
// """
|
||||
// }
|
||||
// post {
|
||||
// always {
|
||||
// echo '========Build Done========'
|
||||
// }
|
||||
// success {
|
||||
// echo '========Build executed successfully========'
|
||||
// }
|
||||
// failure {
|
||||
// echo '========Build execution failed========'
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// stage('Installing') {
|
||||
// steps {
|
||||
// echo 'Installing...'
|
||||
// bat """
|
||||
// "C:\\Program Files\\7-Zip\7z.exe" a -tzip Release.zip "build\\Release"
|
||||
// """
|
||||
// }
|
||||
// }
|
||||
// stage('Archiving') {
|
||||
// steps {
|
||||
// echo 'Archiving...'
|
||||
// archiveArtifacts artifacts: 'Release.zip', followSymlinks: false, onlyIfSuccessful: true
|
||||
// }
|
||||
// }
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
||||
Reference in new issue
Block a user