Fix function

main
Nicolas Arenas 2025-03-27 08:40:19 +01:00
parent 8b75e1371f
commit 522b538b7c
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
def call(String buildDir, String artifactsDir, String remoteHost, String remotePath) {
dir(buildDir) {
sh '''
sh """
dpkg-buildpackage -us -uc
mkdir -p ${artifactsDir} && mv ../*.deb ../*.changes ../*.buildinfo ${artifactsDir}/
ssh aptly@${remoteHost} "rm -rf ${remotePath}/* && mkdir -p ${remotePath}"
scp -r ${artifactsDir}/* aptly@${remoteHost}:${remotePath}/
'''
"""
}
}