changed jenkinsfile
This commit is contained in:
parent
75928523db
commit
ef6cc1ee94
37
dvc/Jenkinsfile
vendored
37
dvc/Jenkinsfile
vendored
@ -1,34 +1,37 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
dockerfile true
|
dockerfile true
|
||||||
}
|
}
|
||||||
parameters{
|
parameters{
|
||||||
buildSelector(
|
buildSelector(
|
||||||
defaultSelector: lastSuccessful(),
|
defaultSelector: lastSuccessful(),
|
||||||
description: 'Which build to use for copying artifacts',
|
description: 'Which build to use for copying artifacts',
|
||||||
name: 'WHICH_BUILD'
|
name: 'WHICH_BUILD'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('checkout: Check out from version control') {
|
stage('checkout: Check out from version control') {
|
||||||
steps {
|
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') {
|
||||||
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
steps {
|
||||||
sh 'ssh ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl -i $IUM_SFTP_KEY'
|
withCredentials([sshUserPrivateKey(credentialsId: '48ac7004-216e-4260-abba-1fe5db753e18', keyFileVariable: 'IUM_SFTP_KEY')]) {
|
||||||
sh "dvc init -f"
|
copyArtifacts fingerprintArtifacts: true, projectName: 's440058-create-dataset', selector: buildParameter('WHICH_BUILD')
|
||||||
sh "dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp"
|
sh "dvc init -f"
|
||||||
sh "dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY"
|
sh "dvc remote add -d ium_ssh_remote ssh://ium-sftp@tzietkiewicz.vm.wmi.amu.edu.pl/ium-sftp"
|
||||||
sh "dvc pull"
|
sh "dvc remote modify --local ium_ssh_remote keyfile $IUM_SFTP_KEY"
|
||||||
sh "dvc reproduce"
|
sh "dvc pull"
|
||||||
|
sh "dvc reproduce"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
build job: 's440058-dvc'
|
build job: 's440058-dvc'
|
||||||
mail body: 'SUCCESS TRAINING', subject: 's440058', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
mail body: 'SUCCESS TRAINING', subject: 's440058', to: '26ab8f35.uam.onmicrosoft.com@emea.teams.ms'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user