diff --git a/theforeman.org/pipelines/lib/foreman.groovy b/theforeman.org/pipelines/lib/foreman.groovy index 588f8059..56c597f1 100644 --- a/theforeman.org/pipelines/lib/foreman.groovy +++ b/theforeman.org/pipelines/lib/foreman.groovy @@ -69,11 +69,17 @@ production: } def filter_package_json(ruby, gemset = '') { - sh "python script/filter-package-json.py" + if (env.NODE_LABELS.contains('el8')) { + python = 'python3.11' + } else { + python = 'python' + } + + sh "${python} script/filter-package-json.py" withRVM(["bundle exec ruby script/plugin_webpack_directories.rb > plugin_webpack.json"], ruby, gemset) def plugin_webpack = readJSON file: 'plugin_webpack.json' plugin_webpack['plugins'].each { plugin, config -> - sh "python script/filter-package-json.py --package-json ${config['root']}/package.json" + sh "${python} script/filter-package-json.py --package-json ${config['root']}/package.json" } }