ium_444517/Jenkinsfile

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-03-21 11:06:31 +01:00
pipeline {
agent any
2022-03-27 13:25:02 +02:00
parameters {
string(
defaultValue: 'kamilab0bkowska',
2022-03-27 14:00:17 +02:00
description: 'kaggle username',
2022-03-27 13:25:02 +02:00
name: 'KAGGLE_USERNAME',
trim: false
2022-03-27 13:27:01 +02:00
)
2022-03-27 13:25:02 +02:00
password(
defaultValue: '',
2022-03-27 14:00:17 +02:00
description: 'kaggle passowrd',
2022-03-27 13:25:02 +02:00
name: 'KAGGLE_KEY'
)
2022-03-27 14:00:17 +02:00
string(
defaultValue: '10841',
2022-03-27 14:00:17 +02:00
description: 'cutoff parameter',
name: 'CUTOFF'
)
2022-03-27 13:25:02 +02:00
}
2022-03-27 14:02:26 +02:00
2022-03-21 11:06:31 +01:00
stages {
stage('Stage 1') {
steps {
echo 'Hello world!'
}
}
2022-03-27 13:39:11 +02:00
2022-03-27 13:25:02 +02:00
stage('Get data save artifacts') {
steps {
2022-03-27 13:39:11 +02:00
sh 'chmod +x -R ./data_prep.sh'
2022-03-27 13:25:02 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
2022-03-27 14:00:17 +02:00
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) {
2022-03-27 13:25:02 +02:00
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
2022-03-27 14:00:17 +02:00
sh './data_prep.sh $CUTOFF'
2022-03-27 13:25:02 +02:00
archiveArtifacts artifacts: 'apps_train.csv, apps_test.csv, apps_validate.csv'
}
}
}
2022-03-21 11:06:31 +01:00
}
2022-03-27 13:25:02 +02:00
}