2024-08-30 20:37:25 -07:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage("Build on Linux") {
|
|
|
|
agent {
|
|
|
|
label 'linux'
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
2024-08-30 20:53:18 -07:00
|
|
|
|
|
|
|
pushd dart
|
|
|
|
|
|
|
|
mkdir out
|
|
|
|
dart compile exe -o out/dbikc-linux-x64 bin/dbikc.dart
|
|
|
|
dart compile exe -o out/mkfsreport-linux-x64 bin/mkfsreport.dart
|
|
|
|
dart compile exe -o out/nbt2snbt-linux-x64 bin/nbt2snbt.dart
|
|
|
|
dart compile exe -o out/snbt2nbt-linux-x64 bin/snbt2nbt.dart
|
|
|
|
dart compile exe -o out/uuidgen-linux-x64 bin/uuidgen.dart
|
|
|
|
dart compile exe -o out/pause-linux-x64 bin/pause.dart
|
|
|
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd cpp
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
|
|
|
|
popd
|
|
|
|
popd
|
2024-08-30 20:37:25 -07:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
2024-08-30 20:53:18 -07:00
|
|
|
archiveArtifacts artifacts: "dart/out/*", fingerprint: true
|
|
|
|
archiveArtifacts artifacts: "cpp/build/vsleep", fingerprint: true
|
|
|
|
archiveArtifacts artifacts: "cpp/build/pause", fingerprint: true
|
2024-08-30 20:37:25 -07:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|