2021-03-28 19:27:38 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('One') {
|
|
|
|
|
|
|
|
properties([
|
|
|
|
parameters([
|
|
|
|
string(defaultValue: '',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false),
|
|
|
|
password(defaultValue: '',
|
|
|
|
description: 'Kaggle token',
|
|
|
|
name: 'KAGGLE_KEY'),
|
|
|
|
string(defaultValue: '5000',
|
|
|
|
description: 'Data cutoff',
|
|
|
|
name: 'CUTOFF',
|
|
|
|
trim: false)
|
|
|
|
])
|
|
|
|
]
|
|
|
|
)
|
|
|
|
stage('Two') {
|
|
|
|
steps {
|
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
|
|
|
|
|
|
|
|
|
|
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434732/ium_434732']]])
|
|
|
|
|
|
|
|
|
|
|
|
sh "chmod 777 ./skrypt_zad2.sh"
|
|
|
|
sh "./skrypt_zad2.sh"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
archiveArtifacts "results.csv_cut.dev"
|
|
|
|
archiveArtifacts "results.csv_cut.test"
|
|
|
|
archiveArtifacts "results.csv_cut.train"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-03-28 19:35:34 +02:00
|
|
|
}
|