IUM_04 - update Jenkinsfile - test
This commit is contained in:
parent
117d8115bf
commit
f9e0ae9465
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -3,7 +3,7 @@ pipeline {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
reuseNode true
|
||||
args '-e KAGGLE_USERNAME=${KAGGLE_USERNAME} -e KAGGLE_KEY=${KAGGLE_KEY}'
|
||||
args "-e KAGGLE_USERNAME=${KAGGLE_USERNAME} -e KAGGLE_KEY=${KAGGLE_KEY}"
|
||||
}
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Checkout repository') {
|
||||
stage('Clone repository') {
|
||||
steps {
|
||||
checkout scm
|
||||
}
|
||||
@ -35,12 +35,10 @@ pipeline {
|
||||
stage('Download dataset and preprocess data') {
|
||||
steps {
|
||||
script {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
sh "echo ${params.KAGGLE_USERNAME}"
|
||||
sh "chmod +x ./download_dataset.py"
|
||||
sh "python3 ./download_dataset.py ${params.CUTOFF}"
|
||||
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true
|
||||
}
|
||||
sh "echo ${params.KAGGLE_USERNAME}"
|
||||
sh "chmod +x ./download_dataset.py"
|
||||
sh "python3 ./download_dataset.py ${params.CUTOFF}"
|
||||
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user