ium_444409/Jenkinsfile-build
Marcin Kostrzewski 9e78523b89
All checks were successful
s444409-evaluation/pipeline/head This commit looks good
s444409-training/pipeline/head This commit looks good
Do not use string interpolation
2022-05-07 10:33:16 +02:00

31 lines
889 B
Plaintext

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'
}
}
stages {
stage('Archive dataset and run training') {
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
build job: 's444409-training/main/'
}
}
}
}