diff --git a/Jenkinsfile b/Jenkinsfile index 7eabfab..33a2f68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -61,35 +61,7 @@ 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') { + stage('Deploy via SSH') { sshPublisher(publishers: [ sshPublisherDesc( configName: 'homepanel.tombutcher.local', @@ -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() }