ium_478815/Jenkinsfile_dvc

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2022-06-05 22:09:21 +02:00
pipeline {
2022-06-05 22:09:58 +02:00
agent {
2022-06-05 22:09:21 +02:00
docker { image 'korneliag/ium478815:1.0' }
}
2022-06-05 22:15:52 +02:00
2022-06-05 22:09:58 +02:00
parameters {
2022-06-05 22:09:21 +02:00
string(
defaultValue: 'kgirejko',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '51854c15661583860a60db232a7026f0',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
}
stages {
2022-06-05 22:15:52 +02:00
stage('one'){
2022-06-05 22:18:39 +02:00
steps{
2022-06-05 22:21:26 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's478815', url: 'https://git.wmi.amu.edu.pl/s478815/ium_478815.git']]])
2022-06-05 22:15:52 +02:00
}
}
2022-06-05 22:09:21 +02:00
stage("dvc"){
steps {
2022-06-05 22:30:13 +02:00
withCredentials(
2022-06-05 22:46:14 +02:00
[sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: '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 repro'
}
2022-06-05 22:09:21 +02:00
}
}
}
2022-06-05 22:14:19 +02:00
}