From 01ff677baa2e26852b462513ce8fedddbf4c0296 Mon Sep 17 00:00:00 2001 From: Wojciech Lidwin Date: Tue, 4 Apr 2023 13:44:55 +0200 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cd8b354..3253941 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,16 +25,22 @@ node { 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('Shell Script') { + stage('Dockerfile'){ + def testImage = docker.image('1') + testImage.inside{ + stage('Shell Script') { // Run the maven build withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) { sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - sh 'chmod u+x ./download_dataset.sh' - sh './download_dataset.sh' + sh 'kaggle datasets download -d sohier/crime-in-baltimore' + sh 'unzip crime-in-baltimore.zip' + sh 'python3 data.py' archiveArtifacts artifacts: 'BPD_Part_1_Victim_Based_Crime_Data.csv,baltimore_train.csv, baltimore_test.csv, baltimore_dev.csv' } + } + } + } } \ No newline at end of file