iot-firmware/Jenkinsfile

21 lines
629 B
Plaintext
Raw Permalink Normal View History

2023-12-07 08:43:11 +00:00
pipeline {
agent any
stages {
stage('Build') {
steps {
2023-12-07 09:44:03 +00:00
git branch: 'lcd_upload', url: 'https://git.siwatsystem.com/ise-senior-iot/iot-firmware.git'
2023-12-07 08:43:11 +00:00
sh 'export PLATFORMIO_PATH=/root/.platformio/penv/bin/platformio'
2023-12-07 08:47:42 +00:00
sh '/usr/bin/python3 gen_release.py'
2023-12-07 09:02:28 +00:00
stash includes: 'release/**/*', name: 'release_binaries'
2023-12-07 08:43:11 +00:00
}
}
stage('Publish') {
steps {
2023-12-07 09:02:28 +00:00
unstash 'release_binaries'
archiveArtifacts artifacts: 'release/**/*', fingerprint: true
2023-12-07 08:43:11 +00:00
}
}
}
}