Update Jenkinsfile to create a snapshot before publishing to the repository
This commit is contained in:
Vendored
+3
-2
@@ -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
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user