From ded11357f5e2db91e8be5283288ce8b17ea3299a Mon Sep 17 00:00:00 2001 From: DanyLE Date: Fri, 18 Aug 2023 11:48:31 +0200 Subject: [PATCH] add publish stage to Jenkinfile --- Jenkinsfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 963bc7d..c88d2d0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {