Move deploy location.

This commit is contained in:
Tom Butcher 2026-02-02 01:14:56 +00:00
parent 55f9391e29
commit 4dedfca762

56
Jenkinsfile vendored
View File

@ -61,34 +61,6 @@ def deploy() {
'''
}
stage('Package Linux') {
nodejs(nodeJSInstallationName: 'Node23') {
sh '''
export PATH="$HOME/.bun/bin:$PATH"
# Run package:linux script
pnpm package:linux
'''
}
}
stage('Verify Packages') {
sh '''
echo "Checking for Linux packages..."
if [ -f dist/*.deb ]; then
echo "DEB package found:"
ls -lh dist/*.deb
fi
if [ -f dist/*.rpm ]; then
echo "RPM package found:"
ls -lh dist/*.rpm
fi
'''
}
stage('Archive Artifacts') {
archiveArtifacts artifacts: 'dist/homepanel, dist/*.deb, dist/*.rpm', fingerprint: true, allowEmptyArchive: false
}
stage('Deploy via SSH') {
sshPublisher(publishers: [
sshPublisherDesc(
@ -137,6 +109,34 @@ def deploy() {
])
}
stage('Package Linux') {
nodejs(nodeJSInstallationName: 'Node23') {
sh '''
export PATH="$HOME/.bun/bin:$PATH"
# Run package:linux script
pnpm package:linux
'''
}
}
stage('Verify Packages') {
sh '''
echo "Checking for Linux packages..."
if [ -f dist/*.deb ]; then
echo "DEB package found:"
ls -lh dist/*.deb
fi
if [ -f dist/*.rpm ]; then
echo "RPM package found:"
ls -lh dist/*.rpm
fi
'''
}
stage('Archive Artifacts') {
archiveArtifacts artifacts: 'dist/homepanel, dist/*.deb, dist/*.rpm', fingerprint: true, allowEmptyArchive: false
}
} finally {
cleanWs()
}