2022-06-05 09:34:51 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
docker { image 's444507_create_dataset_image' }
|
|
|
|
}
|
|
|
|
parameters {
|
|
|
|
buildSelector(defaultSelector: lastSuccessful(), description: 'Which build to use for copying artifacts.', name: 'BUILD_SELECTOR')
|
|
|
|
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
|
|
|
|
|
|
|
}
|
|
|
|
stages {
|
|
|
|
stage('DVC') {
|
|
|
|
steps {
|
2022-06-05 11:38:31 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'S444507_cred', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]])
|
2022-06-05 09:34:51 +02:00
|
|
|
withCredentials(
|
2022-06-05 11:38:31 +02:00
|
|
|
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: 'USER')]) {
|
2022-06-05 09:34:51 +02:00
|
|
|
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
|
|
|
sh 'dvc pull'
|
|
|
|
sh 'dvc repro'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|