2024-08-30 20:37:25 -07:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
2024-08-30 23:50:42 -07:00
|
|
|
options {
|
|
|
|
buildDiscarder(
|
|
|
|
logRotator(
|
|
|
|
numToKeepStr: '3'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-08-30 20:37:25 -07:00
|
|
|
stages {
|
|
|
|
stage("Build on Linux") {
|
|
|
|
agent {
|
2024-10-05 19:23:11 -07:00
|
|
|
label 'flutter'
|
2024-08-30 20:37:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
2024-08-30 20:54:20 -07:00
|
|
|
|
|
|
|
./compile.sh
|
2024-08-30 20:37:25 -07:00
|
|
|
'''
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
2024-08-30 20:53:18 -07:00
|
|
|
archiveArtifacts artifacts: "dart/out/*", fingerprint: true
|
2024-08-31 00:22:18 -07:00
|
|
|
archiveArtifacts artifacts: "cpp/build/vsleep-cpp", fingerprint: true
|
|
|
|
archiveArtifacts artifacts: "cpp/build/pause-cpp", fingerprint: true
|
2024-08-30 20:37:25 -07:00
|
|
|
deleteDir()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-08-30 21:07:26 -07:00
|
|
|
|
|
|
|
stage("Build on Windows") {
|
|
|
|
agent {
|
|
|
|
label 'windows'
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
|
|
|
|
2024-08-31 00:12:30 -07:00
|
|
|
bat 'compile.bat'
|
2024-08-30 23:52:43 -07:00
|
|
|
|
2024-08-31 00:22:18 -07:00
|
|
|
archiveArtifacts artifacts: "cpp\\build\\Debug\\vsleep-cpp.exe", fingerprint: true
|
|
|
|
archiveArtifacts artifacts: "cpp\\build\\Debug\\pause-cpp.exe", fingerprint: true
|
2024-08-30 23:52:43 -07:00
|
|
|
|
|
|
|
archiveArtifacts artifacts: "dart\\out\\*.exe", fingerprint: true
|
2024-08-31 00:06:30 -07:00
|
|
|
|
2024-08-30 21:07:26 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
2024-08-30 21:28:26 -07:00
|
|
|
deleteDir()
|
2024-08-30 21:07:26 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-08-30 20:37:25 -07:00
|
|
|
}
|
2024-10-05 19:23:11 -07:00
|
|
|
}
|