From: Wesley Hirsch Date: Mon, 24 Apr 2017 21:37:53 +0000 (-0400) Subject: New process for uploading built debs to a repo X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F1672%2F3;p=osm%2FSO.git New process for uploading built debs to a repo Upload them to a repo mirror, then run a script to process them. Change-Id: Ie165d78a3bdfe5edade6f17ca0b2289b87514c3d Signed-off-by: Wesley Hirsch --- diff --git a/Jenkinsfile b/Jenkinsfile index 245308cb..684a780d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,17 +13,19 @@ pipeline { } } 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" } } }