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 '''