21 lines
622 B
Groovy
21 lines
622 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
git branch: 'ise', url: 'https://git.siwatsystem.com/ise-senior-iot/iot-firmware.git'
|
|
sh 'export PLATFORMIO_PATH=/root/.platformio/penv/bin/platformio'
|
|
sh '/usr/bin/python3 gen_release.py'
|
|
stash includes: 'release/**/*', name: 'release_binaries'
|
|
}
|
|
}
|
|
stage('Publish') {
|
|
steps {
|
|
unstash 'release_binaries'
|
|
archiveArtifacts artifacts: 'release/**/*', fingerprint: true
|
|
}
|
|
}
|
|
}
|
|
}
|