ium_z444510/Jenkinsfile

39 lines
1.2 KiB
Plaintext
Raw Normal View History

2023-03-25 13:44:43 +01:00
pipeline {
2023-04-20 21:20:12 +02:00
agent any
parameters{
string(
defaultValue: 'piotrwrzodak',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
name: 'KAGGLE_KEY'
)
string(
2023-04-20 22:49:02 +02:00
defaultValue: '100',
2023-04-20 21:20:12 +02:00
description: 'CUTOFF',
name: 'CUTOFF',
trim: false
)
}
2023-03-25 13:44:43 +01:00
stages {
2023-04-20 22:58:19 +02:00
stage('checkout: Check out from version control') {
2023-04-20 21:51:52 +02:00
steps {
2023-04-20 22:58:19 +02:00
checkout scm
2023-03-25 13:44:43 +01:00
}
2023-04-20 21:51:52 +02:00
}
stage('Build') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'ls -a'
2023-04-20 22:56:02 +02:00
sh 'chmod +x create-dataset.sh'
2023-04-20 22:49:02 +02:00
sh './create-dataset.sh'
archiveArtifacts artifacts: 'data/barcelona_weekends.train.csv, data/barcelona_weekends.dev.csv, data/barcelona_weekends.test.csv', fingerprint: true
2023-04-20 21:51:52 +02:00
}
}
}
2023-04-20 21:20:12 +02:00
}
2023-03-25 13:44:43 +01:00
}