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" ]) } }