ium_s449288/lab10/Jenkinsfile_dvc

26 lines
848 B
Plaintext

pipeline {
agent {
dockerfile {
dir 'lab10'
args '-v /dvcstore'
}
}
stages {
stage('Stage 1') {
steps {
echo 'Cloning and switching to repo'
/* sh 'git clone https://git.wmi.amu.edu.pl/s449288/ium_s449288.git' - już raz wykonane*/
sh 'ls -lh'
sh 'cd ium_s449288'
echo 'In ium_s449288 now'
echo 'Creating dvc remote'
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'
sh 'dvc pull'
}
}
}
}
}