33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
pipeline {
|
|
agent {
|
|
dockerfile {
|
|
dir 'lab10'
|
|
args '-v /dvcstore'
|
|
}
|
|
}
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
echo 'Cloning and switching to repo'
|
|
/* sh 'git clone https://git.wmi.amu.edu.pl/s449288/ium_s449288.git' - już raz wykonane*/
|
|
sh 'ls -lh'
|
|
sh 'cd ium_s449288'
|
|
echo 'In ium_s449288 now'
|
|
echo 'Creating dvc remote'
|
|
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
|
|
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl'
|
|
sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_PASS'
|
|
echo 'Remote created'
|
|
sh 'dvc remote modify --local ium_ssh_remote user 449288'
|
|
echo 'Pulling from dvc'
|
|
sh 'dvc pull'
|
|
echo 'Files pulled'
|
|
echo 'Running pipeline'
|
|
sh 'dvc repro'
|
|
echo 'Finished'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|