Update Jenkinsfile to create a snapshot before publishing to the repository

This commit is contained in:
2026-07-16 11:20:01 +02:00
parent 090ffb3f50
commit 58920d25fe
Vendored
+3 -2
View File
@@ -58,9 +58,10 @@ pipeline {
sshagent(['srv01_elordenador_org']) { sshagent(['srv01_elordenador_org']) {
sh ''' sh '''
ssh ${APTLY_HOST} << EOF 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 repo add ${APTLY_REPO} /tmp/*.deb
aptly publish switch ${APTLY_REPO} aptly publish switch ${APTLY_REPO} $SNAPSHOT
EOF EOF
''' '''