43 lines
1.1 KiB
Groovy
43 lines
1.1 KiB
Groovy
pipeline {
|
|
agent any
|
|
parameters {
|
|
string(
|
|
defaultValue: 'kamilab0bkowska',
|
|
description: 'kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
password(
|
|
defaultValue: '',
|
|
description: 'kaggle passowrd',
|
|
name: 'KAGGLE_KEY'
|
|
)
|
|
string(
|
|
defaultValue: '10',
|
|
description: 'cutoff parameter',
|
|
name: 'CUTOFF'
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage('Stage 1') {
|
|
steps {
|
|
echo 'Hello world!'
|
|
}
|
|
}
|
|
|
|
stage('Get data save artifacts') {
|
|
steps {
|
|
sh 'chmod +x -R ./data_prep.sh'
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
|
|
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
sh './data_prep.sh $CUTOFF'
|
|
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|