IUM_04 - update Jenkinsfile
This commit is contained in:
parent
87dec5919f
commit
659ddac84e
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
@ -1,10 +1,5 @@
|
||||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
args '-u root'
|
||||
}
|
||||
}
|
||||
agent any
|
||||
|
||||
parameters {
|
||||
password (
|
||||
@ -33,16 +28,27 @@ pipeline {
|
||||
|
||||
stage('Download dataset') {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
|
||||
sh "KAGGLE_USERNAME=${params.KAGGLE_USERNAME} KAGGLE_KEY=${params.KAGGLE_KEY} kaggle datasets download -d uciml/breast-cancer-wisconsin-data"
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||
sh "kaggle datasets download -d uciml/breast-cancer-wisconsin-data"
|
||||
sh "unzip -o breast-cancer-wisconsin-data.zip"
|
||||
sh "mkdir datasets"
|
||||
sh "mv data.csv datasets/data.csv"
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('Preprocess data') {
|
||||
agent {
|
||||
dockerfile {
|
||||
filename 'Dockerfile'
|
||||
}
|
||||
}
|
||||
|
||||
steps {
|
||||
sh "sudo chmod +x ./download_dataset.py"
|
||||
sh "python3 ./download_dataset.py ${params.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