Skip to content

Commit

Permalink
Use python3.11 on EL8 for package json filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Feb 21, 2024
1 parent 2491649 commit 8a5a5f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions theforeman.org/pipelines/lib/foreman.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 8a5a5f9

Please sign in to comment.