2021-03-27 19:39:22 +01:00
|
|
|
pipeline {
|
2021-04-10 21:09:10 +02:00
|
|
|
agent {
|
|
|
|
dockerfile true
|
|
|
|
}
|
2021-03-28 18:37:42 +02:00
|
|
|
parameters {
|
|
|
|
string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)
|
|
|
|
}
|
2021-03-28 18:18:45 +02:00
|
|
|
stages {
|
|
|
|
stage('Clone repo + run bash script') {
|
2021-03-28 18:21:17 +02:00
|
|
|
steps {
|
2021-03-28 18:18:45 +02:00
|
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
|
2021-05-14 00:58:33 +02:00
|
|
|
// Skrypt z lab 5 - prosta sieć neuronowa
|
2021-05-15 03:22:57 +02:00
|
|
|
sh 'python3 linear_regression.py'
|
2021-05-14 00:58:33 +02:00
|
|
|
// Wygenerowanie podziału danych
|
2021-04-10 21:09:10 +02:00
|
|
|
sh 'python3 script.py'
|
2021-05-14 00:58:33 +02:00
|
|
|
// Stare skrypty bashowe do podziału zbioru
|
|
|
|
// sh "chmod 777 ./data_download.sh"
|
|
|
|
// sh "./data_download.sh"
|
2021-03-28 18:18:45 +02:00
|
|
|
// Zapisanie artefaktów
|
2021-05-15 03:22:57 +02:00
|
|
|
archiveArtifacts "results.txt"
|
2021-03-28 18:18:45 +02:00
|
|
|
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
|
|
|
|
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"
|
|
|
|
archiveArtifacts "MoviesOnStreamingPlatforms_updated.train"
|
2021-03-27 19:39:22 +01:00
|
|
|
}
|
2021-03-28 18:18:45 +02:00
|
|
|
}
|
2021-03-28 18:21:17 +02:00
|
|
|
}
|
2021-05-14 00:20:04 +02:00
|
|
|
}
|
|
|
|
post {
|
|
|
|
success {
|
|
|
|
build job: 's434704-training/master', parameters: [
|
2021-05-14 04:01:11 +02:00
|
|
|
string(name: 'options', value: "verpose=0 epochs=100")
|
2021-05-14 01:58:56 +02:00
|
|
|
], wait: false
|
2021-05-14 00:20:04 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-27 19:39:22 +01:00
|
|
|
}
|