python3.8 and pip fixed

daily
QXZ3NHY 2023-06-16 10:21:29 +02:00
parent d9dac6b736
commit 5f8e7084f8
1 changed files with 1 additions and 9 deletions

10
Jenkinsfile vendored
View File

@ -80,7 +80,7 @@ pipeline {
steps { steps {
dir("/opt/workspace/qm_report/") { dir("/opt/workspace/qm_report/") {
retry(3) { retry(3) {
sleep(30*installRetryCount) sleep(60*installRetryCount)
script { script {
installRetryCount = installRetryCount+1 installRetryCount = installRetryCount+1
} }
@ -88,14 +88,6 @@ pipeline {
// sh """ // sh """
// pip3 install -r requirements.txt // pip3 install -r requirements.txt
// """ // """
// cp ~/.bashrc ~/.bashrc_bak
// echo 'if [ -d "$HOME/.local/bin" ] ; then' >> ~/.bashrc
// echo ' PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
// echo 'fi' >> ~/.bashrc
// pip3 --version
// cat ~/.bashrc
// python -m pip install pip
sh """ sh """
sudo add-apt-repository ppa:deadsnakes/ppa -y && \ sudo add-apt-repository ppa:deadsnakes/ppa -y && \
sudo apt install python3.8 -y && \ sudo apt install python3.8 -y && \