python3.8 and pip fixed
parent
d9dac6b736
commit
5f8e7084f8
|
|
@ -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 && \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue