2021-03-28 21:04:10 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-03-28 22:08:04 +02:00
|
|
|
parameters {
|
2021-03-28 22:06:38 +02:00
|
|
|
string(
|
|
|
|
defaultValue: '0',
|
|
|
|
description: 'Umożliwia zdefiniowanie wielkości odcięcia zbioru danych.',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false
|
2021-03-28 22:10:22 +02:00
|
|
|
)
|
2021-03-28 22:06:38 +02:00
|
|
|
string(
|
|
|
|
defaultValue: 'rokoch',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
2021-03-28 22:10:22 +02:00
|
|
|
)
|
2021-03-28 22:06:38 +02:00
|
|
|
password(
|
|
|
|
defaultValue: '',
|
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
2021-03-28 22:08:04 +02:00
|
|
|
}
|
2021-03-28 21:04:10 +02:00
|
|
|
stages {
|
2021-03-28 22:00:27 +02:00
|
|
|
stage('checkout') {
|
2021-03-28 21:04:10 +02:00
|
|
|
steps {
|
2021-03-28 22:00:27 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s426206/ium_426206.git']]])
|
2021-03-28 21:04:10 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-28 22:00:27 +02:00
|
|
|
|
|
|
|
stage('sh') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
2021-03-28 22:03:26 +02:00
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
2021-03-28 22:18:29 +02:00
|
|
|
sh "chmod +x skrypt.sh"
|
2021-03-28 22:16:42 +02:00
|
|
|
sh "./skrypt.sh ${params.CUTOFF} | tee output.txt"
|
2021-03-28 22:00:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('end') {
|
2021-03-28 22:06:38 +02:00
|
|
|
steps {
|
|
|
|
//Zarchiwizuj wynik
|
2021-03-28 22:34:18 +02:00
|
|
|
archiveArtifacts 'output.txt,Global_Superstore2.csv.dev,Global_Superstore2.csv.test,Global_Superstore2.csv.train'
|
2021-03-28 22:06:38 +02:00
|
|
|
}
|
2021-03-28 22:00:27 +02:00
|
|
|
}
|
2021-03-28 21:04:10 +02:00
|
|
|
}
|
|
|
|
}
|