ium_444463/Jenkinsfile

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-03-21 11:00:03 +01:00
pipeline {
agent any
2022-03-27 21:06:25 +02:00
parameters {
string (
defaultValue: 'mikolajpokrywka',
description: 'Kaggle username',
name: 'KAGGLE_USERNAME',
trim: false
)
password(
defaultValue: '',
description: 'Kaggle token',
name: 'KAGGLE_KEY'
)
string (
2022-03-27 21:55:59 +02:00
defaultValue: '17000',
2022-03-27 21:06:25 +02:00
description: 'cut data',
name: 'CUTOFF',
trim: false
)
2022-03-27 21:53:18 +02:00
}
2022-03-21 11:00:03 +01:00
stages {
2022-03-27 20:47:04 +02:00
stage('checkout: Check out from version control') {
2022-03-27 21:06:25 +02:00
steps {
2022-03-27 20:47:04 +02:00
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]])
2022-03-27 20:38:13 +02:00
}
2022-03-27 20:40:44 +02:00
}
2022-03-27 20:47:04 +02:00
stage('bash script') {
2022-03-27 20:38:13 +02:00
steps {
2022-03-27 21:06:25 +02:00
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
2022-03-27 20:49:02 +02:00
sh "./process_data.sh"
2022-03-27 21:43:29 +02:00
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv"
2022-03-27 21:53:18 +02:00
}
2022-03-21 11:00:03 +01:00
}
}
}
}