Skip to content

Commit 1f4e1ba

Browse files
Fix PMM-14125: Use specific OpenShift version and install jq dependency
- Install jq package required for channel version resolution - Switch to specific version 4.16.46 to avoid resolution failures - Add fallback installation of jq for Ubuntu/Debian systems This fixes the 'Unable to resolve OpenShift version' error
1 parent 81f255e commit 1f4e1ba

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

pmm/v3/pmm3-openshift-helm-tests.groovy

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,21 @@ pipeline {
264264
fi
265265
"""
266266

267+
// Install jq for version resolution (required by openshiftTools)
268+
sh """
269+
if ! command -v jq &> /dev/null; then
270+
echo "Installing jq for OpenShift version resolution..."
271+
sudo apt-get install -y jq || true
272+
fi
273+
"""
274+
267275
// Install OpenShift CLI tools and Helm using the shared library
268276
script {
269277
echo "Installing OpenShift CLI tools..."
278+
// Use a specific version to avoid channel resolution issues
279+
// Alternatively, use 'stable-4.16' if jq is installed
270280
openshiftTools.install([
271-
openshiftVersion: 'stable-4.16' // Using stable 4.16 channel
281+
openshiftVersion: '4.16.46' // Using latest available version
272282
])
273283

274284
echo "Installing Helm..."

0 commit comments

Comments
 (0)