forked from espos/base-files
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']) {
|
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
|
||||||
'''
|
'''
|
||||||
|
|||||||
Reference in New Issue
Block a user