Fix function
parent
8b75e1371f
commit
522b538b7c
|
@ -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}/
|
||||
'''
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue