File tree Expand file tree Collapse file tree 1 file changed +1
-18
lines changed
Expand file tree Collapse file tree 1 file changed +1
-18
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments