Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
621a4b2ca7 | ||
|
|
250a258935 | ||
|
|
95d97a69da | ||
|
|
dfce23a33d | ||
|
|
709334a1aa |
No files matched your search
@@ -0,0 +1,59 @@
|
||||
pipeline {
|
||||
agent {
|
||||
label 'os=windows && ram=8gb && installed=vs2022 && installed=python3'
|
||||
}
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building..'
|
||||
if (fileExists('.venv')) {
|
||||
echo 'Using existing Python virtual env'
|
||||
} else {
|
||||
echo 'Creating Python virtual env'
|
||||
sh 'python3 -m venv .venv'
|
||||
}
|
||||
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 {
|
||||
echo '========Pipeline Done========'
|
||||
}
|
||||
success {
|
||||
echo '========Pipeline executed successfully ========'
|
||||
}
|
||||
failure {
|
||||
echo '========Pipeline execution failed========'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
pipeline {
|
||||
agent {
|
||||
label 'lab-main'
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building..'
|
||||
if (!fileExists('.venv')) {
|
||||
echo 'Creating python virtual env'
|
||||
sh 'python3 -m venv .venv'
|
||||
}
|
||||
sh """
|
||||
. .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
python tools/py/build_sparkd.py --compiler gcc --configuration release
|
||||
"""
|
||||
}
|
||||
}
|
||||
stage('Installing') {
|
||||
steps {
|
||||
echo 'Installing..'
|
||||
sh """
|
||||
cd build/gcc/release
|
||||
cmake --build . --target install
|
||||
"""
|
||||
sh 'tar -czf install.tar.gz install'
|
||||
}
|
||||
}
|
||||
stage('Archiving') {
|
||||
steps {
|
||||
echo 'Archiving..'
|
||||
archiveArtifacts artifacts: 'install.tar.gz', followSymlinks: false, onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user