ium_478841/jenkins/docker.Jenkinsfile
2022-04-29 12:56:30 +02:00

19 lines
611 B
Plaintext

node {
checkout scm
stage('Load Docker image & data') {
def dataImage = docker.build('s478841-image', "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
dataImage.inside('--name kaggload -v $WORKSPACE:/data -u root') {
// sh 'chmod u+x ./scripts/data_stats.sh'
// sh './scripts/data_stats.sh'
sh 'cp /app/data/* /data/data'
sh 'echo Data loaded'
}
}
stage('Archive arifacts') {
archiveArtifacts artifacts: '*data/avocado.data*', onlyIfSuccessful: true
}
}