IUM_06 - fix main Jenkinsfile, models/Jenkinsfile

This commit is contained in:
Paweł Łączkowski 2024-04-19 10:42:00 +02:00
parent c664c6dcf8
commit 14cd86bec6
2 changed files with 1 additions and 20 deletions

2
Jenkinsfile vendored
View File

@ -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
View File

@ -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
}
}
} }
} }