ium_434704/Jenkinsfile
Wojciech Jarmosz 9aa2b7d4ad
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
Fixes for lab5, lab6
2021-05-15 03:50:19 +02:00

36 lines
1.3 KiB
Groovy

pipeline {
agent {
dockerfile true
}
parameters {
string(defaultValue: '5', description: 'Amount of lines to cut off the file.', name: 'CUTOFF', trim: false)
}
stages {
stage('Clone repo + run bash script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
// Skrypt z lab 5 - prosta sieć neuronowa
sh 'python3 linear_regression.py'
// Wygenerowanie podziału danych
sh 'python3 script.py'
// Stare skrypty bashowe do podziału zbioru
// sh "chmod 777 ./data_download.sh"
// sh "./data_download.sh"
// Zapisanie artefaktów
archiveArtifacts "results_lab5.txt"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.train"
}
}
}
}
post {
success {
build job: 's434704-training/master', parameters: [
string(name: 'options', value: "verpose=0 epochs=100")
], wait: false
}
}
}