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