ium_434749/dvc.Jenkinsfile

31 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-06-06 18:56:41 +02:00
pipeline {
agent {
dockerfile true
}
parameters {
string(name: 'batch_size', defaultValue: '512', description: 'size of batch')
string(name: 'learning_rate', defaultValue: '0.01', description: 'Learning rate')
string(name: 'epochs', defaultValue: '14', description: 'epochs')
}
stages {
stage('Build') {
steps {
// cleanWs()
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
// copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful()
sh 'dvc remote add -f -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp'
sh 'dvc remote list'
sh 'dvc remote modify --local ium_ssh_remote password IUM@2021'
sh 'dvc pull'
sh "dvc reproduce"
}
post {
success {
archiveArtifacts 'cnn.pth,results.txt'
}
}
}
}
}