jenkinsfile update
This commit is contained in:
parent
7d2c98dd64
commit
ddf78ff1e6
@ -10,20 +10,14 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('DVC') {
|
stage('DVC') {
|
||||||
steps {
|
steps {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'S444507_cred', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]])
|
||||||
withCredentials(
|
withCredentials(
|
||||||
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
|
[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 keyfile $IUM_SFTP_KEY'
|
||||||
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
|
|
||||||
sh 'dvc pull'
|
sh 'dvc pull'
|
||||||
sh 'dvc repro'
|
sh 'dvc repro'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
|
||||||
success {
|
|
||||||
archiveArtifacts artifacts: 'prediction_results.csv, *.pkl', followSymlinks: false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user