From 9330fbbd1ffb74893ea66f976604625ec225b15b Mon Sep 17 00:00:00 2001 From: MatOgr Date: Sun, 3 Apr 2022 21:35:05 +0200 Subject: [PATCH] Jnkns stage add --- jenkins/Jenkinsfile_docker | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/jenkins/Jenkinsfile_docker b/jenkins/Jenkinsfile_docker index a6354a7..dbb59f6 100644 --- a/jenkins/Jenkinsfile_docker +++ b/jenkins/Jenkinsfile_docker @@ -29,12 +29,14 @@ node { checkout scm - def dataImage = docker.build('s478841-image', "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .") + 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('-v $WORKSPACE:/output -u root') { - // sh 'chmod u+x ./scripts/data_stats.sh' - // sh './scripts/data_stats.sh' - sh 'echo Data loaded' + dataImage.inside('-v $WORKSPACE:/output -u root') { + // sh 'chmod u+x ./scripts/data_stats.sh' + // sh './scripts/data_stats.sh' + sh 'echo Data loaded' + } } stage('Archive arifacts') {