From a42dff677060b5a570c109fb7469896f11595ed6 Mon Sep 17 00:00:00 2001 From: MatOgr Date: Sun, 3 Apr 2022 21:48:57 +0200 Subject: [PATCH] Jnkns copy files test --- jenkins/Jenkinsfile_docker | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jenkins/Jenkinsfile_docker b/jenkins/Jenkinsfile_docker index d2fd48c..0804f64 100644 --- a/jenkins/Jenkinsfile_docker +++ b/jenkins/Jenkinsfile_docker @@ -30,13 +30,15 @@ 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} .") + def dataImage = docker.build('s478841-image', "--name kaggload_image --build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .") dataImage.inside('-v $WORKSPACE:/output -u root') { // sh 'chmod u+x ./scripts/data_stats.sh' // sh './scripts/data_stats.sh' sh 'echo Data loaded' } + sh 'mkdir data' + sh 'docker cp kaggload_image:/app/data/* data/' } stage('Archive arifacts') {