Use a compile.bat file
This commit is contained in:
parent
322f70fe47
commit
3aeca5f92c
2 changed files with 26 additions and 31 deletions
32
Jenkinsfile
vendored
32
Jenkinsfile
vendored
|
@ -39,42 +39,12 @@ pipeline {
|
|||
}
|
||||
|
||||
steps {
|
||||
bat '''
|
||||
|
||||
git clean -xfd
|
||||
git reset --hard
|
||||
|
||||
mkdir cpp\\build
|
||||
cd cpp\\build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
|
||||
cd ..\\..
|
||||
'''
|
||||
bat 'compile.bat'
|
||||
|
||||
archiveArtifacts artifacts: "cpp\\build\\Debug\\vsleep.exe", fingerprint: true
|
||||
archiveArtifacts artifacts: "cpp\\build\\Debug\\pause.exe", fingerprint: true
|
||||
|
||||
bat '''
|
||||
cd dart
|
||||
mkdir out
|
||||
dart pub get
|
||||
'''
|
||||
|
||||
bat '''
|
||||
cd dart
|
||||
|
||||
dart compile exe -o out\\dbikc.exe bin\\dbikc.dart
|
||||
dart compile exe -o out\\uuidgen.exe bin\\uuidgen.dart
|
||||
dart compile exe -o out\\mkfsreport.exe bin\\mkfsreport.dart
|
||||
dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart
|
||||
dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
|
||||
dart compile exe -o out\\pause.exe bin\\pause.dart
|
||||
dart compile exe -o out\\sleep.exe bin\\sleep.dart
|
||||
|
||||
cd ..
|
||||
'''
|
||||
|
||||
archiveArtifacts artifacts: "dart\\out\\*.exe", fingerprint: true
|
||||
|
||||
}
|
||||
|
|
25
compile.bat
Normal file
25
compile.bat
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
git clean -xfd
|
||||
git reset --hard
|
||||
|
||||
mkdir cpp\build
|
||||
cd cpp\build
|
||||
cmake ..
|
||||
cmake --build .
|
||||
|
||||
cd ..\..
|
||||
|
||||
cd dart
|
||||
mkdir out
|
||||
dart pub get
|
||||
|
||||
|
||||
dart compile exe -o out\\dbikc.exe bin\\dbikc.dart
|
||||
dart compile exe -o out\\uuidgen.exe bin\\uuidgen.dart
|
||||
dart compile exe -o out\\mkfsreport.exe bin\\mkfsreport.dart
|
||||
dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart
|
||||
dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
|
||||
dart compile exe -o out\\pause.exe bin\\pause.dart
|
||||
dart compile exe -o out\\sleep.exe bin\\sleep.dart
|
||||
|
||||
cd ..
|
Loading…
Reference in a new issue