Dockerfile

This commit is contained in:
Mateusz 2024-04-01 15:56:02 +02:00
parent 70e67da288
commit e3a83dc839
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -24,9 +24,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 'mkdir /root/.kaggle'
sh 'echo "{\"username\":\"$KAGGLE_USERNAME\",\"key\":\"$KAGGLE_KEY\"}" > /root/.kaggle/kaggle.json'
sh 'chmod 600 /root/.kaggle/kaggle.json'
sh 'chmod +x create-dataset.py'
sh 'python3 ./create-dataset.py'
}