add publish stage to Jenkinfile
Some checks failed
gitea-sync/meta-rpi-diya-build/pipeline/head There was a failure building this commit

This commit is contained in:
DanyLE 2023-08-18 11:48:31 +02:00
parent 7ab0e69196
commit ded11357f5

17
Jenkinsfile vendored
View File

@ -54,6 +54,23 @@ pipeline{
'''
}
}
stage("Publish") {
steps{
sh'''#!/bin/bash
export MACHINE="raspberrypi0-2w-64"
# copy rootfs
export PUBLIC="/home/dany/public/diya-release"
cp -L $(ls build/tmp/deploy/images/$MACHINE/core-image-base-$MACHINE-*rootfs.tar.bz2) $PUBLIC/rootfs-$MACHINE.tar.bz2
# copy kernels
cp -L build/tmp/deploy/images/$MACHINE/Image-$MACHINE.bin $PUBLIC/
cp -L build/tmp/deploy/images/$MACHINE/recovery-$MACHINE.cpio.gz $PUBLIC/
# copy image
cp $(ls build/tmp/deploy/images/$MACHINE/core-image-base-$MACHINE-*rootfs.wic.bz2) $PUBLIC/diya.img.bz2
# copy sdk
cp -L build/tmp/deploy/sdk/poky-glibc-x86_64-core-image-base-cortexa53-raspberrypi0-2w-64-toolchain-4.2.1.sh $PUBLIC/
'''
}
}
stage('Archive') {
steps {
script {