Dodanie 'Jenkinsfile_dvc'
This commit is contained in:
parent
5171b8f401
commit
71b39a1db1
38
Jenkinsfile_dvc
Normal file
38
Jenkinsfile_dvc
Normal file
@ -0,0 +1,38 @@
|
||||
pipeline {
|
||||
agent {
|
||||
docker { image 'korneliag/ium478815:1.0' }
|
||||
}
|
||||
}
|
||||
parameters {
|
||||
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 {
|
||||
stage("dvc"){
|
||||
steps {
|
||||
withCredentials([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 remote list'
|
||||
sh 'cat .dvc/config'
|
||||
sh 'cat .dvc/config.local'
|
||||
sh 'dvc pull'
|
||||
sh 'dvc repro'
|
||||
sh 'ls -al'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user