FSPatched/Jenkinsfile

98 lines
2.3 KiB
Text
Raw Normal View History

2024-10-06 13:25:02 -07:00
pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '5'
)
)
}
stages {
stage("Clean Up") {
agent {
label 'linuxfs'
}
steps {
script {
sh '''
#!/bin/bash
git clean -xfd
git reset --hard
'''
}
}
}
stage("Clone Viewer Source") {
agent {
label "linuxfs"
}
steps {
script {
sh '''
#!/bin/bash
git submodule add https://github.com/FirestormViewer/phoenix-firestorm
'''
}
}
}
stage("Apply Patches") {
agent {
label "LinuxFS"
}
steps {
script {
sh '''
#!/bin/bash
cd patches
for i in *.patch; do
echo "Applying patch: $i"
patch -Np1 -i "$i" -d ../phoenix-firestorm/
done
'''
}
}
}
stage("Build Viewer") {
agent {
label "linuxfs"
}
script {
sh '''
#!/bin/bash
2024-10-06 13:26:19 -07:00
cd phoenix-firestorm
2024-10-06 13:25:02 -07:00
rm -fv build*/newview/Phoenix*tar*
rm -fv build*/newview/*.AppImage
rm -rfv build*/newview/squash*
rm -rfv build*/newview/packaged
chmod +x /firestorm/installables.sh
/firestorm/installables.sh
autobuild configure -A64 -c ReleaseFS_open -- --fmodstudio --chan FS_ci_zdev --package -DLL_TESTS:BOOL=NO
autobuild build -A64 -c ReleaseFS_open --no-configure -- --fmodstudio || true
'''
}
post {
always {
2024-10-06 13:26:19 -07:00
archiveArtifacts artifacts: "phoenix-firestorm/*build*/newview/Phoenix*tar"
2024-10-06 13:25:02 -07:00
deleteDir()
}
}
}
}
}