From 65118415cfa9f0d0cedae2c5693e07e4af02c83e Mon Sep 17 00:00:00 2001 From: Kiriti Gowda Date: Tue, 1 Apr 2025 05:42:12 -0700 Subject: [PATCH] Jenkins - Install built packages (#538) * Jenkins - Install built packages * Update common.groovy * Update common.groovy --- .jenkins/common.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.jenkins/common.groovy b/.jenkins/common.groovy index 6889073436..f30bab6889 100644 --- a/.jenkins/common.groovy +++ b/.jenkins/common.groovy @@ -102,6 +102,7 @@ def runPackageCommand(platform, project) { String packageType = '' String packageInfo = '' String packageDetail = '' + String packageInstall = '' String osType = '' String packageRunTime = '' @@ -109,6 +110,7 @@ def runPackageCommand(platform, project) { packageType = 'rpm' packageInfo = 'rpm -qlp' packageDetail = 'rpm -qi' + packageInstall = 'rpm -i' packageRunTime = 'rocdecode-*' if (platform.jenkinsLabel.contains('sles')) { @@ -126,6 +128,7 @@ def runPackageCommand(platform, project) { packageType = 'deb' packageInfo = 'dpkg -c' packageDetail = 'dpkg -I' + packageInstall = 'dpkg -i' packageRunTime = 'rocdecode_*' if (platform.jenkinsLabel.contains('ubuntu20')) { @@ -152,6 +155,9 @@ def runPackageCommand(platform, project) { ${packageInfo} package/${osType}-rocdecode-dev.${packageType} ${packageInfo} package/${osType}-rocdecode-test.${packageType} ${packageInfo} package/${osType}-rocdecode.${packageType} + sudo ${packageInstall} package/${osType}-rocdecode.${packageType} + sudo ${packageInstall} package/${osType}-rocdecode-dev.${packageType} + sudo ${packageInstall} package/${osType}-rocdecode-test.${packageType} """ platform.runCommand(this, command)