ium_444517/Jenkinsfile
2022-03-27 13:28:54 +02:00

36 lines
897 B
Groovy

pipeline {
agent any
parameters {
string(
defaultValue: 'kamilab0bkowska',
description: '',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: '',
name: 'KAGGLE_KEY'
)
}
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
stage('Get data save artifacts') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh './data_prep.sh'
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
}
}
}
}
}