Skip to content

Commit 3de927a

Browse files
authored
Update Jenkinsfile
1 parent f3dbf2a commit 3de927a

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

jenkins/Jenkinsfile

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,7 @@ pipeline {
1414

1515
stage('Setup Python') {
1616
steps {
17-
sh '''#!/bin/bash
18-
if command -v python3 &> /dev/null; then
19-
echo "Python3 is already installed:"
20-
python3 --version
21-
else
22-
echo "Python3 not found. Installing Python3..."
23-
apt update
24-
apt install -y python3
25-
echo "Python3 installation completed:"
26-
python3 --version
27-
fi
28-
29-
# Check if pip is available, if not install it
30-
if ! python3 -m pip --version &> /dev/null; then
31-
echo "pip not found. Installing pip..."
32-
apt install -y python3-pip
33-
fi
34-
17+
sh '''#!/bin/bash
3518
# Upgrade pip, setuptools, and wheel
3619
echo "Upgrading pip, setuptools, and wheel..."
3720
python3 -m pip install --upgrade pip setuptools wheel packaging gitpython

0 commit comments

Comments
 (0)