ium_444507/Jenkinsfile-docker

38 lines
939 B
Plaintext
Raw Normal View History

2022-03-31 23:28:10 +02:00
pipeline {
2022-04-01 23:36:30 +02:00
parameters {
string(
defaultValue: 'heatedboss2',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY'
)
2022-04-01 23:47:17 +02:00
string(
defaultValue: '117928',
description: 'Cutoff',
name: 'CUTOFF',
trim: false
)
2022-04-01 23:36:30 +02:00
}
agent {
dockerfile{
2022-04-02 20:28:16 +02:00
additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY" --no-cache=true'
2022-04-01 23:36:30 +02:00
}
}
stages {
2022-04-01 23:47:17 +02:00
stage('Prepare dataset') {
2022-04-01 23:36:30 +02:00
steps {
2022-04-02 20:34:02 +02:00
sh 'python3 ./script-stats.py'
2022-04-01 23:36:30 +02:00
}
2022-03-31 23:28:10 +02:00
}
}
2022-04-02 18:07:21 +02:00
post {
success {
archiveArtifacts artifacts: 'Car_Prices_Poland_Kaggle_*', followSymlinks: false
}
}
2022-03-31 23:28:10 +02:00
}