Dockerfile

This commit is contained in:
Mateusz 2024-04-01 17:40:06 +02:00
parent 3cddbbfdb4
commit cd23bed57e

17
Jenkinsfile vendored
View File

@ -20,19 +20,16 @@ pipeline {
) )
} }
environment {
KAGGLE_USERNAME = "${params.KAGGLE_USERNAME}"
KAGGLE_KEY = "${params.KAGGLE_KEY}"
}
stages { stages {
stage('Run create-dataset script') { stage('Run create-dataset script') {
steps { steps {
sh 'kaggle datasets download -d mlg-ulb/creditcardfraud' withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'unzip creditcardfraud.zip' sh 'kaggle datasets download -d mlg-ulb/creditcardfraud'
sh 'rm creditcardfraud.zip' sh 'unzip creditcardfraud.zip'
sh 'chmod +x create-dataset.py' sh 'rm creditcardfraud.zip'
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME' sh 'chmod +x create-dataset.py'
sh 'python3 ./create-dataset.py $KAGGLE_USERNAME'
}
} }
} }
stage('Archive Artifacts') { stage('Archive Artifacts') {