From 5089486b50de4a29cde198736b7563d1e787e662 Mon Sep 17 00:00:00 2001 From: Wesley Hirsch Date: Mon, 24 Apr 2017 17:37:53 -0400 Subject: [PATCH 1/1] 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 --- Jenkinsfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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" } } } -- 2.25.1