IUM_04 - fix permission error
This commit is contained in:
parent
e75c6fb104
commit
bcc0ed0dc3
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
@ -31,12 +31,12 @@ pipeline {
|
||||
stage('Download dataset') {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
|
||||
sh "mkdir /.kaggle"
|
||||
sh "echo > /.kaggle/kaggle.json"
|
||||
sh "chmod 777 /.kaggle/kaggle.json"
|
||||
sh "chown `whoami` /.kaggle/kaggle.json"
|
||||
sh "export KAGGLE_CONFIG_DIR=/.kaggle"
|
||||
sh "chmod +x ./download_dataset.py"
|
||||
sh "sudo mkdir /.kaggle"
|
||||
sh "sudo echo > /.kaggle/kaggle.json"
|
||||
sh "sudo chmod 777 /.kaggle/kaggle.json"
|
||||
sh "sudo chown `whoami` /.kaggle/kaggle.json"
|
||||
sh "sudo export KAGGLE_CONFIG_DIR=/.kaggle"
|
||||
sh "sudo chmod +x ./download_dataset.py"
|
||||
sh "python3 ./download_dataset.py $CUTOFF"
|
||||
archiveArtifacts artifacts: './datasets/data.csv,./datasets/train.csv,./datasets/dev.csv,./datasets/test.csv', onlyIfSuccessful: true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user