diff --git a/dvc.Jenkinsfile b/dvc.Jenkinsfile new file mode 100644 index 0000000..0a406d6 --- /dev/null +++ b/dvc.Jenkinsfile @@ -0,0 +1,32 @@ +pipeline { + agent { + dockerfile true + } + parameters { + password( + defaultValue: '', + description: 'DVC pass', + name: 'IUM_SFTP_KEY' + ) + } + stages { + stage('checkout: Check out from version control') { + steps { + checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]]) + } + } + stage('reproduce') { + steps { + withCredentials( + [sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY', passphraseVariable: '', usernameVariable: '')]) { + sh 'dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp' + sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY' + sh 'dvc pull' + sh 'dvc repro' + sh ll + } + } + } + } + } +} diff --git a/dvc.lock b/dvc.lock index 48b3ca3..86888f2 100644 --- a/dvc.lock +++ b/dvc.lock @@ -1,25 +1,25 @@ schema: '2.0' stages: train: - cmd: python3 deepl.py 10 + cmd: python3 deepl.py 50 deps: - path: real-or-fake-fake-jobposting-prediction.zip md5: 720b87177496c52f028ec184935f8031 size: 16868281 outs: - path: model - md5: a5a5e44c792a7b5c7b3b841677593df2 + md5: fcb422dbe338d861bd905e19769314a4 size: 4012127 evaluate: cmd: python3 evaluation.py deps: - path: model - md5: a5a5e44c792a7b5c7b3b841677593df2 + md5: fcb422dbe338d861bd905e19769314a4 size: 4012127 outs: - path: metrics.png - md5: 1144a6e9e28ae600f30835f7fb9a3314 - size: 9952 + md5: 7652f6d9944d3a19e476f3b1727789ea + size: 12541 - path: metrics.txt - md5: f9c1fd4d06b750e45fd72c32e022ec64 - size: 73 + md5: 3d047ff442a5f3299e283eccd4b66fb5 + size: 118