changed jenkinsfile

This commit is contained in:
piotr6789 2021-06-11 19:19:31 +02:00
parent 75928523db
commit ef6cc1ee94

9
dvc/Jenkinsfile vendored
View File

@ -12,12 +12,13 @@ pipeline {
stages {
stage('checkout: Check out from version control') {
steps {
git 'https://git.wmi.amu.edu.pl/s434700/ium_s440058.git'
git 'https://git.wmi.amu.edu.pl/s440058/ium_s440058.git'
}
}
stage("DVC"){
stage('DVC') {
steps {
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
sh 'ssh ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl -i $IUM_SFTP_KEY'
copyArtifacts fingerprintArtifacts: true, projectName: 's440058-create-dataset', selector: buildParameter('WHICH_BUILD')
sh "dvc init -f"
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"
@ -26,6 +27,8 @@ pipeline {
}
}
}
}
post {
success {
build job: 's440058-dvc'