Upload them to a repo mirror, then run a script to process them.
Change-Id: Ie165d78a3bdfe5edade6f17ca0b2289b87514c3d
Signed-off-by: Wesley Hirsch <wesley.hirsch@riftio.com>
}
}
stage("Repo Component") {
- agent any
+ agent {
+ docker {
+ image 'debian:stable'
+ args '--net=deb-repo-master'
+ }
+ }
steps {
unstash "deb-files"
sh '''
- mkdir -p pool/SO
- mv .build/*.deb pool/SO/
- mkdir -p dists/$RELEASE/unstable/SO/binary-amd64/
- apt-ftparchive packages pool/SO > dists/$RELEASE/unstable/SO/binary-amd64/Packages
- gzip -9fk dists/$RELEASE/unstable/SO/binary-amd64/Packages
+ apt-get update && apt-get -y install rsync
+ rsync -Pr .build/*.deb deb-repo-master:/var/lib/deb-repo/ReleaseONE/incoming/unstable/SO/
+ ssh deb-repo-master 'process-incoming'
'''
- archiveArtifacts artifacts: "dists/**,pool/SO/*.deb"
}
}
}