ium_444409/Jenkinsfile-build

31 lines
893 B
Plaintext
Raw Normal View History

2022-04-01 22:40:28 +02:00
pipeline {
parameters {
string(
defaultValue: 'marcinkostrzewski',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
}
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t s444409-create-dataset"
2022-04-01 22:40:28 +02:00
}
}
2022-05-05 21:40:34 +02:00
2022-04-01 22:40:28 +02:00
stages {
2022-05-05 21:40:34 +02:00
stage('Archive dataset and run training') {
2022-04-01 22:40:28 +02:00
steps {
2022-05-05 21:40:34 +02:00
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
build job: 's444409-training/main/'
2022-04-01 22:40:28 +02:00
}
}
}
}