kgg-dec/Jenkinsfile

45 lines
825 B
Plaintext
Raw Normal View History

2024-10-17 00:50:14 +00:00
properties([
buildDiscarder(
logRotator(
artifactDaysToKeepStr: '',
artifactNumToKeepStr: '',
daysToKeepStr: '',
numToKeepStr: '3'
)
)
])
pipeline {
options { timestamps () }
agent {
label 'vs2022 && windows'
}
stages {
stage('Build') {
steps {
bat '''
cmake --preset vs -DCMAKE_BUILD_TYPE=Release
cmake --build --preset vs-release --config Release
copy /y README.MD .\\build\\vs2022\\Release\\
2024-11-25 21:22:45 +00:00
copy /y LICENSE .\\build\\vs2022\\Release\\
2024-10-17 00:50:14 +00:00
'''
}
}
stage('Archive') {
steps {
bat '''
7za a -tzip -mtm- build/kgg-dec.zip .\\build\\vs2022\\Release\\*
'''
}
post {
success {
archiveArtifacts 'build/*.zip'
}
}
}
}
}