Make some syntax repairs to jenkinsfile

This commit is contained in:
zontreck 2024-07-21 20:32:49 -07:00
parent 42806ffdf2
commit 560c5cf918

23
Jenkinsfile vendored
View file

@ -19,6 +19,8 @@ pipeline {
chmod +x compile.sh chmod +x compile.sh
./compile.sh ./compile.sh
rm out/.placeholder
cd build/linux/x64/release/bundle cd build/linux/x64/release/bundle
tar -cvf ../../../../../linux.tgz ./ tar -cvf ../../../../../linux.tgz ./
cd ../../../../app/outputs/flutter-apk cd ../../../../app/outputs/flutter-apk
@ -30,7 +32,7 @@ pipeline {
always { always {
archiveArtifacts artifacts: '*.tgz', fingerprint: true archiveArtifacts artifacts: '*.tgz', fingerprint: true
archiveArtifacts artifacts: '*.apk', fingerprint: true archiveArtifacts artifacts: '*.apk', fingerprint: true
archiveArtifacts artifacts: 'out/*nb*', fingerprint: true archiveArtifacts artifacts: 'out/*', fingerprint: true
deleteDir() deleteDir()
} }
@ -43,20 +45,21 @@ pipeline {
} }
steps { steps {
script { script {
bat ''' bat 'del out/.placeholder'
flutter pub get bat 'flutter pub get'
flutter build windows bat 'flutter build windows'
dart compile exe -o out/snbt2nbt.exe bin/snbt2nbt.dart
dart compile exe -o out/nbt2snbt.exe bin/nbt2snbt.dart
cd build/windows/x64/runner/Release bat 'dart compile exe -o out/snbt2nbt.exe bin/snbt2nbt.dart'
tar -cvf ../../../../../windows.tgz . bat 'dart compile exe -o out/nbt2snbt.exe bin/nbt2snbt.dart'
'''
dir("build/windows/x64/runner/Release") {
bat 'tar -cvf ../../../../../windows.tgz .'
}
} }
} }
post { post {
always { always {
archiveArtifacts artifacts: 'out/*.exe', fingerprint: true archiveArtifacts artifacts: 'out/*', fingerprint: true
archiveArtifacts artifacts: '*.tgz', fingerprint: true archiveArtifacts artifacts: '*.tgz', fingerprint: true
} }
} }