Jenkinsfile edited online with Bitbucket

testing python 3.9
daily
PATRYK GUDALEWICZ (ext.) 2023-07-17 08:09:39 +00:00
parent 8ec54d0e94
commit 527c05e1d8
1 changed files with 10 additions and 10 deletions

20
Jenkinsfile vendored
View File

@ -87,13 +87,13 @@ pipeline {
}
sh """
sudo add-apt-repository ppa:deadsnakes/ppa -y && \
sudo apt install python3.8 -y && \
sudo apt install python3.8-distutils -y && \
python3.8 --version
curl https://bootstrap.pypa.io/get-pip.py | python3.8
python3.8 -m pip --version
python3.8 -m pip install -r requirements.txt
python3.8 -m pip install git+https://${AUTH_USR}:${AUTH_PSW}@atc.bmwgroup.net/bitbucket/scm/opapm/keyrequestparser.git
sudo apt install python3.9 -y && \
sudo apt install python3.9-distutils -y && \
python3.9 --version
curl https://bootstrap.pypa.io/get-pip.py | python3.9
python3.9 -m pip --version
python3.9 -m pip install -r requirements.txt
python3.9 -m pip install git+https://${AUTH_USR}:${AUTH_PSW}@atc.bmwgroup.net/bitbucket/scm/opapm/keyrequestparser.git
"""
}
}
@ -148,13 +148,13 @@ pipeline {
}
echo "${SCRIPT_PARAMETER}"
sh "python3.8 createReport.py ${SCRIPT_PARAMETER}"
sh "python3.8 summary.py"
sh "python3.9 createReport.py ${SCRIPT_PARAMETER}"
sh "python3.9 summary.py"
summary = readFile('summary.txt').trim()
if (KPI_EXTENSION=='true') {
echo "Executing KPI Extension"
sh "python3.8 kpi_extension.py"
sh "python3.9 kpi_extension.py"
}
}