This commit is contained in:
Jakub Zaręba 2023-05-24 18:49:38 +02:00
parent b0f5cec95c
commit 935c682d0f

View File

@ -36,11 +36,34 @@ pipeline {
}
}
stage('Install OpenSSL Locally') {
steps {
sh '''
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar -zxf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k
./config --prefix=$HOME/local/openssl --openssldir=$HOME/local/openssl
make
make install
'''
}
}
stage('Install Python Dependencies') {
steps {
sh '''
export PATH=$HOME/local/openssl/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/openssl/lib
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --user
python3 -m pip install --user \'dvc[ssh]\'
'''
}
}
stage('Update OpenSSL and Cryptography') {
steps {
sh '''
apt-get update
apt-get install openssl
python3 -m pip uninstall -y cryptography
python3 -m pip install cryptography
'''