ci integration

This commit is contained in:
Siwat Sirichai 2023-12-07 15:43:11 +07:00
parent ed85d07148
commit 8ca7c5407d
2 changed files with 31 additions and 4 deletions

19
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,19 @@
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'export PLATFORMIO_PATH=/root/.platformio/penv/bin/platformio'
sh 'python gen_release.py'
}
}
stage('Publish') {
steps {
sh 'mkdir -p artifacts'
sh 'cp -r release/ artifacts/'
archiveArtifacts artifacts: 'artifacts/**/*', fingerprint: true
}
}
}
}