From 58920d25fe7aba7f50a9652244b797d2820e896e Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 16 Jul 2026 11:20:01 +0200 Subject: [PATCH] Update Jenkinsfile to create a snapshot before publishing to the repository --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cfddca3..1c46a4c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -58,9 +58,10 @@ pipeline { sshagent(['srv01_elordenador_org']) { sh ''' ssh ${APTLY_HOST} << EOF - + SNAPSHOT="espos-build-${BUILD_NUMBER}" + aptly snapshot create $SNAPSHOT from repo espos-unstable aptly repo add ${APTLY_REPO} /tmp/*.deb - aptly publish switch ${APTLY_REPO} + aptly publish switch ${APTLY_REPO} $SNAPSHOT EOF '''