iot-firmware/Jenkinsfile

20 lines
483 B
Groovy

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
}
}
}
}