New process for uploading built debs to a repo 72/1672/3
authorWesley Hirsch <wesley.hirsch@riftio.com>
Mon, 24 Apr 2017 21:37:53 +0000 (17:37 -0400)
committerhirschw <wesley.hirsch@riftio.com>
Tue, 25 Apr 2017 18:48:03 +0000 (19:48 +0100)
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>
Jenkinsfile

index 245308c..684a780 100644 (file)
@@ -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"
                        }
                }
        }