33 lines
1.3 KiB
Groovy
33 lines
1.3 KiB
Groovy
node {
|
|
stage('Preparation') {
|
|
|
|
properties([
|
|
parameters([
|
|
string(defaultValue: 'karopa',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false),
|
|
password(defaultValue: '',
|
|
description: 'Kaggle token',
|
|
name: 'KAGGLE_KEY')
|
|
|
|
])
|
|
]
|
|
)
|
|
|
|
}
|
|
stage('Clone repo') {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]])
|
|
sh '''
|
|
#!/usr/bin/env bash
|
|
chmod 777 get_data_simple.sh
|
|
./get_data_simple.sh
|
|
'''
|
|
archiveArtifacts data_dev
|
|
archiveArtifacts data_shuf
|
|
archiveArtifacts data_test
|
|
archiveArtifacts data_train
|
|
}
|
|
}
|
|
} |