r8
This commit is contained in:
parent
5fff814fdd
commit
5c89f40c70
@ -1,38 +1,17 @@
|
||||
pipeline {
|
||||
parameters {
|
||||
string(
|
||||
defaultValue: 'heatedboss2',
|
||||
description: 'Kaggle username',
|
||||
name: 'KAGGLE_USERNAME',
|
||||
trim: false
|
||||
)
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'Kaggle token',
|
||||
name: 'KAGGLE_KEY'
|
||||
)
|
||||
string(
|
||||
defaultValue: '117928',
|
||||
description: 'Cutoff',
|
||||
name: 'CUTOFF',
|
||||
trim: false
|
||||
)
|
||||
}
|
||||
agent {
|
||||
dockerfile{
|
||||
additionalBuildArgs '--build-arg KAGGLE_USERNAME="$KAGGLE_USERNAME" --build-arg KAGGLE_KEY="$KAGGLE_KEY" -t s444507_create_dataset_image'
|
||||
}
|
||||
agent {
|
||||
docker { image 's444507_create_dataset_image:latest' }
|
||||
}
|
||||
stages {
|
||||
stage('Prepare dataset') {
|
||||
stage('Get arifacts') {
|
||||
steps {
|
||||
sh 'python3 ./script-stats.py'
|
||||
copyArtifacts fingerprintArtifacts: true, projectName: 's444507_create_dataset_image', selector: lastSuccessful()
|
||||
}
|
||||
}
|
||||
stage('Show stats') {
|
||||
steps {
|
||||
sh "./stats-docker.sh"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'Car_Prices_Poland_Kaggle_*', followSymlinks: false
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user