From 979b1293a94267edda9b0b76c14110bae04883be Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 9 Jul 2024 10:45:22 +0200 Subject: [PATCH] ci: refs #7643 Reprepro includedeb fix --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index bc2849e1..c682025a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,6 +50,10 @@ pipeline { branch 'test' } } + environment { + REPREPRO_DIR = '/var/lib/reprepro' + REPO_DIR = "$REPREPRO_DIR/repo" + } steps { unstash 'debuildOutput' script { @@ -72,11 +76,11 @@ pipeline { sshPut([ remote: remote, from: "output/$debFile", - into: '/var/lib/reprepro/repo/incoming' + into: "$REPO_DIR/incoming" ]) sshCommand([ remote: remote, - command: "reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /var/lib/reprepro/repo/incoming/$debFile" + command: "reprepro -b $REPO_DIR --gnupghome $REPREPRO_DIR/.gnupg includedeb bookworm $REPO_DIR/incoming/$debFile" ]) } }