jenkinsfile update
s444507-dvc/pipeline/head There was a failure building this commit Details
s444507-predict-s444356/pipeline/head This commit looks good Details
s444507-evaluation/pipeline/head This commit looks good Details
444507-training/pipeline/head This commit looks good Details

This commit is contained in:
Adam Wojdyla 2022-06-05 11:38:31 +02:00
parent 7d2c98dd64
commit ddf78ff1e6
1 changed files with 2 additions and 8 deletions

View File

@ -10,20 +10,14 @@ pipeline {
stages {
stage('DVC') {
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'S444507_cred', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]])
withCredentials(
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) {
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl'
[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 remote modify --local ium_ssh_remote password IUM@2021'
sh 'dvc pull'
sh 'dvc repro'
}
}
}
}
post {
success {
archiveArtifacts artifacts: 'prediction_results.csv, *.pkl', followSymlinks: false
}
}
}