Dockerfile
This commit is contained in:
parent
c744e100a6
commit
70e67da288
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -2,7 +2,7 @@ pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
args '-u root -v $HOME:/app'
|
||||
args '-u root'
|
||||
}
|
||||
}
|
||||
|
||||
@ -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 ~/.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'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user