2022-04-29 12:56:30 +02:00
|
|
|
node {
|
|
|
|
checkout scm
|
|
|
|
|
|
|
|
stage('Load Docker image & data') {
|
|
|
|
def dataImage = docker.build('s478841-image', "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
|
|
|
|
|
|
|
|
dataImage.inside('--name kaggload -v $WORKSPACE:/data -u root') {
|
|
|
|
// sh 'chmod u+x ./scripts/data_stats.sh'
|
|
|
|
// sh './scripts/data_stats.sh'
|
|
|
|
sh 'cp /app/data/* /data/data'
|
|
|
|
sh 'echo Data loaded'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Archive arifacts') {
|
|
|
|
archiveArtifacts artifacts: '*data/avocado.data*', onlyIfSuccessful: true
|
|
|
|
}
|
2022-05-02 11:14:55 +02:00
|
|
|
stage('Delegate the model training') {
|
|
|
|
build job: 's478841-training/develop'
|
|
|
|
}
|
2022-04-29 12:56:30 +02:00
|
|
|
}
|