dvc_jenkins
This commit is contained in:
parent
7dd2475f24
commit
d4411f2651
@ -16,6 +16,7 @@ RUN pip3 install argparse
|
||||
RUN pip3 install matplotlib
|
||||
RUN pip3 install sacred
|
||||
RUN pip3 install pymongo
|
||||
RUN pip3 install dvc
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
|
25
Jenkinsfile_dvc
Normal file
25
Jenkinsfile_dvc
Normal file
@ -0,0 +1,25 @@
|
||||
node {
|
||||
stage('Preparation') {
|
||||
properties([
|
||||
parameters([
|
||||
|
||||
])
|
||||
])
|
||||
}
|
||||
|
||||
stage('checkout: Check out from version control') {
|
||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
|
||||
}
|
||||
stage('Dockerfile'){
|
||||
def testImage = docker.image('s487197/ium:53')
|
||||
testImage.inside{
|
||||
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'}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user