From 5c89f40c7085a1b82d6014ac75555ea2f6874048 Mon Sep 17 00:00:00 2001 From: Adam Wojdyla Date: Sat, 2 Apr 2022 22:33:16 +0200 Subject: [PATCH] r8 --- Jenkinsfile-stats | 39 +++++++++------------------------------ 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/Jenkinsfile-stats b/Jenkinsfile-stats index 1bf1bd7..46011c5 100644 --- a/Jenkinsfile-stats +++ b/Jenkinsfile-stats @@ -1,38 +1,17 @@ pipeline { - parameters { - string( - defaultValue: 'heatedboss2', - description: 'Kaggle username', - name: 'KAGGLE_USERNAME', - trim: false - ) - password( - defaultValue: '', - description: 'Kaggle token', - name: 'KAGGLE_KEY' - ) - string( - defaultValue: '117928', - description: 'Cutoff', - name: 'CUTOFF', - trim: false - ) - } - agent { - dockerfile{ - additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY" -t s444507_create_dataset_image' - } + agent { + docker { image 's444507_create_dataset_image:latest' } } stages { - stage('Prepare dataset') { + stage('Get arifacts') { steps { - sh 'python3 ./script-stats.py' + copyArtifacts fingerprintArtifacts: true, projectName: 's444507_create_dataset_image', selector: lastSuccessful() + } + } + stage('Show stats') { + steps { + sh "./stats-docker.sh" } } } - post { - success { - archiveArtifacts artifacts: 'Car_Prices_Poland_Kaggle_*', followSymlinks: false - } - } } \ No newline at end of file