SimpleHelperTools/Jenkinsfile
2024-08-31 00:12:30 -07:00

59 lines
No EOL
1.3 KiB
Groovy

pipeline {
agent any
options {
buildDiscarder(
logRotator(
numToKeepStr: '3'
)
)
}
stages {
stage("Build on Linux") {
agent {
label 'linux'
}
steps {
sh '''
#!/bin/bash
./compile.sh
'''
}
post {
always {
archiveArtifacts artifacts: "dart/out/*", fingerprint: true
archiveArtifacts artifacts: "cpp/build/vsleep", fingerprint: true
archiveArtifacts artifacts: "cpp/build/pause", fingerprint: true
deleteDir()
}
}
}
stage("Build on Windows") {
agent {
label 'windows'
}
steps {
bat 'compile.bat'
archiveArtifacts artifacts: "cpp\\build\\Debug\\vsleep.exe", fingerprint: true
archiveArtifacts artifacts: "cpp\\build\\Debug\\pause.exe", fingerprint: true
archiveArtifacts artifacts: "dart\\out\\*.exe", fingerprint: true
}
post {
always {
deleteDir()
}
}
}
}
}