From 5f8e7084f86d6e557d6c96a80acbb191a1e89e4b Mon Sep 17 00:00:00 2001 From: QXZ3NHY Date: Fri, 16 Jun 2023 10:21:29 +0200 Subject: [PATCH] python3.8 and pip fixed --- Jenkinsfile | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f738ae2..ffb9336 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -80,7 +80,7 @@ pipeline { steps { dir("/opt/workspace/qm_report/") { retry(3) { - sleep(30*installRetryCount) + sleep(60*installRetryCount) script { installRetryCount = installRetryCount+1 } @@ -88,14 +88,6 @@ pipeline { // sh """ // 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 """ sudo add-apt-repository ppa:deadsnakes/ppa -y && \ sudo apt install python3.8 -y && \