Jenkinsfile aktualisiert
All checks were successful
CI-Build/Kettenoeler/pipeline/head This commit looks good
All checks were successful
CI-Build/Kettenoeler/pipeline/head This commit looks good
This commit is contained in:
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -58,25 +58,13 @@ wifi_ap_password = DummyAP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('📦 Find & Archive Firmware') {
|
stage('📦 Archive Firmware & FS') {
|
||||||
steps {
|
steps {
|
||||||
dir('Software') {
|
dir('Software') {
|
||||||
script {
|
echo "🔍 Archiviere Artefakte (.fw.bin / .fs.gz)…"
|
||||||
echo "🔍 Suche nach Firmware (.fw.bin) und Filesystem (.fs.gz) Artefakten..."
|
archiveArtifacts artifacts: '.pio/build/**/*.fw.bin, .pio/build/**/*.fs.gz',
|
||||||
|
allowEmptyArchive: true,
|
||||||
def firmwareFiles = findFiles(glob: '.pio/build/**/*.fw.bin')
|
fingerprint: true
|
||||||
def fsFiles = findFiles(glob: '.pio/build/**/*.fs.gz')
|
|
||||||
|
|
||||||
if (firmwareFiles.length == 0 && fsFiles.length == 0) {
|
|
||||||
echo "⚠️ Keine passenden Artefakte (.fw.bin / .fs.gz) gefunden – nichts zu archivieren."
|
|
||||||
} else {
|
|
||||||
firmwareFiles.each { echo "📦 Firmware: ${it.path}" }
|
|
||||||
fsFiles.each { echo "📦 Filesystem: ${it.path}" }
|
|
||||||
|
|
||||||
def allArtifacts = (firmwareFiles + fsFiles).collect { it.path }
|
|
||||||
archiveArtifacts artifacts: allArtifacts.join(', ')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user