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 {
|
dockerfile {
|
||||||
filename 'Dockerfile'
|
filename 'Dockerfile'
|
||||||
reuseNode true
|
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 {
|
stages {
|
||||||
stage('Checkout repository') {
|
stage('Clone repository') {
|
||||||
steps {
|
steps {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
@ -35,12 +35,10 @@ pipeline {
|
|||||||
stage('Download dataset and preprocess data') {
|
stage('Download dataset and preprocess data') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
sh "echo ${params.KAGGLE_USERNAME}"
|
||||||
sh "echo ${params.KAGGLE_USERNAME}"
|
sh "chmod +x ./download_dataset.py"
|
||||||
sh "chmod +x ./download_dataset.py"
|
sh "python3 ./download_dataset.py ${params.CUTOFF}"
|
||||||
sh "python3 ./download_dataset.py ${params.CUTOFF}"
|
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true
|
||||||
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user