IUM_04 - update Jenkinsfile to use docker environment
This commit is contained in:
parent
468d38508a
commit
1a6fa3863d
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -1,5 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
password (
|
password (
|
||||||
@ -29,9 +31,9 @@ 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}", "CUTOFF=${params.CUTOFF}"]) {
|
||||||
sh "chmod +x download_dataset.sh"
|
sh "chmod +x ./download_dataset.py"
|
||||||
sh "./download_dataset.sh $CUTOFF"
|
sh "python3 ./download_dataset.py $CUTOFF"
|
||||||
archiveArtifacts artifacts: 'data.csv,train.csv,dev.csv,test.csv', onlyIfSuccessful: true
|
archiveArtifacts artifacts: './datasets/data.csv,./datasets/train.csv,./datasets/dev.csv,./datasets/test.csv', onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
statistics/Jenkinsfile
vendored
10
statistics/Jenkinsfile
vendored
@ -1,5 +1,9 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'dzikafoczka/ium:latest'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
buildSelector(
|
buildSelector(
|
||||||
@ -24,8 +28,8 @@ pipeline {
|
|||||||
|
|
||||||
stage('Get statistics') {
|
stage('Get statistics') {
|
||||||
steps {
|
steps {
|
||||||
sh "chmod +x get_stats.sh"
|
sh "chmod +x get_stats.py"
|
||||||
sh "./get_stats.sh"
|
sh "python3 get_stats.py"
|
||||||
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'stats.txt', onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user