ium_478815/Jenkinsfile_dvc

28 lines
909 B
Plaintext

pipeline {
agent {
docker { image 'korneliag/ium478815:1.0' }
}
stages {
stage('one'){
steps{
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's478815c', url: 'https://git.wmi.amu.edu.pl/s478815/ium_478815.git']]])
}
}
stage("DVC"){
steps {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) {
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl'
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
sh 'dvc push'
sh 'dvc pull'
sh 'dvc repro'
}
}
}
}
}