IUM_06 - fix main Jenkinsfile, models/Jenkinsfile
This commit is contained in:
parent
c664c6dcf8
commit
14cd86bec6
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -50,7 +50,7 @@ pipeline {
|
|||||||
sh "python3 ./download_dataset.py ${params.CUTOFF}"
|
sh "python3 ./download_dataset.py ${params.CUTOFF}"
|
||||||
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true
|
||||||
|
|
||||||
build job: 's464863/main', wait: true
|
build job: 's464863-training/main', wait: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
19
models/Jenkinsfile
vendored
19
models/Jenkinsfile
vendored
@ -1,10 +1,6 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
parameters {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Clone repository') {
|
stage('Clone repository') {
|
||||||
steps {
|
steps {
|
||||||
@ -39,20 +35,5 @@ pipeline {
|
|||||||
archiveArtifacts artifacts: 'models/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'models/*', onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Test model') {
|
|
||||||
agent {
|
|
||||||
dockerfile {
|
|
||||||
filename 'Dockerfile'
|
|
||||||
reuseNode true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
steps {
|
|
||||||
sh "chmod +x ./predict.py"
|
|
||||||
sh "python3 ./predict.py"
|
|
||||||
archiveArtifacts artifacts: 'predictions.csv', onlyIfSuccessful: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user