lab10
This commit is contained in:
parent
4d51c168d7
commit
3963a270f8
@ -7,11 +7,22 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Stage 1') {
|
stage('Stage 1') {
|
||||||
steps {
|
steps {
|
||||||
|
echo 'Checking out...'
|
||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'f695fe86-8cca-47f7-a546-d3bfd1059fd4', url: 'https://git.wmi.amu.edu.pl/s449288/ium_s449288.git']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 'f695fe86-8cca-47f7-a546-d3bfd1059fd4', url: 'https://git.wmi.amu.edu.pl/s449288/ium_s449288.git']]])
|
||||||
|
echo 'Checked out'
|
||||||
|
/* sh 'git clone https://git.wmi.amu.edu.pl/s449288/ium_s449288.git' - wykonane raz */
|
||||||
|
'Changing into dvc repo and updating'
|
||||||
|
sh 'cd ium_s449288'
|
||||||
|
sh 'git pull origin master'
|
||||||
|
echo 'In ium_s449288 now'
|
||||||
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
||||||
|
echo 'Pulling from DVC'
|
||||||
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
sh 'dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY'
|
||||||
sh 'dvc pull'
|
sh 'dvc pull'
|
||||||
|
sh 'Pulled'
|
||||||
|
sh 'Running pipeline'
|
||||||
sh 'dvc repro'
|
sh 'dvc repro'
|
||||||
|
sh 'Pipeline finished'
|
||||||
echo 'Files resulting from pipeline:'
|
echo 'Files resulting from pipeline:'
|
||||||
sh 'ls -lh lego_reg_model'
|
sh 'ls -lh lego_reg_model'
|
||||||
sh 'head lego_reg_results.csv'
|
sh 'head lego_reg_results.csv'
|
||||||
|
Loading…
Reference in New Issue
Block a user