ium_487197/Jenkinsfile_dvc

24 lines
676 B
Plaintext
Raw Normal View History

2023-05-12 12:54:55 +02:00
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'){
2023-05-12 13:04:34 +02:00
def testImage = docker.image('s487197/ium:54')
2023-05-12 12:54:55 +02:00
testImage.inside{
2023-05-12 13:09:04 +02:00
withCredentials([string(credentialsId: 'ium-sftp-password', variable: 'IUM_SFTP_PASS')]) {
2023-05-12 13:25:04 +02:00
sh 'dvc remote modify --local ium_ssh_remote password $IUM_SFTP_KEY'
2023-05-12 13:09:04 +02:00
sh 'dvc pull'
}
2023-05-12 12:54:55 +02:00
}
}
}