Update Jenkinsfile
This commit is contained in:
parent
1988bc953e
commit
bc85bcf601
|
@ -2,22 +2,18 @@ pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Clone') {
|
|
||||||
steps {
|
|
||||||
git branch: 'main', url: 'https://git.siwatsystem.com/ise-senior-iot/iot-firmware.git'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
|
git branch: 'main', url: 'https://git.siwatsystem.com/ise-senior-iot/iot-firmware.git'
|
||||||
sh 'export PLATFORMIO_PATH=/root/.platformio/penv/bin/platformio'
|
sh 'export PLATFORMIO_PATH=/root/.platformio/penv/bin/platformio'
|
||||||
sh '/usr/bin/python3 gen_release.py'
|
sh '/usr/bin/python3 gen_release.py'
|
||||||
|
stash includes: 'release/**/*', name: 'release_binaries'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Publish') {
|
stage('Publish') {
|
||||||
steps {
|
steps {
|
||||||
sh 'mkdir -p artifacts'
|
unstash 'release_binaries'
|
||||||
sh 'cp -r release/ artifacts/'
|
archiveArtifacts artifacts: 'release/**/*', fingerprint: true
|
||||||
archiveArtifacts artifacts: 'artifacts/**/*', fingerprint: true
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue