diff --git a/JenkinsfileDVC b/JenkinsfileDVC index 40848d9..1df6bf3 100644 --- a/JenkinsfileDVC +++ b/JenkinsfileDVC @@ -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 '''