From 12a7a498ce70c04d78fccb6e53496f946c54576b Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 22 Sep 2019 20:16:08 +0200 Subject: Jenkins: fix dpkg architecture determination --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index b937d22e6..386058a79 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -131,8 +131,8 @@ pipeline { files = findFiles(glob: '*.deb') files.each { PACKAGE -> def RELEASE = getGitBranchName() - def ARCH = sh(returnStdout: true, script: "dpkg-deb -f ${pkg} Architecture").trim() - def SUBSTRING = sh(returnStdout: true, script: "dpkg-deb -f ${pkg} Package").trim() + def ARCH = sh(returnStdout: true, script: "dpkg-deb -f ${PACKAGE} Architecture").trim() + def SUBSTRING = sh(returnStdout: true, script: "dpkg-deb -f ${PACKAGE} Package").trim() def SSH_DIR = '~/VyOS/' + RELEASE + '/' + ARCH // No need to explicitly check the return code. The pipeline -- cgit v1.2.3