Dockerfile

This commit is contained in:
Mateusz 2024-04-01 14:39:59 +02:00
parent f8e2639078
commit 7d743709d2

3
Jenkinsfile vendored
View File

@ -21,6 +21,9 @@ pipeline {
stage('Run create-dataset script') {
steps {
withEnv (["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
sh 'mkdir /.kaggle'
sh 'echo "{\"username\":\"$KAGGLE_USERNAME\",\"key\":\"$KAGGLE_KEY\"}" > /.kaggle/kaggle.json'
sh 'chmod 600 /.kaggle/kaggle.json'
sh 'chmod +x create-dataset.py'
sh 'python3 ./create-dataset.py'
}