Update 'Jenkinsfile'
This commit is contained in:
parent
41bcce7dda
commit
be10e1759b
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -13,25 +13,18 @@ pipeline {
|
||||
)
|
||||
}
|
||||
agent {
|
||||
dockerfile {
|
||||
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}"
|
||||
dockerfile true
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage('Stage 1') {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh 'chmod u+x ./download_dataset.sh ./process_dataset.py'
|
||||
echo 'Downloading dataset...'
|
||||
sh './download_dataset.sh'
|
||||
sh 'chmod u+x ./process_dataset.py'
|
||||
echo 'Dataset downloaded'
|
||||
echo 'Processing dataset...'
|
||||
sh 'export PYTHONIOENCODING=UTF-8'
|
||||
sh 'python3 process_dataset.py'
|
||||
echo 'Dataset processed'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user