SimpleHelperTools/Jenkinsfile

59 lines
1.3 KiB
Text
Raw Normal View History

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 {
label 'linux'
}
steps {
sh '''
#!/bin/bash
./compile.sh
2024-08-30 20:37:25 -07:00
'''
}
post {
always {
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()
}
}
}
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
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
2024-08-30 21:07:26 -07:00
}
post {
always {
deleteDir()
2024-08-30 21:07:26 -07:00
}
}
}
2024-08-30 20:37:25 -07:00
}
}