2022-05-23 10:58:50 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
|
|
|
dir 'lab10'
|
|
|
|
args '-v /dvcstore'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('Stage 1') {
|
|
|
|
steps {
|
2022-05-29 17:42:42 +02:00
|
|
|
echo 'Cloning and switching to repo'
|
2022-05-29 18:06:50 +02:00
|
|
|
/* sh 'git clone https://git.wmi.amu.edu.pl/s449288/ium_s449288.git' - już raz wykonane*/
|
2022-05-29 17:31:32 +02:00
|
|
|
sh 'ls -lh'
|
2022-05-29 17:17:36 +02:00
|
|
|
sh 'cd ium_s449288'
|
|
|
|
echo 'In ium_s449288 now'
|
|
|
|
echo 'Creating dvc remote'
|
2022-05-30 11:40:42 +02:00
|
|
|
withCredentials(
|
|
|
|
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) {
|
|
|
|
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
2022-05-30 12:03:05 +02:00
|
|
|
sh 'dvc pull'}
|
2022-05-29 17:17:36 +02:00
|
|
|
}
|
2022-05-23 10:58:50 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|